We manage your security to weather the AI storm →

← Resource Hub

Shai-Hulud Worm and Axios: What Reached Crypto Teams?

By Daniel GelfandPublished 6 min read

Part of our guide to Web3 penetration testing

Shai-Hulud Worm and Axios: What Reached Crypto Teams?

Quick answer. The Shai-Hulud worm republished npm packages with stolen credentials, and Trust Wallet suspects the November 2025 wave was linked to its fund-draining extension update. Separately, malicious axios releases could install a remote access trojan; OpenAI confirmed one release ran in a signing workflow.

Watch: Shai-Hulud Worm and Axios: What Reached Crypto Teams? 1:39
Video transcript

An npm alert doesn't tell you what ran, which credentials were reachable, or what users received. Start with the build that actually ran.

The Shai-Hulud worm stole npm publishing credentials and used them to spread to more packages. ENS Labs reported zero downloads of its compromised versions, but still isolated the affected development environment.

In the separate axios attack, a malicious dependency could install a remote access trojan. OpenAI reported that a malicious axios release ran in its signing workflow, but found no unauthorized changes to its published software.

Trust Wallet says a leaked store key let the attacker ship the fund-draining update. It suspects a link to the November 2025 Shai-Hulud wave. The entry point remains unconfirmed.

Check the lockfile from that build against install logs and caches, including one-off tools. Then check which credentials the job could reach, and compare what shipped with the approved build.

If malicious code may have run, isolate the runner and preserve evidence. Check the containment order before revoking or rotating reachable credentials from a clean system. Warn potentially affected users if an unauthorized build was available to them.

Keep publishing credentials and signing keys out of jobs that install dependencies. Then check whether any other account or token can still publish without approval.

Read the full article for the incident checklist, or talk to Guardian about reviewing what your client library ships.

From Alert to Impact

An affected dependency, a compromised runner and an unauthorized release call for different responses.

For preventive npm controls, see our dApp supply chain guide.

How Shai-Hulud Spread

Shai-Hulud was a self-replicating npm worm. In the first wave, malicious postinstall scripts stole credentials and used npm publishing access to poison more packages.[1, 2]

GitHub reported broader credential theft and unauthorized registration of self-hosted runners in the November wave. That made runner inventory part of the investigation.[3]

PostHog says its npm token was stolen before the November worm spread. The attacker used it to publish packages with a malicious preinstall hook, including posthog-js 1.297.3.[4]

ENS Labs reported that a PostHog dependency ran a postinstall script in an external project. Its report does not name the dependency version.[5]

ENS Labs reported zero downloads of its compromised versions after reviewing 44 ENS packages. It still isolated the development environment and rotated publishing credentials.

  • September 14, 2025: GitHub was notified of the worm.
  • September 22, 2025: GitHub reported removing more than 500 compromised packages.
  • November 24, 2025: PostHog recorded malicious releases at 04:11 UTC. ENS Labs discovered its exposure that day.
  • December 24, 2025: An unauthorized Trust Wallet extension went live in the Chrome Web Store.[6]

The Axios npm Backdoor

Both malicious axios releases declared a plain-crypto-js dependency without importing it. Version 4.2.1 of that dependency was malicious.[7, 8]

If its postinstall hook ran and fetched the payload, it could install a remote access trojan on Windows, macOS or Linux.[9]

Google attributed the attack to the North Korea-linked group it then called UNC1069, now MIDNIGHT NEPTUNE. It cited malware and infrastructure overlaps.[10]

Microsoft attributed the compromise to Sapphire Sleet, a North Korean state actor that targets financial organizations, including crypto firms.

Amazon assessed with medium confidence that the same North Korea-linked actor was behind axios and the September 8, 2025 chalk and debug compromise. That attribution does not extend to Shai-Hulud or Trust Wallet.[11, 12]

A macOS job ran malicious axios 1.14.1 and had access to signing and notarization material. OpenAI cited job timing in judging certificate theft unlikely, rotated the certificate as a precaution and found no unauthorized changes to published software.[13]

The reviewed axios disclosures do not establish how many crypto teams were infected or how much crypto was lost.

  • 00:21 UTC: The compromised maintainer account published axios 1.14.1 on March 31, 2026.
  • Around 01:00 UTC: The account published axios 0.30.4.
  • 03:15 UTC: The maintainer records removal of both axios versions. Google puts the end of its observed window at 03:20 UTC.
  • 03:29 UTC: npm removed the malicious dependency. Cached or bundled copies could outlast removal.[14]

Trust Wallet's Unauthorized Update

Trust Wallet says a leaked store API key let an attacker upload extension 2.68 outside its normal release process. It went live after store review.[6]

Trust Wallet says exposed developer GitHub secrets gave the attacker access to its extension source and store API key. The company had not established the exact initial attack vector or sequence.

SlowMist found altered extension code using the legitimate PostHog analytics library. That is not evidence that the wallet shipped the poisoned PostHog package that reached ENS Labs.[5, 15]

SlowMist found that the extension captured recovery phrases at unlock. Trust Wallet identified api.metrics-trustwallet[.]com as an indicator.

Trust Wallet limited exposure to users who opened and logged into 2.68 from December 24 through 11:00 UTC on December 26, 2025.

As of its July 17, 2026 update, Trust Wallet reported 2,520 drained wallet addresses and about $8.5 million in impacted assets.

Trust Wallet associated the impacted assets with 17 addresses it identified as attacker-controlled. The company says those addresses also drained wallets unrelated to this incident.

Trust Wallet told affected users to move funds to a newly created wallet. It said it would never ask for their recovery phrases.

Check Lockfiles and CI

Search each historical lockfile for direct and transitive entries for axios 1.14.1, axios 0.30.4 and plain-crypto-js 4.2.1. Compare matches with install logs and caches.[2, 7]

Save package manager logs, caches and build artifacts before cleanup. Record the install time, runner identity and whether dependency scripts were enabled.

Review one-off tools run through npx or npm exec. They can fetch packages into npm's cache without adding them to your project's lockfile.[14, 16]

Socket observed one CI run where an npx tool pulled in malicious axios indirectly and left outbound network traces.

If you detect malicious plain-crypto-js 4.2.1, follow Google's advice to restore the affected environment to a known-good state.[9]

Compare when the code ran with when the job could read secrets or access signing material.

For suspected execution of tensorlake 0.5.144, follow Tensorlake's containment steps before revoking the affected GitHub token.[17]

Before resuming releases, rebuild affected artifacts on clean infrastructure from reviewed inputs.

Treat the indicators below as leads, not a complete package list. Record what you confirmed and assign an owner to each unresolved check.

  • September worm: Check for @ctrl/tinycolor 4.1.1 or 4.1.2 and unexpected public GitHub repositories named Shai-Hulud.[18]
  • November worm: Look for setup_bun.js, bun_environment.js and unfamiliar self-hosted runner registrations.[3, 4]
  • Axios: Search retained DNS or proxy logs for sfrclak[.]com and connection logs for 142.11.206[.]73 on port 8000.
EvidenceAction
Affected version recordedVerify the install and the script policy in effect.
Execution confirmed or plausible after an affected installIsolate the host, preserve evidence and pause potentially affected releases. Missing telemetry cannot exclude execution.
Publishing or signing access was reachableCheck containment order. Revoke or rotate from a clean system. Review publishing and signing logs.
Unauthorized artifact was available to usersScope versions and exposure window, withdraw the artifact and notify potentially affected users.

Separate Install and Release

Use npm ci with a reviewed lockfile. It freezes dependency resolution but still installs a malicious version if it is already locked.[8, 19]

npm 12 blocks unapproved dependency lifecycle scripts by default. Check the CLI version and effective policy on each runner rather than assuming the default applies.[20]

Put tools used by build jobs in a reviewed dependency tree. Keep registry publishing, store uploads and signing keys out of all jobs that install dependencies.

For npm releases, configure a stage-only trusted publisher. The workflow uses short-lived OpenID Connect credentials and a maintainer approves the staged tarball with two-factor authentication.[21, 22]

Check whether a maintainer account or existing token can still publish directly. Staging a workflow does not by itself close other publishing paths.

For extension releases, opt into Chrome Web Store Verified CRX Uploads. Keep the required signing key apart from the upload account and install jobs.[23]

Tensorlake identified the unauthorized October 8, 2026 npm release of tensorlake 0.5.144 as part of a Mini Shai-Hulud campaign. Valid provenance linked it to the project's own release workflow, but did not prove approval.[17, 24]

Alert when a registry or store version has no matching approved release record.

Guardian's SDK Audit compares the registry package with the repository and reviews install scripts and dependencies. It checks who can publish and how a bad release gets pulled.

Review What Your SDK Ships

Scope a review of the wallet SDK or client library your integrators install.

Frequently Asked Questions

Does ignore-scripts block every npm script?

No. Commands such as npm run build and npm test still run their explicitly requested project script. With ignore-scripts enabled, npm skips the pre- and post-scripts for those commands.[19]

Can a clean runner still ship harmful browser code?

Yes. The malicious chalk 5.6.1 and debug 4.4.2 releases tried to redirect crypto transactions in browsers. The debug maintainer advised rebuilding affected browser bundles.[12, 25]

What did Trust Wallet confirm about reimbursements?

On January 15, 2026, Trust Wallet said it had completed its first batch. Its roughly 95% figure measured affected funds covered by submitted claims, not funds paid. The July disclosure described case-by-case reviews and gave no total paid.[6, 26]

Sources

  1. GitHub: Our plan for a more secure npm supply chain
  2. CISA: Widespread Supply Chain Compromise Impacting npm Ecosystem
  3. GitHub: Strengthening supply chain security: Preparing for the next malware campaign
  4. PostHog: Post-mortem of Shai-Hulud attack on November 24th, 2025
  5. ENS Labs: ENS Labs Quarterly Report: Q4 2025
  6. Trust Wallet: Trust Wallet Browser Extension v2.68 Incident: An Update to Our Community
  7. axios: Post Mortem: axios npm supply chain compromise
  8. Microsoft Threat Intelligence: Mitigating the Axios npm supply chain compromise
  9. Google Threat Intelligence Group: North Korea-Nexus Threat Actor Compromises Widely Used Axios NPM Package in Supply Chain Attack
  10. Google Threat Intelligence Group: Batten Down Your Packages: Mitigation Guidance for Supply Chain Compromise
  11. Amazon Threat Intelligence: Amazon identifies North Korean hacker group behind open-source supply chain attacks
  12. debug maintainers: debug@4.4.2 contains malware after npm account takeover
  13. OpenAI: Our response to the Axios developer tool compromise
  14. Socket: The Hidden Blast Radius of the Axios Compromise
  15. PANews: Crypto Christmas Crash: Over $6 Million Loss, Analysis of the Trust Wallet Extended Wallet Hack
  16. npm: npm exec: Run a command from an npm package
  17. Tensorlake: Malicious tensorlake@0.5.144 published to npm
  18. GitHub Advisory Database: Malware in @ctrl/tinycolor
  19. npm: npm ci: Clean installs from a lockfile
  20. GitHub: npm install-time security and GAT bypass2fa deprecation
  21. npm: Trusted publishing for npm packages
  22. GitHub: Staged publishing and new install-time controls for npm
  23. Chrome for Developers: Update your Chrome Web Store item
  24. npm: Generating provenance statements
  25. GitHub Advisory Database: Malware in chalk
  26. Trust Wallet: Trust Wallet Browser Extension v2.68 reimbursement update
  27. The Hacker News: Trust Wallet Chrome Extension Hack Drains $8.5M via Shai-Hulud Supply Chain Attack
  28. Crowdfund Insider: Trust Wallet Browser Extension Security Breach: Over $6 Million Drained From Users
  29. ZachXBT: Investigations by ZachXBT: Trust Wallet community alert and update
  30. GitHub Advisory Database: Malware in axios