{"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":6,"rules":[{"id":"703d4590-0caa-4114-91e1-778f9814fe5c","date":"2026-11-18","format":"yara","title":"agent-framework 1.26.1 and 1.26.2 credential stealer and .pth hook","description":"Matches the stealer module (Base64-encoded exfiltration URL, _AF_TEL guard, User-Agent, GitHub and Azure DevOps OIDC tokens) and the one-line .pth files importing it.","level":"high","attack":["T1195.002","T1552.001"],"references":["https://socket.dev/blog/agent-framework-pypi-package-compromised-with-credential-stealer?utm_medium=feed","https://www.stepsecurity.io/blog/microsoft-agent-framework-pypi-package-compromised"],"falsepositives":["sample copies in analysis repositories"],"content":"rule TB_20261118_agent_framework_pth_stealer\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-11-18\"\n        reference = \"https://socket.dev/blog/agent-framework-pypi-package-compromised-with-credential-stealer?utm_medium=feed\"\n        description = \"Credential stealer and .pth startup hook of the compromised agent-framework PyPI releases 1.26.1 and 1.26.2\"\n        status = \"experimental\"\n    strings:\n        $enc = \"aHR0cHM6Ly93ZWJob29rLnNpdGUvZDM4MWZkODAtZWM2Mi00MmFkLThmNWMtZDFiMTUxMDNjOWJi\" ascii\n        $guard = \"_AF_TEL\" ascii\n        $ua1 = \"af-runtime-diagnostics/1\" ascii\n        $ua2 = \"runtime-diagnostics/1\" ascii\n        $hook = \"Lightweight runtime diagnostics hook\" ascii\n        $gh = \"ACTIONS_ID_TOKEN_REQUEST_URL\" ascii\n        $ado = \"SYSTEM_OIDCREQUESTURI\" ascii\n        $pth1 = \"import agent_framework_meta\" ascii\n        $pth2 = \"import af_runtime_diag\" ascii\n    condition:\n        (filesize < 200KB and ($enc or ($guard and 2 of ($ua*, $hook, $gh, $ado))))\n        or (filesize < 256 and 1 of ($pth*))\n}\n","topic":"PyPI: Microsoft's official agent-framework package ships two poisoned versions (1.26.1, 1.26.2) stealing Azure, GitHub and CI credentials","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-18"},{"id":"0b791ad5-388d-4da5-b213-5292f061d800","date":"2026-11-17","format":"yara","title":"OPTIMJACK track.js payload (clipper, skimmer, iOS loader)","description":"Matches the JavaScript payload, or a copy embedded in an Optimizely script, by its host, exfiltration paths, iOS iframe path and page globals; the payload changed four times on 16/11, hence a content rule rather than a hash. Does not cover the Base64-encoded loader.","level":"high","attack":["T1195.002","T1056.003"],"references":["https://www.stepsecurity.io/blog/optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer"],"falsepositives":["analysis reports or blocklists quoting these paths"],"content":"rule TB_20261117_OPTIMJACK_track_js\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-11-17\"\n        reference = \"https://www.stepsecurity.io/blog/optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer\"\n        description = \"OPTIMJACK track.js (crypto clipper, card skimmer, iOS stage loader) served through Optimizely-hosted scripts: payload host, exfiltration paths, iOS iframe path and page globals\"\n        status = \"experimental\"\n    strings:\n        $host = \"1688360.cc\" ascii nocase\n        $ios = \"/JIUJIU888/weifile.html\" ascii\n        $p1 = \"/card.php\" ascii\n        $p2 = \"/hit.php\" ascii\n        $p3 = \"html2canvas.min.js\" ascii\n        $g1 = \"_qxc\" ascii\n        $g2 = \"_shot\" ascii\n    condition:\n        uint16(0) != 0x5a4d and filesize < 500KB and ($ios or ($host and 1 of ($p*)) or (all of ($g*) and 2 of ($p*)))\n}\n","topic":"Optimizely: a signup flow flaw exploited to hijack scripts served to about 180 organisations (OPTIMJACK)","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-17"},{"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":"5c1ae5ab-38ab-4256-98ea-b863cbbeb59d","date":"2026-11-10","format":"yara","title":"SleepyDuck loader from bee-js 13.3.0 and Swarm Desktop 0.56.2","description":"Matches generate-version.cjs, index.js or app.asar containing the stage 1 domain and the paths /v1/analytics, /v1/electron, /v1/swarm/report or the X-Ethersphere header.","level":"high","attack":["T1195.002","T1059.007"],"references":["https://socket.dev/blog/bee-js-compromise"],"falsepositives":["analysis reports or IOC lists containing these strings"],"content":"rule TB_20261110_beejs_SleepyDuck_loader\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-11-10\"\n        reference = \"https://socket.dev/blog/bee-js-compromise\"\n        description = \"SleepyDuck loader from bee-js 13.3.0 (scripts/generate-version.cjs) and Swarm Desktop 0.56.2 (Electron main process)\"\n        status = \"experimental\"\n    strings:\n        $d = \"frameworkmetrics.xyz\" ascii wide\n        $p1 = \"/v1/analytics\" ascii wide\n        $p2 = \"/v1/electron\" ascii wide\n        $p3 = \"/v1/swarm/report\" ascii wide\n        $h = \"X-Ethersphere\" ascii wide nocase\n    condition:\n        filesize < 200MB and $d and 1 of ($p*, $h)\n}\n","topic":"Supply chain: bee-js 13.3.0 and Swarm Desktop 0.56.2 deliver the SleepyDuck backdoor","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-10"},{"id":"f745941c-786e-42e9-bc0f-32874f2bc149","date":"2026-11-09","format":"yara","title":"testmetest worm index.js and sync.py","description":"msync-3f7a, AutoSyncComplete, paleasbest.top markers and hashes published by Socket for payload, backdoor and installer.","level":"high","attack":["T1195.002","T1059.006"],"references":["https://socket.dev/blog/shai-hulud-descendant-malicious-ruby-gem"],"falsepositives":["analysis reports or rule repositories containing these strings"],"content":"import \"hash\"\n\nrule TB_20261109_strutil_core_testmetest\n{\n    meta:\n        author = \"Threat Brief (tlpclear.fr)\"\n        date = \"2026-11-09\"\n        reference = \"https://socket.dev/blog/shai-hulud-descendant-malicious-ruby-gem\"\n        description = \"index.js payload and sync.py backdoor of the testmetest worm (strutil-core 1.0.1 gem): markers and hashes published by Socket\"\n        status = \"experimental\"\n    strings:\n        $m1 = \"msync-3f7a\" ascii\n        $m2 = \"AutoSyncComplete\" ascii\n        $m3 = \"paleasbest.top\" ascii\n        $m4 = \"/var/tmp/.fontconfig_state\" ascii\n        $m5 = \"net-health-checker\" ascii\n        $m6 = \"workspace-tools\" ascii\n        $m7 = \"bun-v1.2.18\" ascii\n    condition:\n        uint16(0) != 0x5a4d and uint32(0) != 0x464c457f and filesize < 8MB and\n        (\n            2 of ($m1, $m2, $m3, $m4) or\n            ($m3 and 2 of ($m5, $m6, $m7)) or\n            hash.sha256(0, filesize) == \"c7ef186aa59b67d9b198a14f6dc8aaee6dd86510ac7c37d28f65d310cd846411\" or\n            hash.sha256(0, filesize) == \"306c1deec402e8b4a6478e7f0fe02194bcd224d37d8fc6ba61ad1951e8abd7a9\" or\n            hash.sha256(0, filesize) == \"c5264f3b9cf2f95c83a70b7dd7430aab8abc262b853dbbcd5386c3a8a9c74769\"\n        )\n}\n","topic":"RubyGems strutil-core 1.0.1: testmetest worm returns, with wiper on revocation","status":"experimental","page":"https://tlpclear.fr/detections/2026-11-09"},{"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"}]}