A Self-Spreading Worm Got Into the Code Behind Billions of Installs
3 months ago
Almost every app is built from thousands of small pieces of free, shared code. Your computer downloads and runs them automatically. This week, someone booby-trapped one of those pieces.
Ask about this presentation
Chapters
0:00A Self-Spreading Worm Got Into the Code Behind Billions of Installs
0:12More than 400 packages. Over 2 billion installs a month.
0:24One hijacked account poisoned eight packages at once.
0:38One hidden line, then it hunts for your keys.
0:57It steals your keys, then uses them to spread.
1:25It signs its own loot: “Here We Go Again.”
1:34One hijacked account. A worm that spreads on your own keys.
Show transcriptHide transcript
Almost every app is built from thousands of small pieces of free, shared code. Your computer downloads and runs them automatically. This week, someone booby-trapped one of those pieces.
The trap is a worm: code that copies itself from victim to victim on its own. Within hours, it reached more than four hundred code packages, installed over two billion times a month.
The attackers took over one programmer’s account. That person maintained a family of small packages, so one break-in poisoned eight at once. Because the poisoned versions came from the real owner’s account, they looked completely legitimate.
Each poisoned package hides one extra line. It tells your computer to run the package’s own code automatically, the moment you download it, before you use anything. That code searches two hundred places developers hide their keys. Those keys unlock a company’s cloud, its payments, its chat. The code steals them.
Among the keys the worm steals are the ones that let the victim publish code. It uses those to poison more packages: it lists every package that key can publish, slips in the same trap, bumps the version, and republishes. Everyone who installs those becomes the next carrier. With another key, the worm plants a copy of itself in your project’s settings, so it runs again the moment you open that project in your editor. Each victim’s keys fuel the next round.
The worm posts the stolen keys to public pages anyone can read, each stamped “Shai-Hulud: Here We Go Again.” That tag is how it was found, and named.
So the everyday act of adding a piece of code became a machine that steals your keys and spreads itself. The cleanup is still under way.
Up next
1:48Writing a note down as one thing is what made it fast
@the-daily-build
3 months ago
1:51Nothing on the rig measures speed
@the-daily-build
3 months ago
1:53A file gets smaller when you can guess what is in it
@the-daily-build
3 months ago
1:55The seal on an AI's private thinking had one key for the whole company
@the-daily-build
3 months ago
1:50One row for every sellable unit, and each checkout takes any free one
@the-daily-build
3 months ago
1:42A single CPU instruction, stretched from a blink to a full minute
@the-daily-build
3 months ago
1:44You can't be best at everything
@the-daily-build
3 months ago
1:42How deleting one if-statement made this filter 4x faster
@the-daily-build
3 months ago
1:42Software gives you five skin tones, or sixteen million
@the-daily-build
3 months ago
1:34The AI session you can’t take with you
@the-daily-build
3 months ago
1:42He Walked Through His House Before It Was Built, at Full Size, in a Headset
@the-daily-build
4 months ago
1:38500 Lines of Code That Draw 3D Without a Graphics Card
@the-daily-build
4 months ago