<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Anthropic APIs - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/anthropic-apis/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 21 Jul 2026 17:23:33 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/anthropic-apis/feed.xml" rel="self" type="application/rss+xml"/><item><title>Denying the Worm: Detecting SANDWORM_MODE and AI Toolchain Supply Chain Attacks</title><link>https://feed.craftedsignal.io/briefs/2026-07-sandworm-mode-ai-supply-chain/</link><pubDate>Tue, 21 Jul 2026 17:23:33 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-sandworm-mode-ai-supply-chain/</guid><description>The SANDWORM_MODE campaign is a multi-stage npm supply chain worm that targets AI-augmented development workflows by exploiting runtime behaviors of AI coding assistants and CI/CD pipelines, leading to credential theft, supply chain poisoning, and persistence through obfuscated loaders, credential harvesting, and malicious Git hooks.</description><content:encoded><![CDATA[<p>CrowdStrike has identified a sophisticated multi-stage npm supply chain worm, internally tracked as SANDWORM_MODE, which has affected 19 malicious packages distributed across two unique publisher aliases. This campaign, active since at least February 2026, represents a new class of attacks targeting AI-augmented development workflows. Unlike typical supply chain attacks that focus on build outputs or static backdoors, SANDWORM_MODE is designed to exploit the runtime behaviors of AI coding assistants, CI automation, and large language model (LLM) toolchains. Its primary evasion technique involves multi-layer obfuscation and delayed payload unpacking, bypassing static analysis. The worm conducts reconnaissance to steal sensitive credentials, including npm tokens, environment variables (KEY, SECRET, TOKEN, PASSWORD), and cryptocurrency wallet keys, exfiltrating them to attacker-controlled Cloudflare Workers. It achieves persistence and propagates by injecting malicious code into new npm packages, modifying GitHub repositories via API or SSH, and establishing malicious Git hooks in developer environments, posing a significant threat to software development integrity.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The initial payload is delivered via a malicious npm package and employs multi-layer obfuscation (Base64, zlib, XOR) and indirect JavaScript execution methods like <code>eval()</code> or <code>Module._compile()</code> to unpack the payload at runtime, evading static analysis.</li>
<li>Upon activation, the loader fingerprints the runtime environment to determine if it's a developer workstation or a CI runner; CI environments trigger the next stage immediately, bypassing a time-delay gate.</li>
<li>The worm performs initial reconnaissance, extracting sensitive credentials such as <code>.npmrc</code> tokens, environment variables matching patterns like KEY, SECRET, TOKEN, or PASSWORD, and cryptocurrency wallet keys.</li>
<li>Harvested cryptocurrency keys are immediately exfiltrated via an HTTP POST request to an attacker-controlled Cloudflare Worker endpoint.</li>
<li>A time-delay gate (48-96 hours) is initiated for developer workstations before the main payload decrypts; in CI environments, decryption occurs instantly.</li>
<li>The full Stage 2 payload is decrypted using AES-256-GCM, unpacked into <code>/dev/shm</code>, executed via <code>require()</code>, and then immediately unlinked to remove on-disk forensic artifacts.</li>
<li>The worm propagates by injecting the Stage 0 loader into new npm packages published under compromised accounts, by using stolen GitHub API tokens to inject carrier dependencies and <code>pull_request_target</code> workflows, or via SSH to clone and push code changes.</li>
<li>Persistence is established on developer systems by writing malicious <code>pre-commit</code> and <code>pre-push</code> hooks to <code>~/.git-templates/hooks/</code> and configuring <code>git config --global init.templateDir</code> to point to this directory, ensuring new repositories inherit the hooks.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The SANDWORM_MODE campaign critically compromises AI-augmented software development lifecycles by infecting widely used package registries and source control platforms. Successful attacks lead to the theft of sensitive credentials such as npm tokens, GitHub API keys, and cryptocurrency wallets, which can be used for further supply chain attacks or financial gain. Organizations face significant risks including the distribution of poisoned software dependencies to downstream consumers, unauthorized code modifications in source repositories, and persistent compromise of developer workstations and CI/CD pipelines. The stealthy nature of the attack, particularly its evasion of static analysis and ephemeral execution, makes detection challenging and increases the potential for widespread and long-lasting damage across the software supply chain.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rules to your SIEM and tune for your environment to detect suspicious <code>git</code> and <code>npm</code> activities.</li>
<li>Monitor <code>process_creation</code> logs for suspicious modifications to <code>git config --global init.templateDir</code> as described in <code>Detect Git Global Template Directory Modification for Persistence</code>.</li>
<li>Enable <code>file_event</code> logging for creation/modification events in <code>~/.git-templates/hooks/</code> directories to activate the <code>Detect Suspicious Git Hook Creation</code> rule.</li>
<li>Monitor <code>process_creation</code> logs for <code>npm publish</code> commands originating from unexpected users or processes, as targeted by <code>Detect Suspicious npm Publish Activity</code>.</li>
<li>Implement strong credential management and regularly rotate API tokens and <code>.npmrc</code> credentials, especially in CI/CD environments.</li>
<li>Utilize security scanning tools capable of dynamic analysis and runtime monitoring to detect highly obfuscated and time-delayed payloads that evade static analysis.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>supply-chain-attack</category><category>npm</category><category>git</category><category>ai-toolchain</category><category>development-workflow</category><category>code-injection</category><category>credential-theft</category><category>persistence</category><category>evasion</category></item></channel></rss>