Security operations

Axios Supply Chain Attack: What Happened, Who Was Hit and What to Check

Two poisoned Axios releases were live on npm for about three hours — long enough to reach developer machines and CI pipelines worldwide. Here is how the attack worked and what to check.

Cysoro Security TeamPublished · 7 min read
SECURITY OPERATIONS Axios Supply Chain Attack One dependency. Three hours. A trojan. npm install axios + plain-crypto-js postinstall: setup.js Versions to avoid axios 1.14.1 / 0.30.4 Safe versions axios 1.14.0 / 0.30.3 CYSORO
Quick answer

On 31 March 2026, attackers who hijacked the npm account of Axios lead maintainer Jason Saayman published malicious versions 1.14.1 and 0.30.4 of Axios, the JavaScript HTTP client with over 100 million weekly downloads. The releases added one dependency, plain-crypto-js, whose postinstall script downloaded a cross-platform remote access trojan. The versions were live about three hours. Anyone who installed them should rotate all exposed secrets and downgrade to 1.14.0 or 0.30.3.

Key takeaways

  • Malicious Axios 1.14.1 and 0.30.4 added one dependency, plain-crypto-js, whose postinstall script installed a remote access trojan.
  • Axios source code was never changed — the attack worked entirely through a dependency added to package.json.
  • Check lockfiles for the bad versions, downgrade to 1.14.0 or 0.30.3, and rotate every secret exposed to an affected machine.

Axios is one of the most-installed JavaScript libraries in the world, with over 100 million weekly downloads. On 31 March 2026, two of its releases were poisoned — not by changing Axios code, but by adding a single dependency that installed a remote access trojan on every machine that ran npm install.

What happened in the Axios supply chain attack?

On 31 March 2026, two new versions of Axios appeared on npm — 1.14.1 and 0.30.4 — and both were malicious. They had been published through the compromised npm account of the project's lead maintainer, Jason Saayman, after a targeted social engineering campaign. The versions were live for about three hours before npm removed them.

Microsoft Threat Intelligence, which analyzed the compromise, attributed the infrastructure and the attack to Sapphire Sleet, a North Korean state actor active since at least March 2020. Google Threat Intelligence linked the activity to UNC1069, a financially motivated North Korea-nexus group active since at least 2018.

The blast radius was enormous because Axios is a dependency of dependencies: it sits inside countless web apps, backends, CLIs and build tools. Any project with a version range such as axios@^1.14.0 that ran a fresh install during the three-hour window pulled the poisoned release automatically.

How did the attack work?

The attack worked through dependency injection, not code tampering. A binary diff between Axios 1.14.0 and 1.14.1 shows exactly one file changed: package.json. All of the library's source files were bit-for-bit identical. The only modification was a single line added to the dependencies list: plain-crypto-js at version 4.2.1.

The Axios attack chain 1 Maintainer account hijacked by social engineering attack fake Teams error fix 2 Poisoned release axios 1.14.1 and 0.30.4 published one line in package.json 3 Postinstall runs plain-crypto-js runs node setup.js on install no user action needed 4 Remote access trojan downloaded per OS: macOS, Windows, Linux The malicious code executed at install time — before anyone imported Axios. Source: Microsoft Threat Intelligence, April 2026.
The Axios attack chain, from hijacked maintainer account to remote access trojan. Illustration by Cysoro.

The injected dependency was the whole attack. plain-crypto-js is never imported by any Axios source file. It exists solely for its postinstall hook, a script npm runs automatically during installation. When a developer or CI job ran npm install, the hook executed node setup.js with no further user interaction.

According to the Axios maintainers' postmortem, the compromise began weeks earlier through a targeted social engineering campaign against Saayman, involving a fake Microsoft Teams error fix. BleepingComputer's report on the postmortem notes the maintainers have wiped affected systems, reset all credentials, and are implementing changes to prevent similar incidents.

What did the malware do once installed?

The setup.js dropper was heavily obfuscated, then connected to a command server at sfrclak.com on port 8000 and downloaded a second-stage remote access trojan matched to the victim's operating system.

  • macOS: an AppleScript downloaded a native binary to /Library/Caches/com.apple.act.mond, masquerading as an Apple system daemon.
  • Windows: a VBScript stager dropped a PowerShell RAT, copied PowerShell to %PROGRAMDATA%\wt.exe to look benign, and added a registry run key so it re-fetched after every reboot.
  • Linux: a Python payload was written to /tmp/ld.py and launched detached in the background.

The RAT collected host and system information, established persistence, and polled the command server for instructions — including running arbitrary commands, enumerating files, and injecting payloads directly into memory. After launching the second stage, the installer deleted its own loader and replaced its own package.json with a clean-looking stub, so a later inspection of node_modules would find nothing suspicious.

Microsoft also warned that the payload included a hook that would keep trying to update Axios, which is why affected users were told to disable auto-updates for the package.

Who was affected?

Anyone who installed Axios during the exposure window is potentially compromised. That includes developer workstations that ran npm install between about 00:21 and 03:15 UTC on 31 March 2026, CI/CD pipelines that built during that window, and production environments deployed from those builds.

The risk is worst for CI jobs, because the trojan ran with whatever secrets the job held: cloud access keys, database passwords, API tokens and deployment credentials. SANS noted that the malicious code was designed to steal sensitive credentials from the system and give the attacker persistent access, and that the two poisoned versions targeted both the current and legacy branches of Axios at once, maximizing exposure.

Axios has over 100 million weekly downloads, and Microsoft counted over 70 million in its own analysis. Even a three-hour window at that scale means a large number of installs — and the attack fits a wider pattern, documented in Unit 42's threat brief on the widespread impact.

How do I check if I was affected?

Check your lockfiles first — that is the fastest test. Then check your build logs and network traffic.

  1. Search lockfiles for the bad versions: grep -r "[email protected]\|[email protected]\|plain-crypto-js" package-lock.json yarn.lock pnpm-lock.yaml. Any hit means the malicious package was installed.
  2. Check node_modules on developer machines for a plain-crypto-js directory, and for the artifacts above: com.apple.act.mond on macOS, wt.exe on Windows, /tmp/ld.py on Linux.
  3. Review CI logs for npm install runs between 00:21 and 03:15 UTC on 31 March 2026, and for any mention of plain-crypto-js in install output.
  4. Check network logs for outbound connections to sfrclak.com or the IP address 142.11.206.73 on port 8000.
  5. Check for persistence on Windows: a registry run key at HKCU\Software\Microsoft\Windows\CurrentVersion\Run\MicrosoftUpdate.

If you find any indicator, treat the machine as compromised: wipe and rebuild it rather than trying to clean it, because the RAT was designed to hide itself.

What should affected teams do now?

Microsoft's guidance for affected organizations is direct: roll back, pin, clean the cache, and rotate everything.

  • Downgrade immediately to Axios 1.14.0 (or 0.30.3 for legacy users) and delete the node_modules/plain-crypto-js directory.
  • Rotate all secrets and credentials exposed to compromised systems — cloud keys, database passwords, API tokens, CI secrets. Assume anything the build could read is compromised.
  • Pin exact versions in package.json: remove the caret (^) and tilde (~) that allow auto-upgrades, and use an exact version such as "axios": "1.14.0".
  • Flush the local cache with npm cache clean --force and disable or restrict automated dependency bots for critical packages.
  • Ignore install scripts where possible with npm ci --ignore-scripts, or set npm config set ignore-scripts true.
  • Block the command infrastructure: the domain sfrclak.com and IP 142.11.206.73 on port 8000.

After rotating, check whether any password used on the affected systems appears in known breaches with our pwned password checker, and replace any that do.

Assume compromise, not just exposureIf a build installed the poisoned version, the trojan ran with the build's secrets. Rotating the secrets matters more than removing the package.

Axios vs Shai-Hulud vs chalk: three npm attacks, three doors

The Axios attack is best understood alongside the other npm supply chain attacks of 2025–2026, because each one got in through a different door — and each tests a different defense.

IncidentWhenHow the attacker got inWhat ran on victims
chalk / debugSeptember 2025Maintainer phished with a fake 2FA reset emailMalicious versions of 18–20 packages
Shai-Hulud wormSeptember 2025Stolen npm credentials, then self-propagationCredential scanner that republished victims' own packages; 500+ packages hit
Axios31 March 2026Social engineering and a RAT on the lead maintainer's PCPostinstall dropper in an injected dependency; cross-platform RAT

The common thread is that the malicious code executed at install time, before anyone imported anything. That is why install-script controls and dependency monitoring matter more than code review for this class of attack: the poisoned package's own code was untouched.

How do you prevent the next npm supply chain attack?

You cannot stop maintainers from being targeted, but you can make your own builds much harder to poison.

Five defenses against npm supply chain attacks 1 Pin exact versions + lockfilesno caret ranges on critical packages; commit the lockfile 2 Ignore install scriptsnpm ci --ignore-scripts stops postinstall droppers cold 3 Monitor new dependenciesalert when an update adds a dependency that was never there 4 Trusted publishing (OIDC)no long-lived npm tokens; publish only from CI 5 Scope CI secrets tightlya poisoned install should not reach production keys
Defense in depth for JavaScript supply chains. Illustration by Cysoro.

For teams that consume packages: pin exact versions, commit lockfiles, and review dependency diffs on updates — especially any update that adds a brand-new dependency. A new dependency in a patch release is a red flag worth a human look. Consider a short delay before adopting new releases of critical packages: the poisoned Axios versions were gone in about three hours.

For teams that publish packages: use trusted publishing with OIDC so releases can only come from your CI pipeline, and retire long-lived npm tokens. The malicious Axios 1.14.1 was published with a long-lived token from the CLI and bypassed the project's GitHub Actions publishing workflow — the legitimate 1.14.0 had been published through trusted publishing, and the malicious version had no matching GitHub tag, release or commit.

For everyone: scope CI secrets so a single poisoned install cannot reach production credentials, and monitor outbound network traffic from build machines. The Axios dropper's call to its command server was the loudest signal in the whole chain.

For a wider starting point beyond dependency hygiene, our small business cybersecurity checklist covers backups, updates and access controls alongside supply chain basics.

The bottom line

The Axios attack showed that a supply chain compromise does not need to touch a single line of a library's code. One added dependency, one postinstall script, and three hours were enough to reach machines worldwide.

Check your lockfiles for 1.14.1 and 0.30.4 today, pin your versions, and treat install scripts as code you run, not code you review. You can verify the file hashes of anything suspicious with our free hash generator.

Frequently asked questions

What is the Axios supply chain attack?

On 31 March 2026, attackers published malicious versions 1.14.1 and 0.30.4 of the Axios JavaScript library on npm. The versions added a dependency called plain-crypto-js that ran a remote access trojan when installed.

Which Axios versions are malicious?

Axios 1.14.1 and 0.30.4. The safe versions are 1.14.0 and 0.30.3. If your lockfile lists 1.14.1 or 0.30.4, or any reference to plain-crypto-js, the malicious package was installed.

Was the Axios source code changed?

No. The attackers changed only package.json, adding one dependency. All of Axios's own source files were identical to the legitimate release, which is why the compromise was hard to spot by reading code.

How long were the malicious versions live?

About three hours, from roughly 00:21 to 03:15 UTC on 31 March 2026. That was long enough for automated builds and developer installs worldwide to pick them up.

Who was behind the Axios attack?

Microsoft attributed the compromise to Sapphire Sleet, a North Korean state actor. Google Threat Intelligence linked the activity to UNC1069, a financially motivated North Korea-nexus group.

What should I do if I installed the malicious Axios version?

Downgrade to 1.14.0 or 0.30.3, remove plain-crypto-js, rotate every secret and credential exposed to the affected machine or CI job, and check network logs for connections to the attacker's command server.

How can I prevent this kind of attack?

Pin exact dependency versions, use lockfiles, disable install scripts where possible, require trusted publishing for your own packages, and monitor for unexpected new dependencies in updates.

Sources

  1. Microsoft Threat Intelligence — Mitigating the Axios npm supply chain compromise
  2. Unit 42, Palo Alto Networks — Threat Brief: Widespread Impact of the Axios Supply Chain Attack
  3. BleepingComputer — Axios npm hack used fake Teams error fix to hijack maintainer account
  4. SANS Institute — Axios NPM Supply Chain Compromise: Malicious Packages Deliver Remote Access Trojan
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Microsoft Threat Intelligence's analysis, Unit 42's threat brief and the Axios maintainers' postmortem as reported by BleepingComputer.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free