UpTrajectory Review

Supply Chain Attack Hits Popular npm and PyPI Packages

worm crawling through chain links
Photo: Miguel Á. Padriñán / Pexels

UpTrajectory Review

On May 11, the TeamPCP threat group compromised roughly 170 npm and PyPI packages in a matter of hours, using a worm called Mini Shai-Hulud that rode legitimate release pipelines. The blast radius included the TanStack Router ecosystem (42 packages), @squawk (87), @uipath (66), @tallyui (30), @beproduct (18), Mistral AI's SDK suite, and the Guardrails AI PyPI package. Vendors including Aikido Security and SafeDep caught the attack with automated tools, though they disagree on the exact count: Aikido tallies 373 versions across 169 namespaces, while SafeDep counts 404 versions across 170 npm packages plus two on PyPI. The discrepancy matters less than the mechanism, which CSO Online details well: the attackers never stole maintainer passwords. Instead, they abused a GitHub Actions trigger called pull_request_target, which lets outside workflows run without maintainer sign-off and exposes short-lived OIDC tokens to scraping. Those tokens unlocked the release pipeline itself.

If your business ships software that touches npm or PyPI, this is not a distant security story. The stolen goods are developer credentials: GitHub and npm tokens, cloud keys, API keys, Kubernetes service accounts. One compromised dependency in your build can hand an attacker the keys to your entire cloud footprint. Small teams feel this hardest. You likely lack a dedicated security engineer watching CI logs, and you almost certainly depend on open-source packages maintained by volunteers who face the same approval fatigue the attackers exploited. The pull_request_target trigger exists precisely because maintainers tire of approving every outside contribution. Attackers counted on that fatigue, and the wager paid off across hundreds of packages in hours.

What is genuinely new here is the industrial scale. Mini Shai-Hulud did not break into one package; it weaponized the release infrastructure of entire ecosystems and hopped from project to project. We are skeptical of one framing in the coverage, however: calling this a supply chain attack risks making it sound exotic. The root cause is a mundane workflow shortcut. The maintainers did not get phished or brute-forced; they used a convenient trigger that trades a small security margin for a large convenience gain. That trade now looks indefensible, yet thousands of repositories still make it. The attack also shows how quickly automated detection has improved, since multiple vendors flagged the compromise within hours. Speed saved the day, not prevention.

The downstream effects split the community in two. Large organizations with software composition analysis tools and locked-down CI environments likely contained the damage quickly. Small shops and solo maintainers absorbed the real cost: auditing every dependency, rotating every token, and wondering what else the worm touched before detection. Cloud bills and incident-response hours pile up fast when you discover a stolen Kubernetes service account weeks later. The attack also erodes trust in the npm and PyPI registries themselves. If a popular routing library can turn malicious overnight, every update becomes a small gamble. That friction slows legitimate development and pushes some teams toward vendoring dependencies, which carries its own maintenance burden.

Watch whether GitHub tightens the default permissions for pull_request_target or adds friction to OIDC token exposure in third-party workflows. The registry operators may also face pressure to enforce signed provenance for published packages, a step that would raise the bar for attackers but complicate life for casual maintainers. In the meantime, audit your own repositories for the pull_request_target trigger and replace it with stricter gating, even if that means approving more pull requests by hand. Rotate any npm, PyPI, or cloud tokens that your CI pipelines touched on or after May 11. Pin dependencies to exact versions and review changelogs before upgrading. The next TeamPCP campaign will not wait for you to catch up.

“Instead of stealing maintainer credentials directly, the attackers exploited a risky trigger, pull_request_target.” — CSO Online

Takeaway: Audit your CI workflows for the pull_request_target trigger and rotate all npm, PyPI, and cloud tokens exposed to builds since May 11.

Excerpt from the original — CSO Online

The TeamPCP threat group has pulled off another big supply chain attack which within a few hours this week was able to successfully compromise 170 Node Package Manager (npm) and PyPI packages.

The attack affected the entire TanStack Router ecosystem (@tanstack) of 42 packages, a routing library hugely popular among React web application developers. Multiple other packages were also affected, including @squawk (87 packages), @uipath (66 packages), @tallyui (30 packages), @beproduct (18 packages), as well as Mistral AI’s SDK suite on both npm and PyPI, and the Guardrails AI PyPI package.

The attacks, noticed by several vendors using automated security tools, happened on May 11, spreading rapidly through package ecosystems thanks to the worm capabilities of the automated Mini Shai-Hulud malware platform, analysis found.

The exact number of package versions caught up in the attack …