Skip to content
RCE Write-up Advanced

IronWorm: Yet Another Supply-Chain Attack

Over 30 npm packages from the @asteroiddao scope shipped a malicious Rust binary that runs on preinstall, sweeping environment variables and credential files to steal secrets. The payload also hides via an eBPF rootkit, beacons over Tor, and self-propagates through npm Trusted Publishing with OIDC.

medium.com

Published on medium.com

If you’re someone who has spent years knee-deep in dependency graphs, build pipelines, and security hygiene, the latest IronWorm attack should scare you.

John Philip, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the attackers gained publishing rights to the @asteroiddao npm scope and abused npm Trusted Publishing with OIDC to push malicious packages that execute a Rust binary on preinstall.

Impact

The malware could steal cloud credentials, npm tokens, AI provider keys, and crypto wallet data, while hiding via an eBPF rootkit and exfiltrating over Tor, and it could spread to other packages through trusted publishing.

What the attacker needed

Installing an affected @asteroiddao package; npm install runs preinstall scripts

The fix

The text does not state a fix; it recommends auditing dependencies, reviewing CI credential hygiene, locking down preinstall scripts, and using isolated install environments.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is about a supply-chain attack where someone uploaded malicious versions of software packages to npm, a public repository for JavaScript code. When a developer installed one of these packages, a hidden program ran automatically and tried to steal passwords and access keys from the developer's computer and build system. The attackers also used tricks to hide the program and spread it to other packages.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.