OpenAI Employees Targeted in TanStack Supply Chain Attack

๐กLearn how a supply chain attack on open-source tools impacted OpenAI's internal security.
โก 30-Second TL;DR
What Changed
Hackers exploited the TanStack open-source project to distribute malicious code.
Why It Matters
This incident highlights the growing risk of supply chain attacks targeting AI developers through compromised open-source dependencies. It underscores the need for stricter dependency auditing in AI development workflows.
What To Do Next
Audit your project's 'package.json' or 'requirements.txt' files and implement dependency pinning with hash verification to prevent malicious code injection.
Key Points
- โขHackers exploited the TanStack open-source project to distribute malicious code.
- โขInternal code repository credentials were stolen from two employee devices.
- โขOpenAI confirmed no user data or production systems were compromised.
๐ง Deep Insight
Web-grounded analysis with 14 cited sources.
๐ Enhanced Key Takeaways
- โขThe attack on OpenAI employees was part of a larger, coordinated supply chain campaign dubbed 'Mini Shai-Hulud' by the threat group TeamPCP, which compromised over 170 packages across npm and PyPI, including those from Mistral AI, UiPath, OpenSearch, and Guardrails AI.
- โขThe malicious packages were published with valid, signed SLSA provenance certificates because the attackers hijacked the legitimate build pipeline itself, demonstrating a significant bypass of existing software supply chain security measures.
- โขThe attack exploited a sophisticated chain of three GitHub Actions vulnerabilities: a 'Pwn Request' pattern via
pull_request_target, GitHub Actions cache poisoning, and runtime memory extraction of an OIDC token from the GitHub Actions runner process. - โขThe malware is a self-propagating worm designed to steal various credentials, including GitHub, npm, AWS, GCP, Kubernetes, Vault, and SSH tokens, and has the potential to wipe developer home directories.
- โขAs part of its response, OpenAI is rotating code-signing certificates, necessitating that macOS users update their OpenAI applications by June 12, 2026, to ensure continued functionality and security.
๐ ๏ธ Technical Deep Dive
- The attack leveraged a chain of three GitHub Actions vulnerabilities.
- Step 1: Pwn Request via
pull_request_target: The attacker created a fork ofTanStack/routerand opened a pull request that triggered apull_request_targetworkflow, exploiting a pattern where this workflow trusts the fork's code. - Step 2: GitHub Actions cache poisoning: A malicious
vite_setup.mjsfile from the attacker's fork wrote data into thepnpm-storedirectory under a key that the legitimate release workflow would later restore. - Step 3: OIDC token extraction from runner memory: When the poisoned
pnpmstore was restored during a legitimate release workflow, attacker-controlled binaries were invoked. These binaries located the GitHub Actions Runner Worker process, read its memory (/proc/<pid>/mem), and extracted the OIDC token (which the runner mints lazily whenid-token: writeis set). - The extracted OIDC token was then used to authenticate POST requests directly to
registry.npmjs.org, bypassing the workflow's 'Publish Packages' step and allowing the publication of malicious package versions with valid provenance. - The malicious payload executes during
npm installlifecycle hooks, stealing credentials and then self-propagating by identifying and modifying other npm packages the victim has publish access to, injecting the malicious dependency, bumping versions, and publishing new compromised releases.
๐ฎ Future ImplicationsAI analysis grounded in cited sources
pull_request_target and cache usage across trust boundaries.โณ Timeline
๐ Sources (14)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates

OpenAI Bans Cambodia-Based Fraud Network Using ChatGPT
Anthropic and OpenAI disclose AI systems breaching external networks
Anthropic AI Models Accidentally Hacked Three Organizations During Testing

Microsoft plans to transform Minecraft into a global creator platform
AI-curated news aggregator. All content rights belong to original publishers.
Original source: cnBeta (Full RSS) โ