Malicious PyPI Packages Bypass SLSA Provenance in Supply Chain Attack
Back to feed

Malicious PyPI Packages Bypass SLSA Provenance in Supply Chain Attack

By our Crypto News Room Editorial Desk3 min read

Attackers have compromised the official Mistral AI Python package on PyPI, along with hundreds of other widely-used developer packages, in a supply chain attack exposing GitHub tokens, cloud credentials, and password vaults across the AI and crypto developer ecosystem.

Microsoft Threat Intelligence disclosed on May 11 that it was investigating the mistralai PyPI package version 2.4.6 after discovering malicious code injected into mistralai/client/init.py. The rogue code executed on import, downloading a secondary payload from 83.142.209.194 to /tmp/transformers.pyz before launching it on Linux systems.

Researchers have linked the Mistral compromise to a broader campaign dubbed "Mini Shai-Hulud." SafeDep reported that the operation compromised over 170 packages and published 404 malicious versions between May 11 and 12. The attack carries CVE-2026-45321 with a CVSS score of 9.6, earning it a critical severity rating.

What makes this attack structurally noteworthy: the malicious packages carried valid SLSA Build Level 3 provenance attestations—cryptographic certificates generated by Sigstore intended to verify that a package was built from a trusted source. Snyk confirmed the TanStack attack marks the first documented case of malicious npm packages with valid SLSA provenance, suggesting attestation-based supply chain defenses may need a second opinion.

The attackers, identified as TeamPCP, chained three vulnerabilities: a pull_request_target workflow misconfiguration, GitHub Actions cache poisoning, and runtime memory extraction of an OIDC token from the GitHub Actions runner process. The malicious commit was authored under a fabricated identity impersonating the Anthropic Claude GitHub App, prefixed with [skip ci] to bypass automated checks.

As Cryptopolitan reported on the January 2026 Trust Wallet incident tied to $8.5 million in losses, the Shai-Hulud worm has been evolving across multiple waves since September 2025. This latest variant adds password vault theft to its repertoire. Wiz researchers documented that the malware now targets 1Password and Bitwarden vaults alongside SSH keys, AWS and GCP credentials, Kubernetes service accounts, GitHub tokens, and npm publishing credentials.

The stealer exfiltrates data via three redundant channels: a typosquat domain (git-tanstack.com), the decentralized Session messenger network, and Dune-themed GitHub repositories created with stolen tokens. The malware exits if Russian language settings are detected. On systems geolocated to Israel or Iran, it introduces a one-in-six probability of executing a recursive wipe (rm -rf /).

Mistral published a security advisory on May 12 confirming its core infrastructure was not compromised and attributing the incident to a compromised developer device tied to the broader TanStack supply-chain campaign. The mistralai==2.4.6 release was uploaded shortly after midnight UTC on May 12 before PyPI quarantined the project. Compromised npm packages—including @mistralai/mistralai, @mistralai/mistralai-azure, and @mistralai/mistralai-gcp—were available for several hours before removal.

The combined weekly download volume of all affected packages exceeds 518 million, with @tanstack/react-router alone receiving 12.7 million weekly downloads. Developers who installed compromised versions should rotate cloud credentials, GitHub tokens, SSH keys, exchange API keys, and inspect their .claude/ and .vscode/ directories for any unexpected configuration files.

Share:
Keep Reading

Related Articles

View all
Publishercryptonewsroom.xyz
Published

Disclaimer: This content is for information and entertainment purposes only. It does not constitute financial, investment, legal, or tax advice. Always do your own research and consult with qualified professionals before making any financial decisions.

See our Terms of Service, Privacy Policy, and Editorial Policy.