// Threat Brief 2026-10-31 ยท Trojanised extension.js in Claude Code extension (Cursor) // Experimental rule, provided without warranty: test and validate in your environment before any production use; do not block on it alone. // License DRL 1.1 (https://github.com/SigmaHQ/Detection-Rule-License), author Threat Brief, https://tlpclear.fr/detections/2026-10-31 import "hash" rule TB_20261031_ClaudeCode_Cursor_trojanized_extension { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-10-31" reference = "https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/" 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" status = "experimental" strings: $k = "svc-telemetry" ascii $ip = "134.209.82.225" ascii $la = "com.apple.sysmond" ascii $t = "localhost:22" ascii condition: filesize < 20MB and ( hash.sha256(0, filesize) == "ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15" or ( $ip and 2 of ($k, $la, $t) ) ) }