// Threat Brief 2026-11-18 · agent-framework 1.26.1 and 1.26.2 credential stealer and .pth hook // 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-11-18 rule TB_20261118_agent_framework_pth_stealer { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-11-18" reference = "https://socket.dev/blog/agent-framework-pypi-package-compromised-with-credential-stealer?utm_medium=feed" description = "Credential stealer and .pth startup hook of the compromised agent-framework PyPI releases 1.26.1 and 1.26.2" status = "experimental" strings: $enc = "aHR0cHM6Ly93ZWJob29rLnNpdGUvZDM4MWZkODAtZWM2Mi00MmFkLThmNWMtZDFiMTUxMDNjOWJi" ascii $guard = "_AF_TEL" ascii $ua1 = "af-runtime-diagnostics/1" ascii $ua2 = "runtime-diagnostics/1" ascii $hook = "Lightweight runtime diagnostics hook" ascii $gh = "ACTIONS_ID_TOKEN_REQUEST_URL" ascii $ado = "SYSTEM_OIDCREQUESTURI" ascii $pth1 = "import agent_framework_meta" ascii $pth2 = "import af_runtime_diag" ascii condition: (filesize < 200KB and ($enc or ($guard and 2 of ($ua*, $hook, $gh, $ado)))) or (filesize < 256 and 1 of ($pth*)) } // Threat Brief 2026-11-17 · OPTIMJACK track.js payload (clipper, skimmer, iOS loader) // 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-11-17 rule TB_20261117_OPTIMJACK_track_js { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-11-17" reference = "https://www.stepsecurity.io/blog/optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer" 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" status = "experimental" strings: $host = "1688360.cc" ascii nocase $ios = "/JIUJIU888/weifile.html" ascii $p1 = "/card.php" ascii $p2 = "/hit.php" ascii $p3 = "html2canvas.min.js" ascii $g1 = "_qxc" ascii $g2 = "_shot" ascii condition: uint16(0) != 0x5a4d and filesize < 500KB and ($ios or ($host and 1 of ($p*)) or (all of ($g*) and 2 of ($p*))) } // Threat Brief 2026-11-15 · Backdoored extension.js of the 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-11-15 rule TB_20261115_Cursor_ClaudeCode_extension_js { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-11-15" reference = "https://cursor.com/blog/claude-code-extension-security-notice" description = "Backdoored extension.js of the trojanised Anthropic.claude-code 2.1.312 and 2.1.313 extension (Cursor marketplace, 29 October 2026)" status = "experimental" strings: $key = "svc-telemetry" ascii $ip = "134.209.82.225" ascii $tun = ":0:localhost:22" ascii condition: filesize < 15MB and $key and ($ip or $tun) } // Threat Brief 2026-11-10 · SleepyDuck loader from bee-js 13.3.0 and Swarm Desktop 0.56.2 // 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-11-10 rule TB_20261110_beejs_SleepyDuck_loader { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-11-10" reference = "https://socket.dev/blog/bee-js-compromise" description = "SleepyDuck loader from bee-js 13.3.0 (scripts/generate-version.cjs) and Swarm Desktop 0.56.2 (Electron main process)" status = "experimental" strings: $d = "frameworkmetrics.xyz" ascii wide $p1 = "/v1/analytics" ascii wide $p2 = "/v1/electron" ascii wide $p3 = "/v1/swarm/report" ascii wide $h = "X-Ethersphere" ascii wide nocase condition: filesize < 200MB and $d and 1 of ($p*, $h) } // Threat Brief 2026-11-09 · testmetest worm index.js and sync.py // 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-11-09 import "hash" rule TB_20261109_strutil_core_testmetest { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-11-09" reference = "https://socket.dev/blog/shai-hulud-descendant-malicious-ruby-gem" description = "index.js payload and sync.py backdoor of the testmetest worm (strutil-core 1.0.1 gem): markers and hashes published by Socket" status = "experimental" strings: $m1 = "msync-3f7a" ascii $m2 = "AutoSyncComplete" ascii $m3 = "paleasbest.top" ascii $m4 = "/var/tmp/.fontconfig_state" ascii $m5 = "net-health-checker" ascii $m6 = "workspace-tools" ascii $m7 = "bun-v1.2.18" ascii condition: uint16(0) != 0x5a4d and uint32(0) != 0x464c457f and filesize < 8MB and ( 2 of ($m1, $m2, $m3, $m4) or ($m3 and 2 of ($m5, $m6, $m7)) or hash.sha256(0, filesize) == "c7ef186aa59b67d9b198a14f6dc8aaee6dd86510ac7c37d28f65d310cd846411" or hash.sha256(0, filesize) == "306c1deec402e8b4a6478e7f0fe02194bcd224d37d8fc6ba61ad1951e8abd7a9" or hash.sha256(0, filesize) == "c5264f3b9cf2f95c83a70b7dd7430aab8abc262b853dbbcd5386c3a8a9c74769" ) } // Threat Brief 2026-11-03 · extension.js of the weaponised Claude Code loader // 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-11-03 rule TB_20261103_ClaudeCode_Cursor_extension_loader { meta: author = "Threat Brief (tlpclear.fr)" date = "2026-11-03" reference = "https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor" description = "Weaponised extension.js from anthropic.claude-code extension (Cursor marketplace): svc-telemetry key, authorized_keys, and reverse SSH tunnel" status = "experimental" strings: $k1 = "svc-telemetry" ascii $k2 = "authorized_keys" ascii $k3 = "134.209.82.225" ascii $k4 = "localhost:22" ascii $k5 = "child_process" ascii condition: filesize < 30MB and $k5 and 3 of ($k1, $k2, $k3, $k4) }