Skip to main content
Mallory
Malware

SANDWORM_MODE

Tracked since Feb 23, 2026 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK46Techniques
IOCs10Tracked
Type
Worm
Capabilities
Credential theftExfiltrationPersistenceDefense evasionCrypto theft
Delivery
Cracked software
Platforms
CloudLinuxmacOSWindows

SANDWORM_MODE is a credential-stealing, self-propagating software supply-chain worm discovered by Socket in February 2026. Distributed through at least 19 malicious, typosquatted npm packages, it targets software developers, CI/CD environments, and AI-assisted development workflows. It harvests npm and GitHub tokens, cloud credentials, cryptocurrency keys, and API keys for LLM providers. Stolen npm and GitHub credentials enable further propagation through malicious package publication and repository infection. It resembles Shai-Hulud, but no common authorship or specific threat-actor attribution has been established.

The malware uses staged execution: an initial stage rapidly collects and exfiltrates secrets, while a broader second stage activates after 48–96 hours on developer systems or immediately in CI environments. Additional collection targets include password managers, local databases, and files. Exfiltration mechanisms include HTTP-based transfers, GitHub repositories, and DNS tunneling. It establishes persistence through Git hooks and compromises CI workflows and release automation to support continued credential theft and propagation.

A distinctive component installs rogue Model Context Protocol servers into AI tools including Claude Code, Claude Desktop, Cursor, Continue, and Windsurf. Embedded prompt injections manipulate assistants into reading sensitive local information and passing credentials through tool calls for subsequent exfiltration. Delayed activation, obfuscation, and abuse of legitimate development operations make its activity difficult to distinguish from routine automation.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

46 distinct techniques documented for this family, organized by ATT&CK tactic.

Reconnaissance

1 technique
T1589Gather Victim Identity InformationEvidence1

An active Shai-Hulud-like supply chain worm campaign spreads via typosquatting and AI toolchain poisoning, across at least 19 malicious npm packages... One representative example, suport-color@1.0.1, impersonates supports-color... Other packages in the set follow the same look-alike branding strategy to increase the likelihood of accidental installation.

Resource Development

1 technique
T1583.001DomainsEvidence1

"The campaign, tracked as SANDWORMMODE, uses typosquatted npm packages and poisoned GitHub Actions to infect both developer machines and CI pipelines."

Initial Access

6 techniques
T1078Valid AccountsEvidence5

Sandworm_Mode also compromises AI assistants such as Cursor and Claude Code via a rogue MCP server that uses prompt injection to trick them into silently reading and passing credentials to the attacker.

T1133External Remote ServicesEvidence1

Through GitHub API tokens, it enumerates accessible repositories, injects a carrier dependency, commits or opens a pull request...

T1195Supply Chain CompromiseEvidence6

One early manifestation of the emerging threat is Sandworm_Mode, a self-propagating worm that spreads through malicious npm packages.

T1195.001Compromise Software Dependencies and Development ToolsEvidence6

The Sandworm_Mode campaign spread through 19 malicious npm packages and exploited the normal runtime behaviors of AI coding assistants, CI automation, and LLM toolchains that organizations are increasingly deploying in their development pipelines.

T1195.002Compromise Software Supply ChainEvidence2

"weaponized GitHub Action that harvests CI secrets"; "plants CI backdoors by injecting pull_request_target workflows that serialize secrets"; "injects workflows referencing this Action"

T1195.003Compromise Hardware Supply ChainEvidence1

"...poisoned GitHub Actions to infect both developer machines and CI pipelines." / "weaponized GitHub Action called ci-quality/code-quality-check... actually steals CI secrets and continues the propagation process."

Execution

3 techniques
T1053Scheduled Task/JobEvidence2

...persists via git hooks that survive into future repositories through a global init.templateDir setting... It hardens persistence by setting git config --global init.templateDir so new repositories inherit malicious hooks automatically.

T1059Command and Scripting InterpreterEvidence3

Sandworm_Mode executed commands, accessed files, modified configurations, interacted with repositories, and called APIs in ways that closely resembled the normal behavior of AI assistants, CI/CD systems, and other development tools.

T1574Hijack Execution FlowEvidence1

injects a pull_request_target workflow that executes in the context of the base repository, bypassing fork-based isolation.

Persistence

8 techniques
T1053Scheduled Task/JobEvidence2

...persists via git hooks that survive into future repositories through a global init.templateDir setting... It hardens persistence by setting git config --global init.templateDir so new repositories inherit malicious hooks automatically.

T1078Valid AccountsEvidence5

Sandworm_Mode also compromises AI assistants such as Cursor and Claude Code via a rogue MCP server that uses prompt injection to trick them into silently reading and passing credentials to the attacker.

T1098Account ManipulationEvidence1

"...self-propagates by leveraging harvested npm and GitHub tokens to publish the malicious package through victims’ npm accounts or inject itself into the victim’s GitHub repos."

T1133External Remote ServicesEvidence1

Through GitHub API tokens, it enumerates accessible repositories, injects a carrier dependency, commits or opens a pull request...

T1546Event Triggered ExecutionEvidence2

The worm establishes persistence by writing malicious pre-commit and pre-push hooks to ~/.git-templates/hooks/ , then sets git config --global init.templateDir to point at this directory.

T1546.008Accessibility FeaturesEvidence2

"persists via git hooks that survive into future repositories through a global init.templateDir setting"; "git config --global init.templateDir so new repositories inherit malicious hooks automatically"

T1546.009AppCert DLLsEvidence1

"Persistence... Uses git hooks so new repos inherit infection"

T1556Modify Authentication ProcessEvidence2

It then injects configuration entries into Claude Desktop, Cursor, VSCode, and Windsurf configuration files, registering the freshly deployed rogue server as a trusted tool provider.

Privilege Escalation

6 techniques
T1053Scheduled Task/JobEvidence2

...persists via git hooks that survive into future repositories through a global init.templateDir setting... It hardens persistence by setting git config --global init.templateDir so new repositories inherit malicious hooks automatically.

T1078Valid AccountsEvidence5

Sandworm_Mode also compromises AI assistants such as Cursor and Claude Code via a rogue MCP server that uses prompt injection to trick them into silently reading and passing credentials to the attacker.

T1098Account ManipulationEvidence1

"...self-propagates by leveraging harvested npm and GitHub tokens to publish the malicious package through victims’ npm accounts or inject itself into the victim’s GitHub repos."

T1546Event Triggered ExecutionEvidence2

The worm establishes persistence by writing malicious pre-commit and pre-push hooks to ~/.git-templates/hooks/ , then sets git config --global init.templateDir to point at this directory.

T1546.008Accessibility FeaturesEvidence2

"persists via git hooks that survive into future repositories through a global init.templateDir setting"; "git config --global init.templateDir so new repositories inherit malicious hooks automatically"

T1546.009AppCert DLLsEvidence1

"Persistence... Uses git hooks so new repos inherit infection"

Stealth

8 techniques
T1027Obfuscated Files or InformationEvidence4

The initial payload employs multi-layer encoding via Base64 decode, zlib inflate, XOR decryption, and indirect eval() or Module._compile() calls, which are triggered on package import.

T1036MasqueradingEvidence1

Another significant component of the malware is an "McpInject" module that specifically targets AI coding assistants by deploying a malicious model context protocol (MCP) server and injecting it into their tool configurations. The MCP server masquerades as a legitimate tool provider...

T1070Indicator RemovalEvidence1

The malware covers its tracks further ... by automatically destroying compromised environments if it can’t spread or accomplish its objectives.

T1070.004File DeletionEvidence1

After the gate clears, AES-256-GCM decryption unpacks the full payload into /dev/shm, executes it via require(), then immediately unlinks the file.

T1078Valid AccountsEvidence5

Sandworm_Mode also compromises AI assistants such as Cursor and Claude Code via a rogue MCP server that uses prompt injection to trick them into silently reading and passing credentials to the attacker.

T1497.003Time Based ChecksEvidence4

Sandworm_Mode features a 48- to 96-hour delay between when a malicious package is installed and when its full payload activates.

T1564.001Hidden Files and DirectoriesEvidence1

Other variants... write the decoded script to a random hidden temp file, require() it, then immediately unlink() it... Stage 1 writes decrypted Stage 2 to a transient .node_<hex>.js file under /dev/shm... require()s it, and deletes it.

T1574Hijack Execution FlowEvidence1

injects a pull_request_target workflow that executes in the context of the base repository, bypassing fork-based isolation.

Defense Impairment

1 technique
T1556Modify Authentication ProcessEvidence2

It then injects configuration entries into Claude Desktop, Cursor, VSCode, and Windsurf configuration files, registering the freshly deployed rogue server as a trusted tool provider.

Credential Access

8 techniques
T1528Steal Application Access TokenEvidence2

This includes AI assistants, cloud providers, API keys for nine major LLM providers, CI/CD pipelines and automated systems that build, test and publish code.

T1552Unsecured CredentialsEvidence4

Independent of this action, the worm harvests API keys for nine LLM providers ... from environment variables and .env files.

T1552.001Credentials In FilesEvidence1

"Scans .npmrc files, environment variables, configuration files..."

T1552.002Credentials in RegistryEvidence1

"It immediately steals sensitive data, including npm and GitHub tokens, environment variables..."

T1552.004Private KeysEvidence1

"It abuses the victim’s SSH agent to clone repositories... and push changes under the victim’s identity."

T1555Credentials from Password StoresEvidence4

Extraction of .npmrc tokens, environment variables matching distinct patterns (KEY, SECRET, TOKEN, or PASSWORD), and cryptocurrency wallet keys... the worm targets password manager CLIs (bw, op, lpass).

T1556Modify Authentication ProcessEvidence2

It then injects configuration entries into Claude Desktop, Cursor, VSCode, and Windsurf configuration files, registering the freshly deployed rogue server as a trusted tool provider.

T1649Steal or Forge Authentication CertificatesEvidence1

The MCP server masquerades as a legitimate tool provider and registers three seemingly-harmless tools, each of which embeds a prompt injection to read the contents of ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.aws/credentials, ~/.npmrc, and .env files.

Discovery

4 techniques
T1082System Information DiscoveryEvidence2

Fingerprinting the runtime environment to determine if execution is on a developer workstation or CI runner.

T1083File and Directory DiscoveryEvidence1

Sandworm_Mode executed commands, accessed files, modified configurations, interacted with repositories, and called APIs in ways that closely resembled the normal behavior of AI assistants, CI/CD systems, and other development tools.

T1497.003Time Based ChecksEvidence4

Sandworm_Mode features a 48- to 96-hour delay between when a malicious package is installed and when its full payload activates.

T1518Software DiscoveryEvidence1

it enumerates all packages published under that account... it enumerates accessible repositories

Lateral Movement

2 techniques
T1021.004SSHEvidence1

Additional propagation fallback... SSH-assisted fallback when API propagation fails (SSH_AUTH_SOCK, GitHub SSH validation, clone/push)... Vector 3 → SSH agent (fallback)... ssh -T git@github.com...

T1570Lateral Tool TransferEvidence3

the self-propagating worm can spread through code repositories with minimal detection

Collection

2 techniques
T1005Data from Local SystemEvidence1

the worm targets password manager CLIs ( bw , op , lpass ) and local SQLite stores such as Apple Notes, Messages, Joplin, and clipboard history for sensitive content.

T1213.003Code RepositoriesEvidence1

"programmatically injects dependencies and workflows into accessible repositories using GITHUB_TOKEN"; "Enumerate ... repos ... Add carrier package as dependency ... Inject CI workflow ... open PR ... auto-merge"

Command and Control

3 techniques
T1071.004DNSEvidence3

The worm is designed to steal npm, GitHub, cloud, cryptocurrency, and LLM-provider credentials, and exfiltrate them across three channels, including DNS tunneling.

T1568Dynamic ResolutionEvidence1

with DNS tunneling using Base32 encoding and domain generation algorithm fallback as a last-resort channel if both primary paths are blocked.

T1568.002Domain Generation AlgorithmsEvidence1

"with a DGA fallback seeded by \"sw2025\" that generates domains across ten TLDs"; "The DGA uses the same sw2025 seed"

Exfiltration

6 techniques
T1041Exfiltration Over C2 ChannelEvidence1

"Transfers stolen data over HTTPS, with DNS tunneling as a fallback method."

T1048Exfiltration Over Alternative ProtocolEvidence3

The worm is designed to steal npm, GitHub, cloud, cryptocurrency, and LLM-provider credentials, and exfiltrate them across three channels, including DNS tunneling.

T1048.003Exfiltration Over Unencrypted Non-C2 ProtocolEvidence2

"...with DNS tunneling as a fallback method."

T1567Exfiltration Over Web ServiceEvidence4

Harvested cryptocurrency keys are immediately sent in an HTTP POST request to an attacker-controlled Cloudflare Worker endpoint... data is first POST'd over HTTPS to attacker infrastructure, then mirrored to attacker-controlled GitHub private repositories for redundancy

T1567.001Exfiltration to Code RepositoryEvidence1

"adds GitHub API exfiltration with DNS fallback"; "authenticated GitHub API uploads to threat actor-created private repositories"

T1567.002Exfiltration to Cloud StorageEvidence2

"...exfiltrates them via HTTP POST request to a Cloudflare Worker."

Impact

1 technique
T1485Data DestructionEvidence5

by automatically destroying compromised environments if it can’t spread or accomplish its objectives

Indicators of compromise

Observables

10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
cyberscoopNews · Jul 22, 2026Malware is targeting AI tools in software development environments | CyberScoopA self-propagating supply-chain worm targeting AI coding assistants and developers’ automated workflows. It spreads through code repositories with minimal detection, steals credentials, keys and secrets across AI assistants, cloud providers, LLM APIs and CI/CD systems, uses multi-day delays to evade telemetry correlation, and can automatically destroy compromised environments if it cannot spread or achieve its objectives.Read more ↗dark readingNews · Jul 22, 2026Attackers Are Learning to Live Off the AI ToolchainA self-propagating worm spread via malicious npm packages that hijacks CI workflows and poisons AI toolchains. It steals npm, GitHub, cloud, cryptocurrency, and LLM-provider credentials; exfiltrates them via multiple channels including DNS tunneling; propagates by infecting packages and repositories; establishes persistence through Git hooks; and compromises AI assistants such as Cursor and Claude Code via a rogue MCP server using prompt injection.Read more ↗metamask newsNews · Feb 27, 2026MetaMask Crypto Security Report: February 2026Supply-chain worm that harvests credentials and cryptocurrency keys and propagates through stolen npm and GitHub identities. Its payload includes a kill switch that wipes the home directory if it simultaneously loses GitHub access for exfiltration and npm access for propagation or operation.Read more ↗scworldNews · Feb 24, 2026SANDWORM_MODE: Shai-Hulud with an AI twist | SC MediaAn npm supply-chain, self-propagating info-stealing worm distributed via typosquatted npm packages. It runs in two stages: Stage 1 rapidly harvests and exfiltrates npm/GitHub tokens and crypto keys; Stage 2 (48–96 hours later or immediately in CI) expands theft to password managers, local SQLite stores/files, and LLM API keys, and injects a malicious MCP server with prompt-injection tool descriptions to coerce AI coding assistants into collecting and leaking credentials. It propagates by using stolen npm/GitHub tokens to publish malicious packages and inject into GitHub repos, and uses git hook-based persistence.Read more ↗
+2 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching10Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping46Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.