The popular Axios npm package was compromised in a supply chain attack on March 31, 2026. Malicious versions (axios@1.14.1 and axios@0.30.4) were published via a hijacked maintainer account for roughly 3 hours, silently bundling a malicious dependency (plain-crypto-js@4.2.1) that contained a postinstall script acting as a cross-platform remote access trojan (RAT). The RAT contacted a C2 server to deploy payloads on macOS, Windows, and Linux. The attack was pre-staged a day earlier with a decoy package to appear legitimate. Recommendations include reverting to safe versions (axios@1.14.0 or axios@0.30.3), rotating all credentials used in affected environments, clearing CI/CD caches and lockfiles, enforcing a 72-hour quarantine on new npm package versions, and using the --ignore-scripts flag in build pipelines.
Sort: