Our response to the TanStack npm supply chain attack
Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.
Related posts
- Our response to the Axios developer tool compromise
OpenAI mediumAdept
A GitHub Actions workflow in OpenAI's macOS app-signing pipeline downloaded and executed a malicious Axios 1.14.1 during the March 31, 2026 npm supply chain attack, exposing the code-signing certificate and notarization material for ChatGPT Desktop, Codex, Codex CLI and Atlas. OpenAI judged exfiltration unlikely because of payload timing and job sequencing, but is treating the certificate as compromised: it is rotating it, blocking new notarizations with Apple, and fully revoking it on May 8, 2026 after a 30-day update window. The root cause was a workflow that used a floating tag instead of a pinned commit hash and had no minimumReleaseAge for new packages. Both settings are concrete mitigations for CI pipelines that handle signing secrets.
- Defending Your Software Supply Chain: What Every Engineering Team Should Do Now
Docker mediumAdeptRecent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.
- Protecting your Supabase projects from npm supply chain attacks
Supabase mediumAdeptnpm supply chain attacks reach Supabase users through three common paths: maintainer compromise, typosquatting (including a real `supabase-javascript` package and AI-hallucinated names), and build pipeline compromise like the TanStack attack via `pull_request_target` and a poisoned Actions cache. Malicious lifecycle scripts can exfiltrate env vars, cloud metadata, kubeconfig, npm tokens and SSH keys before `npm install` even returns. The recommended layered defenses are pnpm 11 with a 3–7 day `minimumReleaseAge`, exact version pins for sensitive deps, committed and reviewed lockfiles, disabled install scripts with an allowlist, verifying `@supabase/` scopes, SHA-pinned GitHub Actions, and credential rotation after suspected exposure. A ready-made prompt lets a coding agent apply these settings across pnpm, npm, yarn and bun.
- Coding Agent Horror Stories: The 29 Million Secret Problem
Docker mediumAdeptThe s1ngularity supply-chain attack on the Nx npm package used a post-install script to find installed AI coding CLIs (Claude Code, Gemini CLI, Amazon Q) and invoke them with permission-bypass flags like --dangerously-skip-permissions, prompting the agent to inventory secrets across the home directory before exfiltrating them to public repos under the victim's GitHub account. GitGuardian counted 2,349 stolen secrets across 1,079 repos and also found AI-assisted code leaks secrets at about twice the GitHub baseline. Docker Sandboxes is pitched as the mitigation: agents run in microVMs that see only the project workspace, and credentials stay in the host keychain and are injected by a proxy at the network boundary, so the agent only ever holds a placeholder.
- Dependency prefixes are a supply chain risk: let's fix them
Sourcegraph mediumAdept
SemVer range prefixes like ^, ~ and wildcards in package.json act as a trust policy that lets compromised or hijacked packages flow into CI and production on the next install. The recommended controls are to commit lockfiles and install with npm ci, pnpm --frozen-lockfile or yarn --immutable, pin exact versions for high-blast-radius packages such as build tools, auth libraries and native-binding deps, set save-exact defaults, disable install scripts with an allowlist for exceptions, and run audits against the locked tree. To roll this out across hundreds of repositories, a Sourcegraph Batch Changes spec with a Node script rewrites React dependency ranges to approved exact versions and refreshes lockfiles without running scripts.