Check Point gateway root flaw exploited with PHP2Shell to plant backdoors
- Affected
- Gaia
R81.20throughR82.20before the fixed Jumbo Hotfix takes, plusR81andR81.10, which are past end of support. All versions and fixes
Check Point says attackers exploited a local flaw in Gaia, the operating system of its Security Gateways and Management Servers, to gain root on gateways. They first broke in through PHP2Shell in the Mobile Access portal, about a week after Check Point’s fix. A couple of dozen unpatched systems were compromised from Oct 30 to Nov 4. Check Point advises installing its November Jumbo Hotfix on all Management Servers and Security Gateways.
The flaw, , is in Gaia’s Dynamic CLI service. Its root process listens on a local socket that any user can write to, and it runs whatever command it receives as root. Check Point scores it 7.8, and an attacker needs local code execution first. In these attacks, PHP2Shell ( and ) gave that foothold as the portal’s service account.
Check Point Research says a first wave on Oct 30 hit Israeli organizations and destroyed data at some. A broader wave on Nov 2 reached organizations in several countries, with no sign of destructive activity. In the intrusion CPR investigated, the attackers planted PHP webshells in the portal’s login templates. They also installed a backdoor CPR calls TSGA, which can steal configuration, persist in backups and snapshots and tamper with firewall logs.
From one gateway, the attackers moved over SSH to a VMware ESXi host with the vpxuser account and ran a wiper. It left notes named DREAM_ANNEXATION.txt that refuse ransom talks. TSGA and its TSProxy component are variants of PhiliKit, malware ESET has tied to a China-nexus group. CPR says the evidence doesn’t let it say with confidence who ran this operation.
Check Point’s support article also lists R81 and R81.10, both past end of support, as affected, with fixes only for R81.20 and later. Spark firewalls and Smart-1 Cloud aren’t affected. Stopping the Dynamic CLI process mitigates the flaw but breaks the Dynamic CLI commands, Check Point says.
What to do
7 steps
Affected and fixed versions
| Product | Affected | Fixed |
|---|---|---|
| Gaia R82.20 | Jumbo Hotfix takes before Take 14 | Jumbo Hotfix Take 14 and later |
| Gaia R82.10 | Jumbo Hotfix takes before Take 52 | Jumbo Hotfix Take 52 and later |
| Gaia R82 | Jumbo Hotfix takes before Take 132 | Jumbo Hotfix Take 132 and later |
| Gaia R81.20 | Jumbo Hotfix takes before Take 174 | Jumbo Hotfix Take 174 and later |
| Gaia R81 and R81.10 | All, past end of support | None listed, so use the mitigation in sk1000362 |
- Product
- Gaia R82.20
- Affected
- Jumbo Hotfix takes before Take 14
- Fixed
- Jumbo Hotfix Take 14 and later
- Product
- Gaia R82.10
- Affected
- Jumbo Hotfix takes before Take 52
- Fixed
- Jumbo Hotfix Take 52 and later
- Product
- Gaia R82
- Affected
- Jumbo Hotfix takes before Take 132
- Fixed
- Jumbo Hotfix Take 132 and later
- Product
- Gaia R81.20
- Affected
- Jumbo Hotfix takes before Take 174
- Fixed
- Jumbo Hotfix Take 174 and later
- Product
- Gaia R81 and R81.10
- Affected
- All, past end of support
- Fixed
- None listed, so use the mitigation in sk1000362
Indicators
IPs copy defanged. Use Copy raw for queries.
| Type | Value | Note |
|---|---|---|
| IP address | Scanning and exploitation source | |
| IP address | Scanning source | |
| SHA-256 | PHP webshell planted as a portal template file | |
| SHA-256 | TSGA backdoor after it relaunches as slot_CPconfigdaemon | |
| SHA-256 | TSGA backdoor as first run from /tmp/CPconfigdaemon | |
| SHA-256 | gogo scanner used to map the internal network | |
| SHA-256 | Wiper that CPR calls destroy_v6 | |
| SHA-256 | DREAM_ANNEXATION.txt note the wiper leaves | |
| SHA-256 | File CPR lists as philistine | |
| SHA-256 | File CPR lists as libdssafe.so |
- IP addressScanning and exploitation source
- IP addressScanning source
- SHA-256PHP webshell planted as a portal template file
- SHA-256TSGA backdoor after it relaunches as slot_CPconfigdaemon
- SHA-256TSGA backdoor as first run from /tmp/CPconfigdaemon
- SHA-256gogo scanner used to map the internal network
- SHA-256Wiper that CPR calls destroy_v6
- SHA-256DREAM_ANNEXATION.txt note the wiper leaves
- SHA-256File CPR lists as philistine
- SHA-256File CPR lists as libdssafe.so
Timeline
- Oct 23Check Point releases fixes for PHP2Shell in its Security Gateways and Management Servers.
- Oct 30A first wave exploits unpatched Mobile Access gateways at Israeli organizations, with destructive activity at some, CPR says.
- Nov 2A broader second wave targets organizations in several countries, with no destructive activity.
- Nov 4Check Point sees the last exploitation activity.
- Nov 12Check Point publishes its advisory, the fix details for and CPR’s analysis.
Sources
- Check Point advisoryPrimary source blog.checkpoint.com
- Check Point advisory sk1000362Primary source support.checkpoint.com
- Check Point researchPrimary source research.checkpoint.com
- CVE recordPrimary source cve.org