Axios NPM Supply Chain Attack Hits Millions

One npm install, and boom—your cloud keys are en route to a hacker's server. Axios, the unsung hero of JS networking, just got turned into a trojan horse.

Malicious Axios npm package details with RAT indicators on screen

Key Takeaways

  • Compromised Axios npm packages (1.14.1, 0.30.4) install RATs stealing dev secrets via postinstall scripts.
  • Impacts 100M weekly downloads; check IOCs and rotate all credentials immediately.
  • Exposes npm's trust flaws—predict mandatory package signing soon or market share bleed.

Your terminal spits out ‘axios installed successfully.’

But here’s the kicker: that fresh package just phoned home with your API keys.

Researchers at Malwarebytes caught it first—compromised Axios versions lacing npm with a Remote Access Trojan. We’re talking [email protected] and [email protected], sneaky siblings that rack up 100 million weekly downloads. That’s not a leak. That’s a flood.

Axios? It’s the duct tape of JavaScript networking. Promise-based HTTP client for Node.js and browsers. Devs lean on it to fetch data, post forms, without drowning in boilerplate. React apps. Vue dashboards. Electron desktops. Even that SaaS tool your team swore by. If it’s webby and modern, Axios is probably lurking in the dependencies.

Attackers didn’t brute-force it. No, they swiped credentials from a lead maintainer. Published poisoned packs. Slipped in [email protected]—a dependency that does zilch in the code but everything in the shadows.

Postinstall script fires up. Grabs setup.js. Downloads a dropper. Platform-specific RAT for Mac, Windows, Linux. And poof—your build machine’s compromised. Secrets harvested: npm tokens, deploy keys, cloud creds. The kind that unlock repos, backdoors, entire pipelines.

“Any post-infection inspection of node_modules/plain-crypto-js/package.json will show a completely clean manifest. There is no postinstall script, no setup.js file, and no indication that anything malicious was ever installed.”

Clean as a whistle. npm audit? Blind. Manual peek? Nada. The dropper self-destructs. Brilliant, if you’re the bad guy.

Why Does This Axios Hack Feel Like Déjà Vu?

Remember XZ Utils? That near-miss backdoor in Linux land, courtesy of a trusted maintainer over years. Or SolarWinds—supply chain nightmare that hit governments. Axios echoes it all, but faster, meaner. npm’s open-tap model invites this. Anyone with creds can publish. No gates worth a damn.

My hot take? This isn’t bad luck. It’s npm’s original sin. Trust-by-default worked when it was hobbyists swapping code. Now? Enterprise pipelines chug millions of installs weekly. One slip, and it’s game over. Predict this: within a year, we’ll see mandatory signing for top packs—or mass exodus to locked registries.

Users chilling with a web app? Breathe easy. Runtime’s clean. No RAT in your browser tab. But devs? CI/CD runners? Wipe those machines. Rotate everything. Twice.

Is Your Dev Setup Riddled with This Crap?

Check those IOCs. Domain: sfrclak[.]com. IP: 142.11.206.73. Files like /Library/Caches/com.apple.act.mond on Mac, %PROGRAMDATA%\wt on Windows. Checksums:

These versions skip GitHub tags. Hit via loose npm resolves. Pin your deps, folks. Or regret it.

Impact? Massive. 100 million downloads touch web apps, mobile hybrids, SaaS backends. Indirect users—like you firing up a React site—safe at runtime. But the build step? That’s the kill zone.

npm’s response? Silent so far. Axios team yanking the bad versions, sure. But maintainers compromised means deeper rot. Who else has those creds floating?

NPM’s Plumbing is Leaking—Badly

Think Axios is niche? Wrong. It’s in half the JS ecosystem. Frameworks pull it transitive-style. Your Electron app for invoicing? Compromised build serves malware to users? Nightmare fuel.

And the RAT? Interactive access. Not fire-and-forget. Attacker pokes around live, exfils at leisure. Repos forked maliciously. Releases backdoored. Your users? Next.

Humor in the horror: Malwarebytes plugs it—‘We don’t just report on threats—we remove them.’ Cute sales pitch amid the panic. But hey, if it blocks sfrclak[.]com, ship it.

Fixes? Beyond rotation.

Lock deps with package-lock.json. Use yarn/pnpm for stricter resolves. Audit maintainers—yeah, right. Switch to Verdaccio proxies? Or Deno’s URL imports? Dream big.

But let’s call BS on ‘trust no one.’ npm’s model is a relic. Time for sigs, repro tests, maintainer 2FA mandates. Or watch the exodus.

What Happens If You Ignore This?

Short term: stolen keys lead to repo takeovers. Long term? Persistent supply chain rot. Your app’s next release? Laced. Users pwned.

Bold call—npm loses 20% market share by 2025 if these pile up. Devs flock to safer harbors. Bun? Zig? Something not built on sand.


🧬 Related Insights

Frequently Asked Questions

What is the Axios npm supply chain attack?

Hackers used stolen maintainer creds to publish trojaned Axios packages (1.14.1, 0.30.4) that install a RAT during npm install, stealing dev secrets.

How to check if affected by Axios npm hack?

Scan for IOCs: sfrclak[.]com, specific checksums, temp files like /tmp/ld.py. Rotate secrets from any machine that installed those versions.

Does Axios hack affect end-user apps?

No—only build/install phase on dev machines. Runtime apps are safe.

Aisha Patel
Written by

Former ML engineer turned writer. Covers computer vision and robotics with a practitioner perspective.

Frequently asked questions

What is the Axios npm supply chain attack?
Hackers used stolen maintainer creds to publish trojaned Axios packages (1.14.1, 0.30.4) that install a RAT during npm install, stealing dev secrets.
How to check if affected by Axios npm hack?
Scan for IOCs: sfrclak[.]com, specific checksums, temp files like /tmp/ld.py. Rotate secrets from any machine that installed those versions.
Does Axios hack affect end-user apps?
No—only build/install phase on dev machines. Runtime apps are safe.

Worth sharing?

Get the best AI stories of the week in your inbox — no noise, no spam.

Originally reported by Malwarebytes Labs

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.