Fireship · @fireship

Millions of JS devs just got penetrated by a RAT…

Uploaded March 31, 2026 · Length 4:59

Millions of JS devs just got penetrated by a RAT…

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.

  1. 0:00

    If you're a JavaScript developer, I have

  2. 0:02

    some bad news. But put down your artisal

  3. 0:04

    soy milk latte and find a safe space to

  4. 0:06

    watch this video because it will almost

  5. 0:08

    certainly make you cry. I can hardly

  6. 0:09

    keep it together myself because

  7. 0:11

    yesterday a precisiong guided remote

  8. 0:13

    access Trojan or RAT was discovered in

  9. 0:16

    Axios, a library with over 100 million

  10. 0:18

    weekly downloads on npm. For over a

  11. 0:21

    decade, countless developers have turned

  12. 0:22

    to Axios to improve the developer

  13. 0:24

    experience when making HTTP requests in

  14. 0:27

    Node.js in the browser. But now that

  15. 0:29

    improved developer experience just

  16. 0:31

    turned into non-consentual backdoor

  17. 0:33

    penetration by a magnumsized Trojan. The

  18. 0:35

    two different malicious versions of

  19. 0:37

    Axios were published to the MPM registry

  20. 0:40

    that contained a highly sophisticated

  21. 0:42

    supply chain attack that compromises

  22. 0:44

    developer machines and CI/CD servers. If

  23. 0:46

    you use Axios and are running either of

  24. 0:48

    these versions, the quick fix is to go

  25. 0:50

    into your garage, find a sledgehammer,

  26. 0:52

    destroy your machine, fake your own

  27. 0:54

    death, and then move to a remote village

  28. 0:55

    in the Siberian tundra. And I'm not

  29. 0:57

    exaggerating. If your system is

  30. 0:59

    compromised, the rat could already have

  31. 1:01

    access to your AWS credentials, your

  32. 1:03

    OpenAI API keys, and everything else in

  33. 1:05

    your file. It's a bad one. And in

  34. 1:08

    today's video, we'll break down one of

  35. 1:10

    the most sophisticated npm hacks the

  36. 1:12

    world has ever seen. It is March 31st,

  37. 1:14

    2026, and you're watching the code

  38. 1:16

    report. Over 10 years ago, Axios became

  39. 1:18

    extremely popular after it made HTTP

  40. 1:21

    requests promise-based instead of

  41. 1:23

    callback based. But now today, every

  42. 1:25

    JavaScript runtime supports fetch

  43. 1:27

    natively, which in theory should have

  44. 1:28

    made Axios obsolete. Yet many developers

  45. 1:31

    still prefer to use this thirdparty

  46. 1:32

    library over the native web platform.

  47. 1:34

    Unfortunately though, optimizing for DX

  48. 1:37

    with a third party library just went

  49. 1:38

    horribly wrong. And the scariest thing

  50. 1:40

    is that Axios itself contains zero lines

  51. 1:43

    of bad source code. Instead of just

  52. 1:45

    hard- coding a crypto miner into the

  53. 1:46

    package like a noob, the attacker

  54. 1:48

    slipped a rogue dependency into the

  55. 1:50

    release. It triggered a post install

  56. 1:52

    script that pulled down a remote access

  57. 1:53

    Trojan from a command and control server

  58. 1:55

    that then wiped its own footprints so

  59. 1:57

    everything looked clean after the

  60. 1:58

    install. Before we go into details