Millions of JS Devs Just Got Penetrated by a RAT…

Fireship
FireshipMar 31, 2026

Why It Matters

A compromised Axios library can turn developer workstations into botnet nodes, exposing critical cloud credentials and forcing organizations to overhaul their supply‑chain security practices.

Key Takeaways

  • Malicious Axios versions published to npm contain hidden RAT
  • Post‑install script pulls remote payload and steals AWS credentials
  • Attack leveraged compromised maintainer account and fake ProtonMail email
  • Detection requires checking for plain‑crypto‑js dependency in node_modules
  • Immediate key rotation and security audit essential after potential infection

Summary

The video reports a supply‑chain breach affecting the popular JavaScript HTTP client Axios, where two malicious versions were uploaded to the npm registry, embedding a precision‑guided remote access Trojan (RAT).

The attack inserts a rogue dependency called plain‑crypto‑js that runs a post‑install script, contacts a command‑and‑control server, downloads a second‑stage payload, and installs a RAT capable of exfiltrating AWS keys, OpenAI tokens and other secrets. The payload self‑erases, removing traces and leaving npm audit clean.

The presenter warns developers to inspect package‑json for the compromised Axios versions and to look for plain‑crypto‑js in node_modules. He notes the maintainer’s npm account was hijacked and the malicious releases were published under a ProtonMail address, highlighting the social‑engineering vector.

The incident underscores the urgency of strengthening software‑supply‑chain defenses, rotating compromised credentials, and considering native fetch APIs to reduce third‑party risk. Enterprises must adopt automated provenance tools and enforce strict token management to prevent similar breaches.

Original Description

Mux is the best video API for developers. Get $50 in free credits - https://mux.com/fireship
Yesterday, a precision-guided remote access trojan was discovered in Axios, a JavaScript library with over 100 million downloads on npm. But this wasn't your average RAT - let's take a look at how this highly sophisticated attack was pulled off and what to do if you're compromised.
#coding #programming #hack
ℹ️ More Info:
🔖 Topics Covered
- What is Axios
- Axios RAT attack
- What to do if you're compromised
Want more Fireship?
🗞️ Newsletter: https://bytes.dev
🧠 Courses: https://fireship.dev

Comments

Want to join the conversation?

Loading comments...