These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
Actions cache poisoning (Angular, TanStack)
Ongoing · Ongoing
A fork's pull request ran in a pull_request_target workflow that shares the repository's Actions cache, wrote a poisoned pnpm store under the key the release workflow restores, and when the release ran, the malware took its OIDC token from memory and published 84 malicious TanStack versions.
- Access held
- T1OIDC ID token: WriteWrite to the Actions cacheCode in the release buildCloud, npm and GitHub credentials
- Scale
- TanStack: 84 malicious versions across 42 packages
- Read the rest
- TanStack npm supply chain compromise postmortem ↗
Full summary
GitHub Actions caches are scoped to the repository, and a pull_request_target run uses the base repository's scope, so code from a fork can write entries that workflows on main later restore. On 11 May 2026 an attacker's pull request to TanStack/router triggered bundle-size.yml, which ran on pull_request_target, checked out the pull request's merged code and built it. That code filled the pnpm store and the job saved it to the cache under the exact key release.yml computes from the lockfile. Setting permissions: contents: read did not help: cache writes use a runner token, not GITHUB_TOKEN. That evening two release runs restored the poisoned store. The malware read an OIDC token out of the runner, using the same script as the tj-actions compromise, and published 84 versions of 42 @tanstack packages straight to npm in six minutes. No npm token was stolen and the publish workflow itself was not changed. Adnan Khan had shown the same class earlier in angular/dev-infra, through a branch name put into a shell step and a tool that fills the cache.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
The attacker forked TanStack/router on 10 May 2026 and on 11 May opened pull request #7378. bundle-size.yml runs on pull_request_target, which needs no approval for first-time contributors, checks out the pull request's merged code and runs pnpm install and a build, so the attacker's vite_setup.mjs ran in the base repository's context.
What breaks this step
- Audit every use of pull_request_target and remove or restructure risky ones
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Require approval for first-time/external contributor workflow runs on forks
- Limit who and what can trigger workflows with workflow execution protections
- Disallow self-hosted runners on public repositories
- Pass untrusted values through env variables instead of ${{ }} expressions in run steps.
- Make self-hosted runners ephemeral.
- Lint workflows with zizmor or a similar tool in CI.
The code wrote into the pnpm store, and at 11:29 UTC the job's actions/cache post step saved it, 1.1 GB, to the cache scope of main under Linux-pnpm-store-<lockfile hash>: the key release.yml looks up. Cache writes use a runner-internal token, so permissions: contents: read on the workflow did not stop it.
At 19:15 UTC a re-run of an earlier Release workflow run on main restored the poisoned store, and at 19:16 a maintainer merged an unrelated fix, which started a second release run that restored it too.
release.yml has id-token: write for npm trusted publishing. The attacker's binaries ran during the build, read an OIDC token out of the runner with the memory extraction script used in the tj-actions compromise, and posted packages straight to the registry: 42 versions at 19:20 UTC and 42 more at 19:26. No npm token was stolen and the publish workflow was not changed.
What breaks this step
- Third-party Actions pinned to a full commit SHA instead of a mutable tag or branch
- Restrict which Actions can run to GitHub-verified creators or an internal allow-list
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Limit where workflow jobs can connect to, starting with release and deploy jobs
- Set `persist-credentials: false` on actions/checkout wherever later steps do not push
- Adopt artifact attestations for build provenance on published binaries/images
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Put production secrets in environments with required reviewers
- Write and rehearse a credential-rotation runbook before you need it
Each malicious version added an optional dependency that fetched an orphan commit from the fork network and ran its prepare script. It collected AWS, GCP, Kubernetes, Vault, npm and GitHub credentials. StepSecurity raised it in an issue at 19:46 UTC; TanStack purged every cache entry in its repositories and restructured bundle-size.yml.
What breaks this step
- Third-party Actions pinned to a full commit SHA instead of a mutable tag or branch
- Enable audit logging and export it to a SIEM for retention and detection
- Restrict which Actions can run to GitHub-verified creators or an internal allow-list
- Review new dependencies in PRs and hold new package versions for a few days before they're allowed in (a cooldown).
- Disable install scripts where you can (npm ignore-scripts).
Adnan Khan showed the technique earlier in angular/dev-infra: a branch name put straight into a shell step in a pull_request_target workflow, then a tool that fills the cache with entries a release job restores. Wiz ties the TanStack wave to the Mini Shai-Hulud campaign (see the Shai-Hulud incident).
Frameworks
Ongoing. First seen May 2026. TanStack: 84 malicious versions across 42 packages (as of 11 May 2026, source). Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- postmortemTanStack npm supply chain compromise postmortem
- researchMini Shai-Hulud strikes again: TanStack and more npm packages compromised (Wiz)
- researchCache poisoning through pull_request_target: the TanStack incident
- researchThe cache that bites back: GitHub Actions cache poisoning attacks
Reported by: Adnan Khan