Package Exports
- axios-emergency-scanner
- axios-emergency-scanner/bin/axios-scan.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (axios-emergency-scanner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
axios Supply Chain Poisoning Emergency Scanner
An emergency security tool to scan systems and projects for axios supply chain poisoning (versions 1.14.1 and 0.30.4).
Background
On March 31, 2026, a maintainer account of the popular axios library was compromised. Malicious versions 1.14.1 and 0.30.4 were published to npm, injecting a Remote Access Trojan (RAT) via a postinstall script and the malicious package plain-crypto-js.
Features
- Multi-platform support: Includes scripts for Windows (PowerShell), Linux/macOS (Bash), and a unified Node.js CLI.
- Global Package Scan: Checks globally installed npm packages for compromised axios versions.
- Project-level Scan: Recursively finds all
package.jsonfiles in your workspace and audits dependencies. - RAT Detection: Scans for known malicious artifacts:
/tmp/ld.py(Linux)/Library/Caches/com.apple.act.mond(macOS)$PROGRAMDATA\wt.exe(Windows)
- NPM Cache Audit: Checks npm cache for the
plain-crypto-jsmalicious package. - Backup & Restore: Supports backing up current axios versions before attempting fixes.
- Automatic Remediation: Provides a
--fixoption to update axios to safe versions (1.14.0 or 0.30.3).
Usage
Quick Installation (Recommended)
If you have Node.js installed, you can install the tool globally via npm for easy access:
# Install globally
npm install -g axios-emergency-scanner
# Run scan (current directory)
axios-scan
# Run scan with automatic fix
axios-scan . --fixRun from Source (For Developers)
# Install dependencies
npm install
# Run scanner
npm run scan
# Run scanner on a specific directory
node bin/axios-scan.js /path/to/projects
# Automatic fix
npm run fixUsing Bash (Linux/macOS)
./scripts/axios-security-scan.sh [project_path]Using PowerShell (Windows)
.\scripts\axios-security-scan.ps1 [project_path]Remediation Steps
If the scanner finds issues:
- Isolate the infected machine.
- Rotate all sensitive credentials (npm tokens, AWS keys, etc.).
- Rebuild your systems from a known good state.
- Lock axios to a safe version (
1.14.0or0.30.3) inpackage.json.
License
MIT