Axios, the most popular HTTP library with over 100 million weekly downloads, was just hijacked in one of the most sophisticated supply chain attacks in history. A hacker took over the lead maintainer's npm account, injected a phantom dependency that deploys a cross-platform remote access trojan in 1.1 seconds, and the malware erases itself leaving no trace. I break down exactly how it happened, explain what a supply chain attack is, and show you how to check if YOUR system is affected.
TIMESTAMPS: 0:00 - npm install just became DANGEROUS 0:41 - How the attack happened 0:52 - What is Axios? (and why you probably have it) 1:39 - The account takeover 2:20 - The ONE line of code that did it all 3:06 - How it was discovered 3:32 - The postinstall dropper 4:08 - The RAT payload (Mac, Windows, Linux) 4:28 - The self-destruct (no evidence left) 4:40 - What IS a supply chain attack? 4:55 - The coffee analogy 5:51 - Are YOU affected? Let's check together 6:34 - Checking for the RAT on your system 6:51 - What to do if you're compromised 7:50 - Prayer 9:19 - BONUS: Pikachu explains supply chain attacks
0:00 The Axios Supply Chain Attack: How a Single Dependency Compromised Millions
4:44 How to Check if You're Affected and Remediate the Breach
7:54 Explaining Supply Chain Attacks with the Coffee Analogy
This just became the most dangerous command that anyone can run.
npm install anything
fill in the blank
n8n
openclaw
doesn't matter.
We're still uncovering just how bad the fallout on this is.
Anyone could be infected.
You could be infected.
And this just happened.
Axios, the most popular HTTP library, over 100 million downloads a week, was hijacked.
A hacker took over the lead maintainer's account,
injected malicious code without actually injecting malicious code,
and it deploys a remote access Trojan in under 1.1 seconds.
And the malware erases itself.
No trace left behind.
This just might be the most sophisticated and dangerous supply chain attack in history.
Get your copy ready.
Let's dig into how this happened.
Today.
Just a few hours ago.
So how exactly did this happen?
Here's what we know so far.
I'm going to walk you through the entire attack,
from how they got in, to how the malware erased itself.
And how it was discovered.
Because, you know, we're kind of talking about this right now.
At first, you probably have Axios installed.
The thing that got hacked.
I'll show you how to check to see if you're on the bad version here in a moment.
It's an HTTP library, and it's essentially how code talks to the internet.
But you'll rarely install it directly.
Like, I've never installed Axios.
But I do have it installed.
How?
NPM install.
NPM is the package manager for JavaScript.
Essentially the app store for code.
Devs use it a ton.
And so do you, if you've installed something like NAN or OpenClaw.
But you're not just installing OpenClaw when you do that.
You're installing a bunch of dependencies or other code,
written by other people that the app you're installing depends on to work.
You're trusting OpenClaw, but OpenClaw is trusting Axios.
This is how most software works.
And as it stands, the average NPM project trusts 200 to 2100 strangers with code execution.
And I want to hit home the strangest part,
because this is where we got in trouble with Axios.
Axios, something that 174,000 projects depend on,
is coded by a bunch of random people.
I mean, here's the changelog right here.
Looking at the commits.
Random people.
Pay attention to this guy.
These are unpaid people.
This is open source.
And one of those people got compromised.
This guy.
I feel so bad for this guy today.
Jason Saymen.
Probably not his real name.
Maybe it is.
He's a lead maintainer for Axios.
And the attacker got his access token.
A long-lived NPM classic access token that gave the attacker the keys to the kingdom.
Now, we don't know how this happened just yet.
We just know that it did.
And this is when things get bad.
He changed his account email to this email address.
Ifstop at Proton.me.
And the attacker was really clever because he never actually added any malicious code to Axios.
Instead, he added one line to the package.json file.
Here it is clean.
Don't blink.
This is what he changed.
Plain crypto.js.
Notice dependencies.
They keep getting us in trouble.
Now, this is a simple dependency.
Nothing kind of crazy about it.
No one would really notice this.
In fact, an average code reviewer would just go,
Oh, that's a simple crypto thing.
And this sucker was never imported to any of Axios's 86 source files.
It exists only to install its post install script.
But the attacker was smart.
They actually staged a clean version of this file 18 hours before the malicious one.
And they were able to bypass the typical CICB pipelines by using NPM CLI.
Essentially skipping all the guardrails that would normally catch something like this.
Now, Socket.dev was the first person or the first company to find this.
And they have a really fun diagram I want to show you.
Oh, and also they changed two release branches.
The 1.x and 0.x.
Specifically the 1.14.1 and the 0.30.4.
And they were poisoned within 39 minutes of each other.
So any project using a carat range of these two releases
would pull the compromised version on the next NPM install.
Which often happens automatically with CICB pipelines.
Or when you're just installing OpenClock
because some YouTuber told you to do it during that time frame.
I'm sorry.
So when you do NPM install, this post install script runs automatically by itself.
You don't have to do anything.
And it triggers what's called a dropper.
This dropper drops in setup.js.
Now it looks harmless.
Looks like math.
But here we have two layers of obfuscation.
Which hides all the dangerous stuff from static scanners.
It's using XOR and Base64.
And this weird order 7077 phrase.
Does anyone know what that means?
So now that setup.js has deobfuscated all the dangerous stuff.
Or revealed it.
It can use it.
It will then detect the operating system that it's currently running on.
Which operating system you have.
Will then contact the C2 server.
The command and control server.
Which the attacker operates.
And downloads the specific RAT.
Or Remote Access Trojan software.
Onto that computer.
And this is what it would look like.
On Mac.
Windows.
And Linux.
This happens 1.1 seconds after NPM install.
And then it cleans up.
It deletes setup.js.
Deletes the malicious package.json.
And renames the pre-staged package.md to package.json.
Which is a clean version.
At this point the attacker has access to your system.
They can access your stuff.
In 1.1 seconds.
And you didn't even know.
And you weren't doing anything weird or wrong.
You were just installing or using software from people that you trust.
It's not your fault.
It's a supply chain attack.
It's kind of like this.
If someone wanted to poison me.
They could just put poison in this cup of coffee.
But that'd be hard.
Because I'm always watching my coffee.
But they could instead go to the coffee roaster.
And poison the beans I buy.
Actually I need some more coffee right now.
Or maybe they go higher up the chain.
Maybe they poison the powder on these coffee bags.
The same bags that are used by all the suppliers.
That would expand their reach.
Poisoning a lot more people.
I know this analogy is kind of dark.
Or they can go bigger.
What if they poisoned the water supply.
Going after the water I use to brew my coffee.
And now they've expanded their use beyond coffee drinkers.
It's everyone who uses the water.
And that's kind of the scope we're dealing with right now.
With the Axios supply chain attack.
So let's find out if you drink the water.
Because here's the thing.
You might have Axios installed.
But you may not even know.
I know I have it installed.
I think I'm safe.
Let's check together right now.
Because again this stuff just happened.
I'm kind of discovering it with you.
All right thank you Pikachu.
You can leave now.
Okay let's check.
Let's open up your terminal first.
Type in this npm list-g axios.
Check your versions.
If you see 1.14.1 or 0.30.4.
You may want to do a deeper search across your entire system.
We can use this little multi-line command here.
And I'll have all these commands below for all the systems.
And it's finding things I've custom built myself.
I don't even know had Axios in them.
It's everywhere man.
Now let's check if the rat actually made it onto your system.
I'm going to use this command to see if it's on my Mac.
Not there.
I'll have commands for Windows and Linux below.
And you can also check if it's going to reach out to the command and control server.
This is the IP that was found.
It was taken down.
Or it's not up anymore.
If none of that showed anything you're probably good.
For now.
Just keep an eye out.
But if you found anything.
Stop right now.
Don't just delete files.
Treat your machine as a compromised machine.
Rotate your API keys.
Every credential.
Every token.
I'll have a full remediation checklist below.
Keep an eye out.
Keep your ear to the ground.
And it seems like this is happening more and more often now.
AI is amazing.
And it's been helping us build stuff.
But it's also helping the hackers do things.
This is happening way more often than it should.
So pay attention.
Be secure.
Also go watch John Hammond's live stream.
Where he actually woke up.
And went through all this.
And went through all the code.
It was very fun to watch.
I'm sure he'll be dropping a video on this soon as well.
And thank you to all you warriors out there.
All you amazing people.
Who are remediating all this stuff.
This is a massive thing.
A massive supply chain attack.
So get that coffee brewing.
And if you're affected by this.
I'd love to hear in the comments below how it's going.
How bad is it?
Maybe offer some help or advice for people who may be going through this.
That's all I got.
I'll catch you guys next time.
Hey you made it to the end of the video.
And at the end of my videos.
I'd like to pray for you.
My audience.
I know it's kind of weird.
Go with it.
Life is weird.
One, two, three, pray.
God I thank you for the person on the other side of this camera.
On the other side of this screen.
I ask in your name that you bless them and their lives right now.
That if they are affected by this hack.
That you would give them the passion.
And the strength.
And the ability.
And the diligence.
And the energy.
To just tackle this with skill.
That you would bless their own personal computing environment.
Their company's environment.
And just I ask that you would make them a rock star in this moment.
Equip them with everything they need.
If they're not affected.
If they're just watching this to learn this.
I pray that you would turn them into an amazing cyber security person.
That you would teach them skills.
And give them the ability to learn these skills.
And absorb them.
To learn about supply chain attacks.
To learn how to defend against them.
Just bless their lives God.
I pray for my audience right now.
That you would just give them so much favor in their lives.
And their families.
I pray for success over their career.
And if there's any anxiety over anything in tech that's happening.
Because everything's moving very fast.
Remove that anxiety.
Just let it melt off of them.
And let them take one day at a time.
Learn that next thing.
And just stay relentlessly optimistic.
I ask this in your name Jesus.
Amen.
All right that's all I got.
Actually I'm gonna have Pikachu try to explain supply chain attacks to you.
She begged me to let her do this.
Hi.
I'm Maddie Keith.
And today I'll be supplying supply chain attacks.
The coffee?
Oh okay.
So let's do this.
The coffee explanation.
So let's say if this really bad guy wants to poison you.
And you have your cup of coffee.
He puts this nice cup of warm hot coffee.
And he gets poisoned.
And he puts in the coffee.
And you drink it.
Okay.
But then the next explanation is if you have a coffee bag with beans in it.
Coffee beans.
And the guy with the poison puts it with the coffee beans.
And now you have poison coffee beans.
But the really bad one is if the guy were like.
Like there's all these coffee bean bags.
And they're all together.
And the guy puts poison in one of the coffee bean bags.
All of the coffee bean bags.
Then all of the other coffee bean bags get exposed.
Exposed.
So that's my.
That's the explanation.
So basically I think.
What's it called again?
Supply chain attack.
Is where there's a source.
And it goes in your computer.
And it's like.
I think it's like a virus.
Yeah.
It's like a virus.
And pretend the poison in my analogy is a virus.
And the coffee.
And the coffee bean.
And the coffee bean bags are your computers.
So yeah.
That's it.
Thank you.