Fireship · @fireship
Millions of JS devs just got penetrated by a RAT…
Uploaded March 31, 2026 · Length 4:59
Summary
JavaScript developers affected by a sophisticated npm hack that installs a remote access Trojan (RAT) via Axios library, compromising developer machines and CI/CD servers.
- npm hack
- axios vulnerability
- remote access trojan
- javascript security
- nodejs security
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
If you're a JavaScript developer, I have
- 0:02
some bad news. But put down your artisal
- 0:04
soy milk latte and find a safe space to
- 0:06
watch this video because it will almost
- 0:08
certainly make you cry. I can hardly
- 0:09
keep it together myself because
- 0:11
yesterday a precisiong guided remote
- 0:13
access Trojan or RAT was discovered in
- 0:16
Axios, a library with over 100 million
- 0:18
weekly downloads on npm. For over a
- 0:21
decade, countless developers have turned
- 0:22
to Axios to improve the developer
- 0:24
experience when making HTTP requests in
- 0:27
Node.js in the browser. But now that
- 0:29
improved developer experience just
- 0:31
turned into non-consentual backdoor
- 0:33
penetration by a magnumsized Trojan. The
- 0:35
two different malicious versions of
- 0:37
Axios were published to the MPM registry
- 0:40
that contained a highly sophisticated
- 0:42
supply chain attack that compromises
- 0:44
developer machines and CI/CD servers. If
- 0:46
you use Axios and are running either of
- 0:48
these versions, the quick fix is to go
- 0:50
into your garage, find a sledgehammer,
- 0:52
destroy your machine, fake your own
- 0:54
death, and then move to a remote village
- 0:55
in the Siberian tundra. And I'm not
- 0:57
exaggerating. If your system is
- 0:59
compromised, the rat could already have
- 1:01
access to your AWS credentials, your
- 1:03
OpenAI API keys, and everything else in
- 1:05
your file. It's a bad one. And in
- 1:08
today's video, we'll break down one of
- 1:10
the most sophisticated npm hacks the
- 1:12
world has ever seen. It is March 31st,
- 1:14
2026, and you're watching the code
- 1:16
report. Over 10 years ago, Axios became
- 1:18
extremely popular after it made HTTP
- 1:21
requests promise-based instead of
- 1:23
callback based. But now today, every
- 1:25
JavaScript runtime supports fetch
- 1:27
natively, which in theory should have
- 1:28
made Axios obsolete. Yet many developers
- 1:31
still prefer to use this thirdparty
- 1:32
library over the native web platform.
- 1:34
Unfortunately though, optimizing for DX
- 1:37
with a third party library just went
- 1:38
horribly wrong. And the scariest thing
- 1:40
is that Axios itself contains zero lines
- 1:43
of bad source code. Instead of just
- 1:45
hard- coding a crypto miner into the
- 1:46
package like a noob, the attacker
- 1:48
slipped a rogue dependency into the
- 1:50
release. It triggered a post install
- 1:52
script that pulled down a remote access
- 1:53
Trojan from a command and control server
- 1:55
that then wiped its own footprints so
- 1:57
everything looked clean after the
- 1:58
install. Before we go into details


