Supply Chain Attacks Have Become Self-Reinforcing
I talk with a lot of security leaders, and I know that a lot of people are still following last year’s playbook for dealing with supply chain attacks.
What do I mean by that? Well, they treat the incident as over once they have found the malicious package and removed it. For years, that was a reasonable place to stop. SolarWinds and Log4j had enormous impacts, but they looked fundamentally the same way attacks have looked ever since cybersecurity and DFIR began: an organization was compromised, investigators worked to determine what happened, remediation followed, and the industry moved on. End of story.
But in recent months, the old playbook stopped being good enough. When the npm worm Shai-Hulud compromised a maintainer, it stole the credentials that let that maintainer publish, used them to poison their other packages, and collected more credentials from every machine that installed them. The package used to be the whole point. Now it’s just a way to get to the real treasure: Your secrets, which may keep causing problems long after the package is gone and the team has moved on.
And these attacks keep coming faster. The group behind Shai-Hulud published the worm’s source code in May, and copycats showed up within days. The descendants have their own names now. A variant called Miasma infected 32 of Red Hat’s npm packages at the start of June, then spread through dozens more. Another, called Hades, jumped to PyPI, so Python teams now face the same worm JavaScript teams have fought since September.
As I write this, researchers count more than a hundred freshly compromised packages across the two ecosystems from these latest waves alone. Every generation spreads the same way: harvest the credentials on an infected machine, then poison whatever those credentials can touch.
The Credentials Matter More Than the Package
OK, so what does this really change? Well, it means that the most critical question after a compromise like this may very well be “what secrets could that attacker have found during the breach?”
For most of the history of these attacks, you just took stock of how far the bad package spread, because the attacker did nothing more than plant it. You can find a bad package and delete it in a day if all it’s supposed to do is sit there taking malicious action.
But these worms grab publishing tokens for npm and PyPI, GitHub credentials, cloud API keys, and CI/CD secrets, and each one opens something the package itself never touched. When the TanStack attack reached OpenAI in May, the malicious package compromised two employee laptops, and the attacker walked away with credential material from OpenAI’s code repositories. The package ran for a few minutes, but the secrets it exposed reached systems far beyond those two machines.
If a stolen credential keeps working, the attacker can use it anywhere, long after you delete the package that exposed it. So after a compromise, it’s absolutely mission-critical to track down what the attacker took and where they can still use it.
Removing the Package Does Not Make You Safe
Typically, security teams respond to a supply chain attack in a simple way: Find the package, remove it, and report the incident as contained. By then in these attacks, the attacker has usually copied the credentials and moved on to use them elsewhere. Removing the package has zero impact at that point, but until you find those secrets and rotate them, the attack actually keeps going.
Worst-case scenario: You’ve told your senior leadership, maybe even your board, that you handled it when you haven’t.
Grafana learned this the hard way. The company cleaned up after the TanStack attack, but one stolen token never got rotated. Weeks after the incident closed, an attacker used that token to reach Grafana’s GitHub repositories and steal its codebase along with other internal data. That one credential outlived the cleanup, but it was enough to trigger another wave.
Every new wave of these worms runs on treasure gathered in earlier ones. The maintainer accounts that published the Miasma packages came from credentials harvested months before. Skip rotation, and the secrets sitting in your environment become some future attack’s starting point.
What to Do
Alongside scanning your code for the bad package, find out which credentials sat on the machines the attack reached, and change them before the attacker can. Speed decides whether you can actually keep the situation contained or risk having it come back to bite you in the worst way.
Grafana’s attacker took weeks to come back; the worms themselves reuse stolen credentials within minutes. Rotating during the incident protects you. Rotating after the postmortem usually comes too late.
Cleaning up the package only handles what already happened. The treasure the attacker walked out with can still hurt you. Put your attention there, because today’s supply chain attacks don’t look like yesterday’s (and they may never again).

