Axios npm Supply Chain Attack: Summary & Indicators of Compromise

On March 31, 2026, malicious versions of axios were published to npm, deploying a cross-platform Remote Access Trojan. Here is what happened, how to detect it, and what to do about it.

What happened

Guidance reviewed: October 2, 2026. The incident summary and timeline describe March 31, 2026. Version advice below distinguishes the original response from current maintenance. The axios maintainer’s postmortem confirms the affected versions and the C2 address 142.11.206.73 on port 8000.

On March 31, 2026, an attacker published the malicious packages through the compromised npm account of axios lead maintainer Jason Saayman. The registered email was changed to ifstap@proton.me and the compromised account was used to publish two malicious versions: axios@1.14.1 (tagged latest) and axios@0.30.4 (tagged legacy).

Both versions introduced a hidden dependency on plain-crypto-js@4.2.1, a package published from a separate attacker account (nrwise@proton.me). This package contained a postinstall hook that deployed a cross-platform Remote Access Trojan capable of arbitrary command execution on Windows, Linux, and macOS.

The maintainer’s postmortem attributes the publication to compromised account credentials and identifies trusted publishing through OIDC as a remediation measure. The exposure window lasted approximately three hours (00:21 to 03:15 UTC) before npm intervened and unpublished both versions.

At the time of the incident, axios@1.14.0 was the last clean 1.x release identified by the maintainer. This historical observation is not a current security recommendation for that version.

Need help checking if your infrastructure is affected? Our team can audit your environments, scan for IOCs, and harden your CI/CD pipeline. See our Managed IT Services or IT Outsourcing for ongoing protection.

Timeline

Time (UTC) Event
Mar 27, 19:01 axios@1.14.0 published before the incident
Mar 30, 05:57 plain-crypto-js@4.2.0 published (clean decoy)
Mar 30, 23:59 plain-crypto-js@4.2.1 published with malicious postinstall hook
Mar 31, 00:21 axios@1.14.1 published from compromised account
Mar 31, 01:00 axios@0.30.4 published from compromised account
Mar 31, 03:15 npm unpublished both malicious versions

Indicators of compromise

Malicious packages

Package Version
axios 1.14.1
axios 0.30.4
plain-crypto-js 4.2.1

C2 infrastructure

Indicator Type
sfrclak.com:8000 C2 domain
142.11.206.73 C2 IP address
6202033 Campaign ID

Attacker email accounts

Email Usage
ifstap@proton.me Changed on compromised axios maintainer account
nrwise@proton.me plain-crypto-js publisher

Stage-2 payload artifacts

Windows:

  • %PROGRAMDATA%\wt.exe (disguised PowerShell copy)
  • %TEMP%\6202033.vbs (VBScript loader)
  • %TEMP%\6202033.ps1 (PowerShell payload)

Linux:

  • /tmp/ld.py (Python RAT script)

macOS:

  • /Library/Caches/com.apple.act.mond (657 KB Mach-O binary, x86_64)

Technical source: analysis and indicators published by Datadog Security Labs.

Detection

1. Check your lockfiles

Linux/macOS (Bash):

grep -n -A 6 -B 1 -E "axios|plain-crypto-js" package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null

Windows (PowerShell):

Select-String -Pattern "axios|plain-crypto-js" -Path package-lock.json,yarn.lock,pnpm-lock.yaml -Context 1,6 -ErrorAction SilentlyContinue

This search shows relevant entries and surrounding lines; confirm the resolved version rather than only the requested version range. npm, Yarn, and pnpm formats differ, and names and versions may be on separate lines. Look for exactly axios 1.14.1, axios 0.30.4, or plain-crypto-js 4.2.1. No match does not prove a system was unaffected.

2. Search for the malicious dependency

Linux/macOS (Bash):

find node_modules -type d -name "plain-crypto-js" 2>/dev/null
npm ls --all axios plain-crypto-js

Windows (PowerShell):

Get-ChildItem -Path node_modules -Recurse -Directory -Filter "plain-crypto-js" -ErrorAction SilentlyContinue
npm ls --all axios plain-crypto-js

The npm ls command checks the installed tree in an npm project. For pnpm or Yarn projects, also review the lockfile and that manager’s inventory; installations without node_modules are not covered by the filesystem search.

3. Scan multiple projects at once

Linux/macOS (Bash):

find /path/to/projects \( -name "package-lock.json" -o -name "yarn.lock" -o -name "pnpm-lock.yaml" \) -exec grep -lE "axios|plain-crypto-js" {} \;

Windows (PowerShell):

Get-ChildItem -Path C:\path\to\projects -Recurse -Depth 5 -Include package-lock.json,yarn.lock,pnpm-lock.yaml | Select-String -Pattern "axios|plain-crypto-js" -List | Select-Object Path

The list identifies projects to review; it does not confirm compromise. Inspect resolved versions in each file as in step 1.

4. Check for filesystem artifacts

Windows (PowerShell):

Test-Path "$env:ProgramData\wt.exe"
Test-Path "$env:TEMP\6202033.vbs"
Test-Path "$env:TEMP\6202033.ps1"

Linux:

ls -la /tmp/ld.py 2>/dev/null

macOS:

ls -la /Library/Caches/com.apple.act.mond 2>/dev/null

5. Check network connections

Windows (PowerShell):

Get-DnsClientCache | Where-Object Entry -match "sfrclak"
Get-NetTCPConnection -RemoteAddress 142.11.206.73 -RemotePort 8000 -ErrorAction SilentlyContinue

Linux:

ss -tnp | grep -F "142.11.206.73:8000"
grep "sfrclak" /var/log/syslog /var/log/dns*

macOS:

lsof -nP -iTCP@142.11.206.73:8000
log show --predicate 'process == "mDNSResponder"' --last 24h | grep sfrclak

Connection commands show only current state; DNS caches and logs cover only retained data. Log paths and detail vary by system. An empty result does not rule out earlier compromise; also review centrally retained DNS, firewall, endpoint, and CI logs.

Remediation

Immediate steps

  1. Verify exposure: look for installations of the affected versions through npm, pnpm, Yarn, or CI pipelines. Check the March 31, 2026 00:21–03:15 UTC window and later installations from caches or private registries.
  2. Search for IOCs: check filesystem artifacts and DNS/firewall logs for connections to sfrclak.com or 142.11.206.73
  3. Check private registries: inspect Verdaccio, Artifactory, or GitHub Packages mirrors for cached malicious versions

If IOCs are found

Treat the affected system as fully compromised:

  • Isolate affected systems and preserve evidence and logs before cleanup.
  • Revoke sessions and rotate exposed credentials, API keys, tokens, and SSH keys from a clean device.
  • Rebuild Docker images and CI/CD environments from scratch
  • Review access logs for lateral movement

Cleanup

  • After investigating exposure, use a currently supported, patched axios release from a trusted source and verify its provenance and integrity. The incident-time fallback was v1.14.0 for 1.x or v0.30.3 for 0.x; do not treat those historical versions as a permanent security baseline.
  • After preserving evidence, rebuild confirmed affected systems from trusted images. Removing the package does not automatically remove payloads that have already executed.
  • Recreate dependencies and caches only after removing affected versions from manifests, lockfiles, and private registries.

Hardening

  • For reproducible installations in npm projects, use npm ci with a reviewed lockfile. A lockfile does not make a malicious version safe.
  • With an npm version that supports it, npm config set min-release-age 3 applies a 3-day minimum age to new versions. Handle exceptions for urgent security fixes explicitly. npm documentation.
  • For automated publishing, use trusted publishing through OIDC where available. When tokens are required, restrict them to the permissions and packages needed.
  • Apply IP restrictions to token access
  • Enable npm provenance for published packages
  • Implement dependency monitoring (Socket, Snyk, or Dependabot)

Worried about supply chain attacks in your organization?

We help businesses implement dependency monitoring, lockfile policies, and CI/CD hardening to prevent incidents like this.

Necessary cookies are always active.