{"schema_version":1,"scope":"sélection","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.","count":10,"rules":[{"id":"0dc2e2ef-6902-4e4c-a857-dea895cb0309","date":"2026-11-15","format":"sigma","title":"SysMon task or reverse SSH tunnel from the trojanised Claude Code extension (Cursor)","description":"Process creation of the SysMon scheduled task or of the ssh -N -R '*:0:localhost:22' reverse tunnel described by Cursor for the trojanised Anthropic.claude-code 2.1.312 and 2.1.313 extension.","level":"high","attack":["T1053.005","T1572","T1098.004"],"references":["https://cursor.com/blog/claude-code-extension-security-notice","https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/"],"falsepositives":["Administrator-created task genuinely named SysMon","Legitimate reverse SSH tunnels using the same remote forwarding syntax"],"content":"title: Cursor trojanised Claude Code extension, SysMon task or reverse SSH tunnel\nid: 0dc2e2ef-6902-4e4c-a857-dea895cb0309\nstatus: experimental\ndescription: Detects the scheduled task SysMon and the reverse SSH tunnel command line used by the trojanised Anthropic.claude-code 2.1.312 and 2.1.313 extension served by the Cursor marketplace on 29 October 2026.\nreferences:\n  - https://cursor.com/blog/claude-code-extension-security-notice\n  - https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/\nauthor: Threat Brief (tlpclear.fr)\ndate: 2026-11-15\ntags:\n  - attack.persistence\n  - attack.t1053.005\n  - attack.command-and-control\n  - attack.t1572\nlogsource:\n  category: process_creation\ndetection:\n  selection_task:\n    CommandLine|contains: 'schtasks /create /tn SysMon'\n  selection_tunnel:\n    CommandLine|contains: \"-N -R '*:0:localhost:22'\"\n  condition: 1 of selection_*\nfalsepositives:\n  - Administrator-created task genuinely named SysMon\n  - Legitimate reverse SSH tunnels using the same remote forwarding syntax\nlevel: high\n","topic":"Cursor: a key held by Fireworks AI, stolen agent traces and a trojanised Claude Code extension served for 11 hours","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-15"},{"id":"852554e1-7963-442f-85d5-0adaffb66756","date":"2026-11-15","format":"yara","title":"Backdoored extension.js of the Claude Code extension (Cursor)","description":"Script containing the svc-telemetry SSH key comment together with the attacker IP or the reverse tunnel forwarding string, as described by Cursor for the malicious extension.js.","level":"high","attack":["T1195.002","T1098.004"],"references":["https://cursor.com/blog/claude-code-extension-security-notice"],"falsepositives":["Security reports or remediation scripts quoting these indicators"],"content":"rule TB_20261115_Cursor_ClaudeCode_extension_js\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-11-15\"\n        reference = \"https://cursor.com/blog/claude-code-extension-security-notice\"\n        description = \"Backdoored extension.js of the trojanised Anthropic.claude-code 2.1.312 and 2.1.313 extension (Cursor marketplace, 29 October 2026)\"\n        status = \"experimental\"\n    strings:\n        $key = \"svc-telemetry\" ascii\n        $ip = \"134.209.82.225\" ascii\n        $tun = \":0:localhost:22\" ascii\n    condition:\n        filesize < 15MB and $key and ($ip or $tun)\n}\n","topic":"Cursor: a key held by Fireworks AI, stolen agent traces and a trojanised Claude Code extension served for 11 hours","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-15"},{"id":"79335f3a-ce48-490d-a9d9-54b1e16bfba6","date":"2026-11-10","format":"xql","title":"SSH session reading /etc/shadow, touching authorized_keys or querying cloud metadata","description":"Processes spawned under sshd whose command line targets /etc/shadow, authorized_keys, the 169.254.169.254 metadata service or the TAC Agent C2. New item from 09/11: post-exploitation strings described by GreyNoise.","level":"high","attack":["T1003.008","T1098.004","T1552.005","T1071.001"],"references":["https://www.bleepingcomputer.com/news/security/hackers-exploit-sshole-openssh-flaw-to-breach-linux-systems/"],"falsepositives":["administrators managing authorized_keys over SSH","cloud inventory scripts executed via SSH"],"content":"// Threat Brief 2026-11-10 · SSHole (CVE-2026-123158) · experimental\n// Post-exploitation described by GreyNoise: reading /etc/shadow, authorized_keys, cloud metadata, TAC Agent C2\nconfig case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START\n| filter causality_actor_process_image_name = \"sshd\"\n| filter action_process_image_command_line contains \"/etc/shadow\" or action_process_image_command_line contains \"authorized_keys\" or action_process_image_command_line contains \"169.254.169\" or action_process_image_command_line contains \"tac.vpnla.org\"\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line\n","topic":"SSHole (CVE-2026-123158): confirmed exploitation, root and TAC Agent implant","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-10"},{"id":"eb97060c-943d-42aa-b329-0cab9f65b68b","date":"2026-11-03","format":"sigma","title":"Reverse SSH tunnel to localhost:22 from Cursor or Node","description":"ssh -R to local port 22 spawned by the editor or Node, or targeting tunnel@134.209.82.225: backdoor tunnel from the weaponised extension.","level":"high","attack":["T1572","T1098.004"],"references":["https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor","https://www.helpnetsecurity.com/2026/10/30/claude-code-extension-ssh-backdoor/"],"falsepositives":["Reverse tunnel opened intentionally from the integrated terminal"],"content":"title: Reverse SSH tunnel to localhost:22 spawned from Cursor or Node (weaponised Claude Code extension)\nid: eb97060c-943d-42aa-b329-0cab9f65b68b\nstatus: experimental\ndescription: ssh process opening a reverse tunnel to local port 22, spawned by Cursor or Node, or targeting tunnel@134.209.82.225, matching the loader in anthropic.claude-code extension 2.1.312 and 2.1.313 from the Cursor marketplace.\nreferences:\n  - https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor\n  - https://www.helpnetsecurity.com/2026/10/30/claude-code-extension-ssh-backdoor/\nauthor: Threat Brief (tlpclear.fr)\ndate: 2026-11-03\ntags:\n  - attack.command-and-control\n  - attack.t1572\n  - attack.persistence\n  - attack.t1098.004\nlogsource:\n  category: process_creation\ndetection:\n  selection_ssh:\n    Image|endswith:\n      - '/ssh'\n      - '\\ssh.exe'\n    CommandLine|contains: ' -R '\n  selection_target:\n    CommandLine|contains: 'localhost:22'\n  selection_parent:\n    ParentImage|contains:\n      - 'Cursor'\n      - 'node'\n  selection_ioc:\n    CommandLine|contains: 'tunnel@134.209.82.225'\n  condition: (selection_ssh and selection_target and selection_parent) or selection_ioc\nfalsepositives:\n  - Developers manually opening a reverse tunnel from the editor integrated terminal\nlevel: high\n","topic":"Trojanised \"Claude Code\" extension on the Cursor marketplace: SSH backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-03"},{"id":"2ea18386-f08e-4d9a-9480-00c0bd31882e","date":"2026-11-03","format":"yara","title":"extension.js of the weaponised Claude Code loader","description":"Strings from the injected loader prepended to extension.js: svc-telemetry key, authorized_keys, tunnel to 134.209.82.225.","level":"high","attack":["T1195.002","T1098.004"],"references":["https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor","https://www.helpnetsecurity.com/2026/10/30/claude-code-extension-ssh-backdoor/"],"falsepositives":["None known"],"content":"rule TB_20261103_ClaudeCode_Cursor_extension_loader\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-11-03\"\n        reference = \"https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor\"\n        description = \"Weaponised extension.js from anthropic.claude-code extension (Cursor marketplace): svc-telemetry key, authorized_keys, and reverse SSH tunnel\"\n        status = \"experimental\"\n    strings:\n        $k1 = \"svc-telemetry\" ascii\n        $k2 = \"authorized_keys\" ascii\n        $k3 = \"134.209.82.225\" ascii\n        $k4 = \"localhost:22\" ascii\n        $k5 = \"child_process\" ascii\n    condition:\n        filesize < 30MB and $k5 and 3 of ($k1, $k2, $k3, $k4)\n}\n","topic":"Trojanised \"Claude Code\" extension on the Cursor marketplace: SSH backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-03"},{"id":"fb32b677-874b-41b4-9aae-c9bf3a2e3135","date":"2026-11-03","format":"xql","title":"Write to authorized_keys by the Cursor or Node process tree","description":"The loader appends the svc-telemetry key to authorized_keys: editor or Node writes to this file are anomalous.","level":"medium","attack":["T1098.004"],"references":["https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor","https://www.helpnetsecurity.com/2026/10/30/claude-code-extension-ssh-backdoor/"],"falsepositives":["Node provisioning tools managing SSH keys"],"content":"// Threat Brief 2026-11-03 · weaponised Claude Code extension (Cursor) · experimental\n// Write to authorized_keys by a process in the Cursor or Node process tree\nconfig case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.FILE\n| filter action_file_path contains \"authorized_keys\"\n| filter causality_actor_process_image_name contains \"cursor\" or actor_process_image_name contains \"node\"\n| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, actor_process_command_line, action_file_path\n","topic":"Trojanised \"Claude Code\" extension on the Cursor marketplace: SSH backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-03"},{"id":"b6da2ef5-2f58-4443-b686-469168e677d8","date":"2026-11-02","format":"sigma","title":"~/.config/.smt and .smtk created","description":"Backdoor disk artefacts reported by edition sources (immediate hunt recommended).","level":"high","attack":["T1098.004","T1564.001"],"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 tool using the same filename"],"content":"title: .smt / .smtk files from the trojanised Claude Code extension backdoor\nid: b6da2ef5-2f58-4443-b686-469168e677d8\nstatus: experimental\ndescription: Creation of ~/.config/.smt or ~/.config/.smtk, SSH backdoor artefacts from the trojanised anthropic.claude-code extension on 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-11-02\ntags:\n  - attack.persistence\n  - attack.t1098.004\nlogsource:\n  category: file_event\ndetection:\n  selection:\n    TargetFilename|endswith:\n      - '/.config/.smt'\n      - '/.config/.smtk'\n  condition: selection\nfalsepositives:\n  - Legitimate tool using the same hidden filename, verify\nlevel: high\n","topic":"Trojanised \"Claude Code\" extension on the Cursor marketplace: persistent SSH backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-02"},{"id":"c8962cb9-b20c-4157-a078-cc7a88f9aa74","date":"2026-11-01","format":"xql","title":"authorized_keys modified from Cursor","description":"Loader adds svc-telemetry Ed25519 key to authorized_keys from the extension: writing to this file under Cursor is anomalous.","level":"high","attack":["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":["Developer manually adding a key from Cursor's integrated terminal"],"content":"// Threat Brief 2026-11-01 · trojanised Claude Code extension (Cursor) · experimental\n// Write to authorized_keys by a process chain originating from Cursor\nconfig case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.FILE and action_file_path contains \"authorized_keys\"\n| filter causality_actor_process_image_name contains \"cursor\" or actor_process_command_line contains \"anthropic.claude-code\"\n| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, actor_process_command_line, action_file_path\n| sort desc _time\n","topic":"Trojanised 'Claude Code' extension on Cursor Marketplace","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-01"},{"id":"439818e7-28c3-4112-97d8-d4dbd63a2e73","date":"2026-10-31","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","topic":"Trojanised \"Claude Code\" extension on the Cursor marketplace: persistent SSH backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-10-31"},{"id":"9f2989bf-f6e0-46fd-90db-e78371716124","date":"2026-10-31","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","topic":"Trojanised \"Claude Code\" extension on the Cursor marketplace: persistent SSH backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-10-31"}]}