{"schema_version":1,"date":"2026-10-31","license":"DRL 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License","status":"experimental","disclaimer":"Experimental rule, provided without warranty: test and validate in your environment before any production use; do not block on it alone.","topics":[{"title":"Ivanti Connect Secure: CVE-2026-111357 and CVE-2026-118527 in KEV, chained with CVE-2026-104935","level":"critique","rules":[],"external":[{"title":"Volexity IOCs: Ivanti Connect Secure chain (2026-10-13)","url":"https://github.com/volexity/threat-intel/tree/main/2026/2026-10-13%20Ivanti","author":"Volexity","format":"IOC","license":"link only"}]},{"title":"GitLab CE/EE CVE-2026-97229 (CVSS 10) exploited, targeting Alpine Linux","level":"critique","rules":[],"external":[{"title":"Detections published with the 19.4.2 fix (Onigmo native worker crash, ci regexp guard rejection...)","url":"https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/","author":"GitLab","format":"logique SIEM","license":"link only"}]},{"title":"PHP2Shell (CVE-2026-109618/109619): root on PAN-OS firewalls","level":"critique","rules":[{"id":"e5f98017-b79e-441f-9222-6a0c8ba428ed","format":"sigma","title":"User-Agent php2shell-scan / php2shell-scanner","description":"Identifies known PHP2Shell scans in web logs; targeting signal, not compromise.","level":"medium","attack":["T1595.002"],"references":["https://www.trellix.com/blogs/research/php2shell-key-info-on-cve-2026-109618-and-cve-2026-109619/"],"falsepositives":["authorised exposure scans"],"content":"title: PHP2Shell scanner User-Agents (CVE-2026-109618/109619)\nid: e5f98017-b79e-441f-9222-6a0c8ba428ed\nstatus: experimental\ndescription: Requests carrying PHP2Shell scanner User-Agents identified by Trellix.\nreferences:\n  - https://www.trellix.com/blogs/research/php2shell-key-info-on-cve-2026-109618-and-cve-2026-109619/\nauthor: Threat Brief (tlpclear.fr)\ndate: 2026-10-31\ntags:\n  - attack.reconnaissance\n  - attack.t1595.002\n  - cve.2026-109618\n  - cve.2026-109619\nlogsource:\n  category: webserver\ndetection:\n  selection:\n    cs-user-agent|contains:\n      - 'php2shell-scan/'\n      - 'Php2shell-109618'\n      - 'php2shell-scanner/'\n  condition: selection\nfalsepositives:\n  - Authorised exposure scans (internal team, contractor)\nlevel: medium\n"},{"id":"93188e34-bbe9-4462-bafe-08c1203d685e","format":"xql","title":"Suspicious shell spawned by a PHP worker","description":"PHP2Shell post-exploitation: shell child of php-fpm, php-cgi, lsphp, or Apache with curl, wget, /dev/tcp, or base64 -d (Elastic and Unit 42 logic).","level":"high","attack":["T1190","T1505.003","T1059.004"],"references":["https://www.elastic.co/es/security-labs/threat-command/php2shell-php-rce-detection","https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/"],"falsepositives":["PHP applications legitimately calling curl via a shell","mail() via sendmail"],"content":"// Threat Brief 2026-10-31 · PHP2Shell (CVE-2026-109618/109619) · experimental\n// Shell spawned by a PHP worker or web server with download, reverse shell, or decoding activity\nconfig case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START\n| filter actor_process_image_name in (\"php-fpm\", \"php-cgi\", \"lsphp\", \"frankenphp\", \"httpd\", \"apache2\") or actor_process_image_name ~= \"^php-fpm\"\n| filter action_process_image_name in (\"sh\", \"bash\", \"dash\", \"zsh\", \"ksh\")\n| filter action_process_image_command_line contains \"curl\" or action_process_image_command_line contains \"wget\" or action_process_image_command_line contains \"/dev/tcp\" or action_process_image_command_line contains \"base64 -d\" or action_process_image_command_line contains \"/etc/shadow\"\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line\n| sort desc _time\n"}],"external":[{"title":"Potential PHP2Shell Exploitation Attempt","url":"https://detection.fyi/elastic/detection-rules/cross-platform/initial_access_potential_php2shell_exploitation_attempt/","author":"Elastic","format":"Elastic (query)","license":"Elastic License v2"},{"title":"Suspicious Command Execution via Web Server","url":"https://github.com/elastic/detection-rules/blob/main/rules/linux/persistence_webserver_suspicious_command_execution.toml","author":"Elastic","format":"Elastic (EQL)","license":"Elastic License v2"},{"title":"Unit 42 Managed Threat Hunting Queries (XQL) and Threat ID 543004","url":"https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/","author":"Unit 42 (Palo Alto Networks)","format":"XQL","license":"link only","note":"Generic post-exploitation query, not specific to the CVEs according to Unit 42"}]},{"title":"Trojanised \"Claude Code\" extension on the Cursor marketplace: persistent SSH backdoor","level":"eleve","rules":[{"id":"9f2989bf-f6e0-46fd-90db-e78371716124","format":"sigma","title":"ssh/autossh -R *:0:localhost:22 (trojanised Claude Code extension)","description":"Detects the reverse SSH tunnel opened by the trojanised extension loader, or any ssh connection to tunnel@134.209.82.225.","level":"high","attack":["T1572","T1098.004"],"references":["https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/","https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor"],"falsepositives":["legitimate administrative reverse SSH tunnels"],"content":"title: Reverse SSH tunnel from trojanised Claude Code extension (Cursor)\nid: 9f2989bf-f6e0-46fd-90db-e78371716124\nstatus: experimental\ndescription: Execution of ssh or autossh opening a reverse tunnel to local port 22, backdoor pattern of the anthropic.claude-code 2.1.312/2.1.313 extension from the Cursor marketplace.\nreferences:\n  - https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/\n  - https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor\nauthor: Threat Brief (tlpclear.fr)\ndate: 2026-10-31\ntags:\n  - attack.command-and-control\n  - attack.t1572\n  - attack.persistence\n  - attack.t1098.004\nlogsource:\n  category: process_creation\ndetection:\n  selection_img:\n    Image|endswith:\n      - '/ssh'\n      - '/autossh'\n      - '\\ssh.exe'\n      - '\\autossh.exe'\n  selection_tunnel:\n    CommandLine|contains|all:\n      - '-R'\n      - ':0:localhost:22'\n  selection_ioc:\n    CommandLine|contains: 'tunnel@134.209.82.225'\n  condition: selection_img and (selection_tunnel or selection_ioc)\nfalsepositives:\n  - Legitimate administrative or support reverse SSH tunnels exposing local sshd\nlevel: high\n"},{"id":"6e1c8d43-713d-41f9-9654-ae07d5aaeba7","format":"xql","title":"Traffic to 134.209.82.225 or ssh -R to localhost:22","description":"Cortex XDR endpoints connecting to the backdoor tunnel IP (ports 22 and 8099) or launching the reverse SSH tunnel described by Microsoft.","level":"high","attack":["T1572","T1071"],"references":["https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/","https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor"],"falsepositives":["legitimate administrative reverse SSH tunnels"],"content":"// Threat Brief 2026-10-31 · trojanised Claude Code extension (Cursor) · experimental\n// Reverse SSH tunnel or traffic to 134.209.82.225 infrastructure (22, 8099)\nconfig case_sensitive = false\n| dataset = xdr_data\n| filter (event_type = ENUM.NETWORK and action_remote_ip = \"134.209.82.225\") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and action_process_image_name in (\"ssh\", \"autossh\", \"ssh.exe\") and action_process_image_command_line contains \":0:localhost:22\")\n| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, action_process_image_command_line, action_remote_ip, action_remote_port\n| sort desc _time\n"},{"id":"439818e7-28c3-4112-97d8-d4dbd63a2e73","format":"yara","title":"Trojanised extension.js in Claude Code extension (Cursor)","description":"Detects the loader prepended to extension.js (strings for svc-telemetry key, tunnel IP, LaunchAgent) or the published SHA256.","level":"high","attack":["T1195.002","T1098.004"],"references":["https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/","https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor"],"falsepositives":["copies of reports or IOCs referencing these strings"],"content":"import \"hash\"\n\nrule TB_20261031_ClaudeCode_Cursor_trojanized_extension\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-10-31\"\n        reference = \"https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/\"\n        description = \"Trojanised extension.js from anthropic.claude-code 2.1.312/2.1.313 (Cursor marketplace): svc-telemetry key, tunnel to 134.209.82.225, LaunchAgent com.apple.sysmond\"\n        status = \"experimental\"\n    strings:\n        $k = \"svc-telemetry\" ascii\n        $ip = \"134.209.82.225\" ascii\n        $la = \"com.apple.sysmond\" ascii\n        $t = \"localhost:22\" ascii\n    condition:\n        filesize < 20MB and ( hash.sha256(0, filesize) == \"ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15\" or ( $ip and 2 of ($k, $la, $t) ) )\n}\n"}],"external":[{"title":"KQL hunting queries (Defender XDR) for the trojanised Claude Code extension","url":"https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/","author":"Microsoft Threat Intelligence","format":"KQL","license":"link only"}]}]}