Tag: Gaia

Detecting Check Point Gaia PHP2Shell: 5 Sigma rules for root, implants and ESXi

Detecting Check Point Gaia PHP2Shell: 5 Sigma rules for root, implants and ESXi

Check Point’s own support article for CVE-2026-123039 ends with three grep commands. That is unusual and useful: the vendor is telling you exactly which log lines separate a normal Gaia box from one where a web worker used a world-writable socket to run commands as root. The problem is that those greps live on the appliance, run by hand, against a log an attacker with root can rewrite.

This post turns those checks, and the artifacts Check Point Research published on November 12, 2026, into five Sigma rules you can run centrally. If you want the story of the bug first, start with my analysis of the PHP2Shell to root chain. Here you get the rules, the telemetry they need, how to tune and test them, and an honest list of what they cannot see.

At a glance

  • Rules: 5 (one critical, two high, two medium).
  • Domains: Network (the firewall’s own Dynamic CLI log), Linux (file creation on Gaia), Identity (SSH logins on ESXi).
  • Log sources you need: /var/log/dynamicCli.log forwarded off every gateway and management server, file creation telemetry or an integrity sweep on Gaia, and ESXi auth.log over syslog. None of these reach a SIEM by default.
  • ATT&CK: T1068, T1059.004, T1505.003, T1090, T1021.004. Not covered: T1190 (the PHP2Shell request) and T1485 (the ESXi wiper).
  • Status: four rules are test because they come straight from sk1000362 or the Check Point Research IOC list; the ESXi rule is experimental because part of its logic is my inference.
  • YAML: Detection Rules repo on GitHub.

The case in brief

Attackers used PHP2Shell (CVE-2026-109618 and CVE-2026-109619) against Check Point Mobile Access portals to run code as the portal’s service account. From there they wrote commands to /tmp/dynamic_socket, a Unix socket that is mode 0777 on vulnerable builds and is served by the root dynamic_server daemon, which never checked who was calling (CVE-2026-123039). As root they planted zz*.tpl webshells in the portal templates, launched the TSGA backdoor from /tmp/CPconfigdaemon, dropped the TSProxy library at /lib/libcpfwcommon.so, and in at least one case moved over SSH to VMware ESXi as vpxuser and ran a wiper. The full chain is in the analysis.

For detection, the useful fact is where each step leaves a mark. The root escalation lands in dynamicCli.log, because the daemon logs every command it receives. The implants land on the file system at paths Check Point Research names. The pivot lands in the ESXi authentication log. The initial PHP2Shell request leaves crashes and odd session files, but no clean request signature that I could confirm.

Detection map

Block diagram: dynamicCli.log, Gaia file creation and ESXi auth.log feed five Sigma rules (three Dynamic CLI rules, an implant file rule and an ESXi vpxuser SSH rule) mapped to T1068, T1059.004, T1505.003, T1090 and T1021.004, with T1190 and T1485 marked as gaps.
Three log sources, five rules. The PHP2Shell request and the ESXi wiper stay uncovered.

Read the map left to right. Three log sources feed five rules. Three of the rules sit on the same Dynamic CLI log because that log is where CVE-2026-123039 is most visible: one for commands that look like exploitation, one for anything that did not come from Clish, and one for the tripwire a patched box writes when something still knocks. The file rule and the ESXi rule cover what happens after root. The dashed box on the right is the honest part: the initial web exploit and the wiper are not covered by any rule here.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
DynamicCLI exploitation-style commandNetworkcheckpoint / dynamiccliPrivilege Escalation, Execution / T1068, T1059.004Hightest
DynamicCLI command without Clish wrapperNetworkcheckpoint / dynamiccliPrivilege Escalation / T1068Mediumtest
DynamicCLI rejected unauthorized uidNetworkcheckpoint / dynamiccliPrivilege Escalation / T1068Mediumtest
TSGA, TSProxy or portal webshell artifact createdLinuxlinux / file_eventPersistence, Command and Control / T1505.003, T1090Criticaltest
SSH login to ESXi as vpxuserIdentityesxi / sshdLateral Movement / T1021.004Highexperimental

A note on log sources. checkpoint / dynamiccli and esxi / sshd are not standard SigmaHQ sources, so your conversion pipeline has to map them to wherever you index those logs. I used keyword selections for all three log-file sources on purpose: I don’t know how your collector splits these lines into fields, and I’d rather not invent field names.

The rules

Check Point Gaia DynamicCLI exploitation-style command

Context: once a web worker can talk to /tmp/dynamic_socket, every command it sends is logged by dynamic_server as a “Received =” line before it runs as root. Check Point’s sk1000362 lists the strings it considers typical of exploitation. This is the rule I’d deploy first.

Condition: alert when the daemon logs a received command that contains a discovery command (id, whoami), a downloader (curl, wget), a reverse-shell helper (ncat, nc -, /dev/tcp), base64, /etc/shadow, useradd or authorized_keys.

ATT&CK: Privilege Escalation (TA0004) – T1068 Exploitation for Privilege Escalation; Execution (TA0002) – T1059.004 Unix Shell.

title: Check Point Gaia DynamicCLI Exploitation-Style Command - CVE-2026-123039
id: 50564284-e728-4af4-940e-a38255c15ab2
status: test
description: |
    Detects commands received by the root dynamic_server daemon on Check Point Gaia that contain
    discovery, download, reverse-shell, credential or account-creation strings. Check Point sk1000362
    lists these strings in /var/log/dynamicCli.log as typical of CVE-2026-123039 exploitation, where a
    web worker abuses the world-writable /tmp/dynamic_socket to run commands as root.
references:
    - https://support.checkpoint.com/results/sk/sk1000362
    - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.t1068
    - attack.t1059.004
    - cve.2026-123039
    - detection.emerging-threats
logsource:
    product: checkpoint
    service: dynamiccli
    definition: 'Requirement: forward /var/log/dynamicCli.log from every Gaia gateway, cluster member and management server to the SIEM (not shipped by default).'
detection:
    keywords_received:
        - 'Received ='
    keywords_commands:
        - ' id;'
        - ' whoami'
        - '/etc/shadow'
        - 'ncat'
        - 'nc -'
        - '/dev/tcp'
        - 'curl '
        - 'wget '
        - 'base64'
        - 'useradd'
        - 'authorized_keys'
    condition: keywords_received and keywords_commands
falsepositives:
    - Administrators deliberately running such commands through Dynamic CLI during troubleshooting (rare; confirm with the change record)
level: high

View on GitHub

False positives and tuning: Clish has no business sending any of these strings, so the main noise is an admin who ran something unusual through Dynamic CLI during troubleshooting. Short strings like nc - and base64 are the likeliest to collide with a legitimate command on your build; if they do, tighten them to the full command rather than dropping them. Keep the “Received =” anchor, or the rule will match the daemon’s own status messages.

How to test: on a lab copy of the log (not production), append a line in the same format as existing “Received =” entries with whoami as the command, ship it, and confirm the alert. You don’t need the vulnerability to test the rule.

Check Point Gaia DynamicCLI command without Clish wrapper

Context: legitimate requests from Clish carry a fixed wrapper that sources CPprofile.sh and sets a couple of shell options. The SK’s first check is any received command without that wrapper; its second is any use of the #return_value# system() sink. Both mean something other than Clish talked to the daemon, whatever it asked for. This catches attackers who avoid the obvious strings in the first rule.

Condition: alert when the daemon logs a received command that does not contain the Clish wrapper, or a received command that uses the #return_value# sink.

ATT&CK: Privilege Escalation (TA0004) – T1068 Exploitation for Privilege Escalation.

title: Check Point Gaia DynamicCLI Command Without Clish Wrapper - CVE-2026-123039
id: 1661f7ea-6cb2-4c65-bc8a-3d61ad47bc34
status: test
description: |
    Detects commands received by the root dynamic_server daemon on Check Point Gaia that do not carry
    the fixed Clish wrapper, or that use the system() return-value sink. Check Point sk1000362 names both
    patterns in /var/log/dynamicCli.log as signs that a local process other than Clish talked to the
    world-writable /tmp/dynamic_socket (CVE-2026-123039).
references:
    - https://support.checkpoint.com/results/sk/sk1000362
    - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.privilege-escalation
    - attack.t1068
    - cve.2026-123039
    - detection.emerging-threats
logsource:
    product: checkpoint
    service: dynamiccli
    definition: 'Requirement: forward /var/log/dynamicCli.log from every Gaia gateway, cluster member and management server to the SIEM (not shipped by default).'
detection:
    keywords_received:
        - 'Received ='
    filter_main_clish_wrapper:
        - 'CPprofile.sh >> /dev/null; export SP_DISTRIBUTE=0; set -o noglob;'
    keywords_system_sink:
        - 'Received = #return_value#'
    condition: (keywords_received and not filter_main_clish_wrapper) or keywords_system_sink
falsepositives:
    - Check Point internal tooling or support scripts that call Dynamic CLI without the Clish wrapper; baseline one known-good gateway per version before alerting
level: medium

View on GitHub

False positives and tuning: this is the noisier of the two, which is why it is medium. Before alerting, run it over a week of logs from one known-good gateway per Gaia version and see what else calls Dynamic CLI without the wrapper on your builds. Filter those exact commands, not broad substrings. The wrapper match is literal, so if Check Point changes the wrapper in a future take, this rule will fire on everything; re-baseline after each Jumbo Hotfix.

How to test: replay one normal “Received =” line from your own log with the wrapper text removed, and one with it intact. Only the first should alert.

Check Point Gaia DynamicCLI rejected unauthorized uid

Context: on a fixed build, the socket is 0660 and the daemon refuses untrusted callers, logging “Rejected connection from unauthorized uid”. Check Point says a non-zero uid such as 99 (nobody) is a blocked attempt. To me this is the most valuable rule after patching: the hole is closed, so anything still trying it is an implant or webshell that the patch did not remove.

Condition: alert on any “Rejected connection from unauthorized uid” line.

ATT&CK: Privilege Escalation (TA0004) – T1068 Exploitation for Privilege Escalation.

title: Check Point Gaia DynamicCLI Rejected Unauthorized UID - CVE-2026-123039 Attempt
id: 1df98bc8-0e1d-475a-b869-0913189587a5
status: test
description: |
    Detects the message a patched dynamic_server writes to /var/log/dynamicCli.log when it refuses a
    connection on /tmp/dynamic_socket from an untrusted uid. Per Check Point sk1000362, a non-zero uid
    such as 99 (nobody) means something on the box tried to use the CVE-2026-123039 path after the fix,
    which points to a foothold that patching did not remove.
references:
    - https://support.checkpoint.com/results/sk/sk1000362
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.privilege-escalation
    - attack.t1068
    - cve.2026-123039
    - detection.emerging-threats
logsource:
    product: checkpoint
    service: dynamiccli
    definition: 'Requirement: forward /var/log/dynamicCli.log from patched Gaia gateways, cluster members and management servers to the SIEM.'
detection:
    keywords:
        - 'Rejected connection from unauthorized uid'
    condition: keywords
falsepositives:
    - Legitimate local Check Point components running under a non-trusted uid after the hotfix (check the uid and the calling process before escalating)
level: medium

View on GitHub

False positives and tuning: I have not seen a public report of legitimate rejections, but a local Check Point component running under an untrusted uid would produce them. If you see repeats from the same uid at a steady interval right after patching, check which process owns that uid before calling it an intrusion. Check Point’s advice is to correlate bursts with portal, web and authentication logs; I’d raise the level to high for any burst within an hour of portal crash activity.

How to test: on a patched lab gateway, try to connect to the socket as an unprivileged user with any Unix-socket client that exists on the box, sending nothing, and confirm the rejection line appears and is alerted on.

Check Point Gaia TSGA, TSProxy or portal webshell artifact created

Context: Check Point Research lists where the post-exploitation tools land: TSGA at /tmp/CPconfigdaemon with output to /tmp/.bd.log, persisted as slot_CPconfigdaemon; the webshell staging file /tmp/.up.tpl; TSProxy at /lib/libcpfwcommon.so; the shared Unix socket /tmp/.p_sock; and zz*.tpl webshells in the portal templates. These are fixed paths from the source, which is why this is the only critical rule.

Condition: alert when any of the named paths is created, when a file called slot_CPconfigdaemon appears anywhere, or when a .tpl file whose name starts with zz is created under /opt/CPcvpn-*.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell; Command and Control (TA0011) – T1090 Proxy.

title: Check Point Gaia TSGA, TSProxy or Portal Webshell Artifact Created
id: 9a620f8b-8720-41bc-b54c-a0eada361382
status: test
description: |
    Detects creation of file paths that Check Point Research attributes to the post-exploitation toolset
    seen after PHP2Shell and CVE-2026-123039 on Check Point gateways: the TSGA backdoor and its log, the
    webshell upload staging file, the TSProxy library, the persisted slot_CPconfigdaemon binary and zz*.tpl
    webshells in the Mobile Access portal tree.
references:
    - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.persistence
    - attack.command-and-control
    - attack.t1505.003
    - attack.t1090
    - cve.2026-123039
    - detection.emerging-threats
logsource:
    product: linux
    category: file_event
detection:
    selection_paths:
        TargetFilename:
            - '/tmp/CPconfigdaemon'
            - '/tmp/.bd.log'
            - '/tmp/.up.tpl'
            - '/tmp/.p_sock'
            - '/lib/libcpfwcommon.so'
    selection_persistence:
        TargetFilename|endswith: '/slot_CPconfigdaemon'
    selection_webshell:
        TargetFilename|startswith: '/opt/CPcvpn-'
        TargetFilename|contains: '/zz'
        TargetFilename|endswith: '.tpl'
    condition: 1 of selection_*
falsepositives:
    - Unlikely. Compare any hit against a known-good gateway of the same version and Jumbo Hotfix take before rebuilding
level: critical

View on GitHub

False positives and tuning: I’d expect none, but verify against a clean gateway on the same version and take before you rebuild anything. The bigger issue is telemetry. Most Gaia estates have no file-creation events at all. If that’s you, run this rule’s logic as a scheduled read-only sweep (ls on the fixed paths, find for the two name patterns) and send the result to the SIEM, so a hit still becomes an alert. Socket files like /tmp/.p_sock may not show up as file events in every agent; the sweep catches them. The Check Point Research paths are specific to the samples it analysed, so this rule ages faster than the Dynamic CLI rules.

How to test: on a lab Linux host with Sysmon for Linux or an auditd watch on /tmp, run touch /tmp/.bd.log and delete it afterwards.

Successful SSH login to VMware ESXi as vpxuser

Context: the step that turned a firewall compromise into lost servers was SSH from the gateway to ESXi as vpxuser, followed by a wiper. Check Point Research does not say how the attackers got working credentials. vpxuser is the account vCenter creates to manage a host through its API; as far as I know, it has no normal reason to open an interactive SSH session. That last part is my inference, which is why this rule is experimental.

Condition: alert when the ESXi authentication log records an accepted SSH login for vpxuser, from any source.

ATT&CK: Lateral Movement (TA0008) – T1021.004 Remote Services: SSH.

title: Successful SSH Login to VMware ESXi as vpxuser
id: 3f27fc62-3ea2-4c99-911c-4386ebb234fc
status: experimental
description: |
    Detects a successful SSH login to an ESXi host with the vpxuser account. In the Check Point gateway
    intrusions described by Check Point Research, attackers moved from a compromised firewall to ESXi over
    SSH as vpxuser and ran a wiper. vCenter manages hosts through this account over the management API,
    so an interactive SSH session as vpxuser is unusual (inference, not stated by the source).
references:
    - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.lateral-movement
    - attack.t1021.004
    - detection.emerging-threats
logsource:
    product: esxi
    service: sshd
    definition: 'Requirement: ESXi syslog forwarding (Syslog.global.logHost) including /var/log/auth.log; the ESXi SSH service is disabled by default.'
detection:
    keywords_accepted:
        - 'Accepted '
    keywords_user:
        - ' for vpxuser from '
    condition: keywords_accepted and keywords_user
falsepositives:
    - VMware support sessions or in-house scripts that SSH in as vpxuser (document and filter them by source address)
level: high

View on GitHub

False positives and tuning: the keyword match assumes the usual OpenSSH “Accepted … for vpxuser from” format; check one real ESXi auth.log line from your build and adjust. If a vendor support process or an in-house script really does SSH in as vpxuser, filter it by source address and write down why. Raise the level to critical when the source address belongs to a firewall or other network appliance. The ESXi SSH service is off by default, and leaving it off is a better control than any rule.

How to test: replay a synthetic line such as sshd[1234]: Accepted password for vpxuser from 192.0.2.10 port 50000 ssh2 into a test index. Don’t enable SSH or set a password for vpxuser on a real host to test this.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
PHP2Shell on the Mobile Access portalInitial Access (TA0001)T1190–Gap
Root via dynamic_socketPrivilege Escalation (TA0004)T1068Three DynamicCLI rulesYes
Commands run as rootExecution (TA0002)T1059.004DynamicCLI exploitation-style commandYes
zz*.tpl webshellsPersistence (TA0003)T1505.003Artifact file ruleYes, if file telemetry exists
TSProxy SOCKS proxyCommand and Control (TA0011)T1090Artifact file rulePartial (file drop only)
TSGA log tamperingDefense Evasion (TA0005)T1070–Gap
gogo scanning from the gatewayDiscovery (TA0007)T1046–Gap
SSH to ESXi as vpxuserLateral Movement (TA0008)T1021.004ESXi vpxuser SSH loginYes
destroy_v6 wiperImpact (TA0040)T1485–Gap

The biggest gap is the front door. Check Point Research gives artifacts (session files containing upload_progress_pwn and hundreds of Apache/PHP worker segfaults) but no request pattern I could turn into a rule without guessing. For the PHP side, Elastic already ships a rule that looks for the PHP out-of-memory fatal error located at “Unknown on line 0”, and its PHP2Shell write-up covers web servers spawning shells; CISA also added a Sigma rule for PHP2Shell attempts to its alert on October 23. I’d use those rather than write a weaker copy. A burst of worker segfaults on the portal is worth a dashboard even without a rule.

Log tampering is the gap that worries me most. TSGA can alter binary firewall logs, and root can edit dynamicCli.log. The fix is not a rule but a habit: forward in real time and compare on-box logs with what the SIEM received. gogo scanning and TCP 11072 traffic belong to your NDR or upstream firewall; a connection from outside to port 11072 on a gateway interface is worth a hunting query, though the port alone is too weak for an alert. The wiper on ESXi needs datastore monitoring and, honestly, tested offline backups.

Deploying the rules

Clone or download the YAML from the repo and convert it with sigma-cli. None of these rules has a ready-made field mapping in the common backends: the three Dynamic CLI rules and the ESXi rule use custom log sources, and Linux file events need TargetFilename mapped to whatever your agent calls the file path (Sysmon for Linux, auditd, Elastic Defend). The simplest start is to convert without a pipeline and scope the query to the right index or table yourself:

# Keyword rules: convert, then add the index / sourcetype holding dynamicCli.log or ESXi auth.log
sigma convert -t splunk --without-pipeline checkpoint_dynamiccli_cve_2026_123039_exploitation_commands.yml
sigma convert -t lucene --without-pipeline esxi_sshd_vpxuser_ssh_login.yml

# Linux file rule: convert, then rename TargetFilename to your agent's file path field
sigma convert -t splunk --without-pipeline file_event_lnx_checkpoint_gaia_tsga_tsproxy_artifacts.yml

If you convert often, write a small processing pipeline that sets the index and field names once; sigma list pipelines shows what your installed backends already offer. Then run everything in alert-only mode for a week before it pages anyone, except the file rule, which I’d let page from day one.

Retro-hunt with the same logic back to October 21, 2026, when PHP2Shell was fixed upstream. Search perimeter logs over that window for the two addresses Check Point Research published, 130.94.19[.]204 and 130.94.19[.]168, then let them age out; VPS addresses get reassigned. The hashes are in Check Point Research’s IOC table.

My take

This case is more detectable than most appliance bugs, and the credit goes to one log file. Because dynamic_server records what it receives, the root step leaves a plain-text trail, and Check Point told customers how to read it. That’s more than most vendors give you. If I could deploy one rule this week it would be the exploitation-style command rule, and after patching I’d keep the rejected-uid rule on forever as a tripwire.

The catch is that none of this telemetry leaves the box unless you make it. A firewall vendor whose backdoor victims had their logs tampered with should forward security-relevant appliance logs, Dynamic CLI included, by default, and should support some file integrity signal on the OS that customers can consume. Until then, the gap between “Check Point gave you a grep” and “your SOC sees it” is your work. And the rule I’d want to fire least is the ESXi one: if your firewall can SSH into your hypervisor, close that path before you tune anything.

Sources

PHP2Shell to root: how attackers turned Check Point gateways into footholds

PHP2Shell to root: how attackers turned Check Point gateways into footholds

Starting October 30, 2026, attackers sent crafted web requests to the Mobile Access portals of Check Point gateways at Israeli organizations. In the worst case Check Point describes, a few steps later they were root on the firewall, had a backdoor that can tamper with its logs, were on the VMware ESXi host over SSH, and ran a wiper there.

Check Point Research published the details on November 12, 2026. The chain uses two bugs: PHP2Shell, a pair of flaws in PHP itself that PHP fixed on October 21, and CVE-2026-123039, a Check Point bug where a root daemon on Gaia OS accepts commands from anyone who can reach a world-writable socket in /tmp. CISA added CVE-2026-123039 to its Known Exploited Vulnerabilities catalog on November 13 with a due date of November 16. Check Point says it saw exploitation against “a couple of dozen customers.”

Severity: critical. The local bug on its own is a 7.8, but paired with an unauthenticated web RCE on an internet-facing portal it turns your perimeter device into the attacker’s best foothold.

At a glance

  • CVEs: CVE-2026-109618 and CVE-2026-109619 (PHP2Shell, initial access), CVE-2026-123039 (Gaia DynamicCLI local privilege escalation to root).
  • Scores: the PHP security team rates CVE-2026-109618 CVSS v4.0 9.2, and secondary reporting gives CVE-2026-109619 the same 9.2. CVE-2026-123039 is CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) from Check Point as the CNA, with CWE-862 and CWE-732. I could not load the NVD record on November 15; Rescana reported it as still undergoing analysis.
  • Affected (sk1000362): Gaia R82.20, R82.10, R82, R81.20, R81.10 and R81 on Force Firewalls, Management and Log Servers, Multi-Domain Security Management and Multi-Domain Log Server, and Maestro Orchestrator. Spark Firewalls and Smart-1 Cloud are not affected.
  • Fixed in Jumbo Hotfix Accumulator: R82.20 Take 14, R82.10 Take 52, R82 Take 132, R81.20 Take 174, or later. No fixed take is listed for R81.10 or R81, both end of support.
  • Exploited: yes. Wave 1 from October 30 (Israeli organizations, some destructive), wave 2 from November 2 (multiple countries and sectors). In CISA KEV since November 13.
  • Attribution: unconfirmed. Check Point Research explicitly declines to assess it with high confidence.
  • Who should care: anyone running Check Point Mobile Access on the internet, and anyone whose firewall can SSH into ESXi.

What we know

PHP2Shell landed on October 21, 2026. The PHP security team shipped PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 and said updating was “the only complete mitigation.” The same day CISA told organizations to inventory PHP everywhere, including PHP bundled inside other products, and it added both CVEs to KEV on October 26.

Check Point’s Mobile Access portal is exactly that kind of bundled PHP. Check Point Research says the first wave began roughly one week after a fix became available. Rescana reports that Check Point’s PHP2Shell hotfix (sk1000302) was published on October 23; I did not open that bulletin myself, so treat that date as secondary.

The first wave, from October 30, hit Israeli organizations and included destructive activity against some of them. The second, from November 2, was broader and looked opportunistic, with no destructive activity observed. Check Point created sk1000362 on November 8, the CVE went public with the research on November 12, and KEV followed on November 13.

Timeline from October 21, 2026 (PHP fixes) through October 26 (PHP2Shell in KEV), October 30 and November 2 (exploitation waves), November 12 (Check Point Research write-up), November 13 (CVE-2026-123039 in KEV) to the November 16 KEV due date.
Nine days separated the upstream PHP fix and the first wave against Check Point gateways.

How the attack unfolded

Step one is PHP2Shell. According to the PHP advisory, PHP aborts a request with a long jump when memory runs out, and that can happen while internal request state is only half built. Request shutdown then trusts that state, which can be turned into code execution. PHP demonstrated it unauthenticated over HTTP against Apache with mod_php, before any application code runs. On a Check Point gateway that means code execution as the portal’s service account. Check Point found PHP session files under /opt/CPcvpn-R81.20/tmp/ containing the marker upload_progress_pwn, and hundreds of segmentation faults in the portal’s Apache/PHP workers during the October 30 window. Crashing workers are what memory-corruption exploitation tends to look like from the outside.

Step two is the part Check Point owns. Gaia runs a root process, dynamic_server, that serves Dynamic CLI commands over a local Unix socket at /tmp/dynamic_socket. On vulnerable builds that socket is mode 0777 and the daemon never checks who is calling. Any local process, including an unprivileged web worker, can hand it a command that runs as root. That is CWE-732 (incorrect permissions on a critical resource) plus CWE-862 (missing authorization). After the fix the socket is 0660, owned by root and the config group, and the daemon rejects callers it does not trust.

Five-step attack chain: PHP2Shell on the Mobile Access portal, root via the world-writable dynamic_socket, webshells and the TSGA backdoor, SSH pivot to ESXi as vpxuser, and the destroy_v6 wiper.
The chain as described by Check Point Research. The wiper stage was seen only in some first-wave intrusions.

With root, they planted webshells as zz*.tpl files in the portal’s login templates, protected by a hardcoded key. They launched a backdoor Check Point calls TSGA from /tmp/CPconfigdaemon, which relocates itself into a boot persistence directory as slot_CPconfigdaemon. Check Point lists its features as encrypted remote access, configuration theft, persistence in backups and snapshots, process injection and tampering with binary firewall logs. A companion implant, TSProxy, was written to /lib/libcpfwcommon.so and injected into appliance processes as an encrypted SOCKS-style proxy. Both use TCP port 11072 and a Unix socket at /tmp/.p_sock.

In at least one intrusion they then ran the gogo scanner, moved over SSH to a VMware ESXi host using the vpxuser account, staged a wiper Check Point calls destroy_v6 and ran it. The wiper writes DREAM_ANNEXATION.txt into every directory it processes. Check Point does not say how the attackers got working vpxuser credentials.

Who did it: still an open question

Here the facts get thin. Check Point Research links TSGA and TSProxy to a toolset called PhiliKit. It says ESET associated PhiliKit with UNC5221, a China-nexus group, that the toolset was previously reported in attacks on Ivanti appliances, and that TSProxy shares operator credentials and a TLS certificate with a PhiliKit component. The infrastructure sat on LightNode VPS hosts that Check Point says have previously been tied to China-nexus activity.

Then the picture breaks. The wiper note uses the brand of Dream Security, a company that had recently published research on PHP2Shell exploitation of Palo Alto Networks devices by China-nexus actors. Check Point says the destruction, the Israel focus and the Hebrew note do not fully align with UNC5221’s motives. Check Point lays out several possibilities, including an initial access broker or a false flag where the destruction is a smoke screen, and concludes that the evidence does not let it assess “with high confidence the true nature of this operation.” I’d leave it there: attribution is unconfirmed.

Who is affected and how badly

CVE-2026-123039 needs local code execution first, which is why it scores 7.8 and not 9-something. That framing undersells it. On a gateway with Mobile Access exposed and an unpatched PHP stack, “local” is one unauthenticated request away. Management and log servers are affected too, so any other foothold on those boxes gets the same root shortcut.

My honest rating: critical for anyone with Mobile Access facing the internet who was not on the PHP2Shell hotfix by late October. High for everyone else on affected versions, because a root-on-demand socket turns every future web bug on the appliance into full compromise. The R81.10 and R81 crowd is in the worst spot, with no fixed take listed and only the mitigation to lean on.

What to do now

  1. Install the Jumbo Hotfix that fixes CVE-2026-123039 on gateways, management and log servers: R82.20 Take 14, R82.10 Take 52, R82 Take 132, R81.20 Take 174, or later. Start with anything exposing Mobile Access. Confirm the takes in sk1000362 before scheduling; the CVE record’s affected ranges are worded slightly differently from the SK, and I’d follow the SK.
  2. Make sure the PHP2Shell fix is also on every Mobile Access gateway. Fixing the root socket without fixing the portal still leaves the attacker a webshell.
  3. If you cannot patch, use the sk1000362 mitigation: stop dynamic_server and stop it from restarting. This breaks the Dynamic CLI commands listed in sk144112. Copy the exact commands from the SK, not from a blog.
  4. On R81.10 or R81, apply the mitigation and plan the upgrade. Turn off Mobile Access where nobody uses it.
  5. If your Mobile Access portal was reachable and unpatched at any point after October 21, treat the box as possibly compromised and run the checks in the detection section below. Patching does not remove a webshell or a backdoor that is already there.
  6. Review what your firewall can reach. A gateway that can SSH into ESXi, or that holds credentials which work there, is a bridge nobody designed on purpose. Ship firewall logs off the box in real time, since TSGA can tamper with them.

Detection and monitoring

Two parts of this chain are easy to see if you collect the right logs, and the rest is hard. The easiest is the privilege escalation itself: dynamic_server writes every command it receives to /var/log/dynamicCli.log, and sk1000362 tells you what normal looks like. The second is the implant drop, since Check Point Research names the exact paths. The PHP2Shell request and the wiper are the weak spots. The catch is that Gaia does not ship dynamicCli.log off the box by default, most gateways run no EDR, and an attacker with root can edit local logs. Forwarding comes first, rules second.

RuleCategoryLog sourceATT&CKLevel
DynamicCLI exploitation-style commandNetwork (firewall)dynamicCli.logT1068, T1059.004High
DynamicCLI command without Clish wrapperNetwork (firewall)dynamicCli.logT1068Medium
DynamicCLI rejected unauthorized uid (after patching)Network (firewall)dynamicCli.logT1068Medium
TSGA, TSProxy or portal webshell file createdLinuxFile creationT1505.003, T1090Critical
SSH login to ESXi as vpxuserIdentityESXi auth.logT1021.004High

The one I’d turn on first is the exploitation-style command rule. It fires when the root daemon logs a received command containing the strings Check Point itself lists as typical of exploitation: whoami, /dev/tcp, curl or wget, base64, useradd, authorized_keys and a few others. Clish has no reason to send any of those through Dynamic CLI, so a hit means someone used the socket as a root shell. It is the SK’s own grep turned into a SIEM rule:

title: Check Point Gaia DynamicCLI Exploitation-Style Command - CVE-2026-123039
id: 50564284-e728-4af4-940e-a38255c15ab2
status: test
description: |
    Detects commands received by the root dynamic_server daemon on Check Point Gaia that contain
    discovery, download, reverse-shell, credential or account-creation strings. Check Point sk1000362
    lists these strings in /var/log/dynamicCli.log as typical of CVE-2026-123039 exploitation, where a
    web worker abuses the world-writable /tmp/dynamic_socket to run commands as root.
references:
    - https://support.checkpoint.com/results/sk/sk1000362
    - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.t1068
    - attack.t1059.004
    - cve.2026-123039
    - detection.emerging-threats
logsource:
    product: checkpoint
    service: dynamiccli
    definition: 'Requirement: forward /var/log/dynamicCli.log from every Gaia gateway, cluster member and management server to the SIEM (not shipped by default).'
detection:
    keywords_received:
        - 'Received ='
    keywords_commands:
        - ' id;'
        - ' whoami'
        - '/etc/shadow'
        - 'ncat'
        - 'nc -'
        - '/dev/tcp'
        - 'curl '
        - 'wget '
        - 'base64'
        - 'useradd'
        - 'authorized_keys'
    condition: keywords_received and keywords_commands
falsepositives:
    - Administrators deliberately running such commands through Dynamic CLI during troubleshooting (rare; confirm with the change record)
level: high

The read-only checks from sk1000362 still apply on each gateway in Expert mode: confirm /tmp/dynamic_socket is srw-rw---- root config after the hotfix, then grep dynamicCli.log for received commands without the Clish wrapper. Check Point Research’s artifact paths (/tmp/CPconfigdaemon, /tmp/.bd.log, /lib/libcpfwcommon.so, zz*.tpl in the portal tree, a listener on TCP 11072) are worth a one-off sweep, and the hashes are in CPR’s IOC table.

After patching, keep watching. On a fixed build the daemon logs “Rejected connection from unauthorized uid” when an untrusted process knocks, and a non-zero uid like 99 means something on the box still has a foothold. I’d retro-hunt every log you have back to October 21, 2026, when PHP2Shell was patched upstream. Search perimeter logs for 130.94.19[.]204 and 130.94.19[.]168 over the same window, then let those IPs age out after about 90 days; VPS addresses get recycled. On ESXi, any SSH login as vpxuser deserves a call to whoever owns vCenter.

I wrote up all five rules, with tuning notes, lab tests and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The headline bug here is not really the one in KEV. PHP2Shell was public, patched and screamed about by CISA on October 21. Attackers were inside Check Point gateways nine days later. The lesson I take is that a security appliance carries a full open-source web stack, and its exposure clock starts when that upstream project patches, not when the appliance vendor writes its own bulletin. If your firewall patching waits for the vendor’s cadence, you lost this race before it started.

CVE-2026-123039 is the part that should embarrass the vendor. A root daemon taking unauthenticated commands over a world-writable socket in /tmp is a bug class we were writing up in the 1990s. On a product whose whole job is enforcing trust boundaries, the boundary between “web worker” and “root” was a file permission. The CVSS 7.8 is technically correct and practically misleading: in real deployments it is the multiplier that turns any web bug on the box into full control, including log tampering on the device you rely on for evidence.

I would not spend time on attribution yet; Check Point itself will not commit. What matters for defenders is the same either way: the firewall had a path into ESXi. If I ran a Check Point estate this week, I’d patch, run the dynamicCli.log checks on every gateway exposed since October 21, and then go find out exactly what credentials and network paths my firewalls have into the virtualization layer. Most people will skip that last step, and it is the one that decided whether victims lost a firewall or their servers.

Sources