npm Axios Compromise: Check Local Environment for Malicious Package

🚨 Security Alert: Axios npm Supply Chain Compromise If you are a JavaScript/TypeScript developer, stop what you’re doing and check your local environment. On March 30, the popular axios package was briefly compromised. Malicious versions (1.14.1 and 0.30.4) were published to npm, staying live for about 3.5 hours. If you ran npm install or yarn during that window—especially on personal projects without strict script protections—your machine might be at risk. The Risk: The compromised versions installed a malicious package called plain-crypto-js designed to harvest sensitive data like .env files and credentials. How to Protect Yourself: * Check your cache and node_modules: Look for any traces of plain-crypto-js. * Audit your .npmrc: Ensure you have ignore-scripts=true enabled to prevent malicious post-install scripts from executing automatically. * Rotate Secrets: If you find a match, assume your local environment variables have been compromised and rotate your API keys immediately. #CyberSecurity #SoftwareEngineering #Javascript #NodeJS #AppSec #SupplyChainAttack Use Quick scan script

  • text, chat or text message

To view or add a comment, sign in

Explore content categories