JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48
  • Score
    100M100P100Q57095F
  • License MIT

axios 供应链投毒事件应急审计工具 (2026-03-31)

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.json files 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-js malicious package.
  • Backup & Restore: Supports backing up current axios versions before attempting fixes.
  • Automatic Remediation: Provides a --fix option to update axios to safe versions (1.14.0 or 0.30.3).

Usage

# 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 fix

Using 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:

  1. Isolate the infected machine.
  2. Rotate all sensitive credentials (npm tokens, AWS keys, etc.).
  3. Rebuild your systems from a known good state.
  4. Lock axios to a safe version (1.14.0 or 0.30.3) in package.json.

License

MIT