Skip to content
MediumNews

Mistral AI SDK, TanStack Router hit in npm software supply chain attack

Published
Record updated
View JSON

Summary

The TeamPCP threat group compromised about 170 npm and PyPI packages on May 11, including the @tanstack TanStack Router ecosystem of 42 packages, the Mistral AI SDK suite on npm and PyPI, and the Guardrails AI PyPI package. The attackers exploited the pull_request_target trigger and GitHub Actions weaknesses to hijack release pipelines and obtain maintainers' short-lived OIDC tokens, then injected the Mini Shai-Hulud malware, which spread through the worm capabilities of the platform. The malware is designed to steal developer credentials, and it installs a destructive monitor that attempts to delete the home directory if a stolen GitHub token is revoked.

Mitigation

SafeDep recommends checking the lockfile for known compromised versions, pinning dependencies to known good versions, checking for evidence of malware files, and rotating any credentials in use at the time of import if an infected version is suspected. SafeDep has published a full list of affected packages with indicators of compromise.