UpTrajectory Review

Supply Chain Attack Hits Popular npm and PyPI Packages

worm crawling through circuit board
Photo: Omar Ramadan / Pexels

UpTrajectory Review

On May 11, the TeamPCP threat group hijacked 170 npm and PyPI packages in a few hours, including the entire TanStack Router ecosystem and Mistral AI's SDK. The attack spread through a worm called Mini Shai-Hulud, which turned compromised packages into launchpads for fresh compromises. SafeDep counted 404 poisoned versions; Aikido Security counted 373. The gap matters less than the speed: this was not a lone maintainer's mistake but an automated campaign that scaled across namespaces.

The entry point was a GitHub Actions trigger called pull_request_target, which runs workflows from outside contributors without maintainer approval. Attackers scraped the short-lived OIDC tokens that the trigger exposes, then used those tokens to push malicious releases through legitimate pipelines. No stolen passwords, no phished MFA codes. The pipeline itself betrayed the maintainer. This is the second major TeamPCP operation this year, and it signals that CI/CD misconfigurations now rival credential theft as the fastest route to mass compromise.

If your business ships software or hires vendors who do, this attack reaches you twice. First, any developer who ran npm install or pip install between May 11 and the takedowns may have leaked GitHub tokens, npm tokens, cloud credentials, API keys, or Kubernetes service accounts into attacker hands. Second, if your product depends on TanStack, Mistral's SDK, or the other named packages, your build pipeline may have propagated the worm further. Check your lockfiles and CI logs now, not after your next sprint.

What makes this campaign notable is the dead man's switch design: the malware activates when maintainers try to clean up, and the worm logic means remediation in one repo does not stop propagation from another. Security vendors caught this quickly because they monitor package registries, but the attack exploited a feature, not a bug. GitHub documents pull_request_target as dangerous; the open-source ecosystem uses it anyway because maintainer fatigue is real. That trade-off is now a known attack surface, and TeamPCP has industrialized it.

The downstream cost falls unevenly. Large vendors with dedicated security teams rotated credentials within hours. Small agencies, solo maintainers, and businesses that treat dependency updates as background noise now face silent credential exposure. If your team deployed code on May 11 or 12, assume your CI secrets were visible until you rotated them. Audit your GitHub Actions workflows for pull_request_target, replace it with pull_request where possible, and require human approval for any workflow that touches release credentials.

Watch for GitHub to tighten OIDC token scoping or add default restrictions to pull_request_target. Watch also for copycat attacks: the technique is public, the tooling is reusable, and the target list is long. If you maintain packages, enable npm provenance and require signed commits for releases. If you consume them, pin versions, verify hashes, and subscribe to registry advisories. The next TeamPCP operation will not wait for you to catch up.

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

Takeaway: Audit your GitHub Actions for pull_request_target and rotate all CI/CD credentials if your team built or deployed code on May 11 or 12.

Excerpt from the original — InfoWorld

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 …