Node.js Axios Hack Alert: Compromised Versions Installed RAT

🚨 ALERT FOR EVERY JAVASCRIPT DEVELOPER 🚨 If you use Axios in your Node.js, React, or any JS project — READ THIS NOW. On March 30–31, 2026, a sophisticated hacker compromised the npm account of Axios's primary maintainer and published two backdoored versions: 🔴 axios@1.14.1 🔴 axios@0.30.4 These versions silently install a Remote Access Trojan (RAT) on your machine — Windows, macOS, and Linux all affected — the moment you run: npm install The attack was caught in ~3 hours, but not before thousands of developers may have installed the malicious code. ━━━━━━━━━━━━━━━━━━━━━━ 🕵️ HOW IT WORKED ━━━━━━━━━━━━━━━━━━━━━━ The attacker hijacked jasonsaayman's npm account (Axios lead maintainer), changed the registered email to an anonymous ProtonMail address, and injected a hidden dependency called plain-crypto-js@4.2.1 — a fake package disguised as the real crypto-js. This package runs a postinstall script that: ✅ Drops a RAT (Remote Access Trojan) ✅ Contacts attacker's C2 server in seconds ✅ Then DELETES itself to hide all traces Google's Threat Intelligence team has attributed this to North Korean hackers (tracked as UNC1069). ━━━━━━━━━━━━━━━━━━━━━━ ✅ WHAT YOU MUST DO RIGHT NOW ━━━━━━━━━━━━━━━━━━━━━━ 1️⃣ Check your package-lock.json or yarn.lock for axios@1.14.1 or axios@0.30.4 2️⃣ Downgrade immediately: npm install axios@1.14.0 3️⃣ Delete the malicious folder: rm -rf node_modules/plain-crypto-js 4️⃣ Reinstall with: npm install --ignore-scripts 5️⃣ Rotate ALL credentials on affected systems — npm tokens, SSH keys, cloud keys, CI/CD secrets 6️⃣ Block C2 domain: sfrclak[.]com at your firewall ━━━━━━━━━━━━━━━━━━━━━━ 💡 LESSON FOR EVERY DEVELOPER ━━━━━━━━━━━━━━━━━━━━━━ Supply chain attacks are the new frontier of hacking. The attacker didn't hack your app — they hacked the tool your app trusts. ✔ Always lock your dependency versions (no floating ^ or ~) ✔ Use --ignore-scripts in CI/CD pipelines as a standard practice ✔ Enable npm provenance checks (--provenance flag) ✔ Monitor your dependencies with tools like Snyk or Socket Security Axios has 100 MILLION weekly downloads. This could be one of the largest npm supply chain attacks in history. Stay safe. Share this with your developer network. 🙏 #JavaScript #NodeJS #WebSecurity #npm #SupplyChainAttack #CyberSecurity #Laravel #ReactJS #OpenSource #InfoSec #DeveloperAlert

  • timeline

To view or add a comment, sign in

Explore content categories