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.
ChainDrop: a hijacked maintainer account publishes through trusted publishing
August 2026 · Contained
With the keyv maintainer's GitHub account, the attacker committed a payload straight to main and cut releases, so the projects' own release workflows published it to npm through trusted publishing, with valid provenance. Each install then stole the next victim's tokens and published their packages too.
- Went after
- Submit malicious codeDelete code or cover tracksPoint a release tag at a bad commitSteal CI secrets and tokensPoison the build or published packageKeep access
- Access held
- T0repoT1workflowT2Contents: Writenpm publish via OIDCnpm tokensCloud keys and CI secretsRepository Actions secrets
- Scale
- 2,212 malicious versions of 444 npm packages in about four hours; other trackers count slightly more
Full summary
On 4 August 2026 someone used the GitHub account of Jared Wray, who maintains keyv, cacheable and ecto, packages with well over 100 million weekly npm downloads between them. How the account was taken is not known; Wray said they used OIDC with npm and one-time codes on GitHub, so there was no long-lived npm token to steal. From about 09:00 UTC the attacker committed a dropper and a payload straight to main, planted editor and Claude Code hooks, and changed the release script so the new major version would become latest. Creating a release was then enough. The untouched release workflows run on published releases and publish through npm trusted publishing, so keyv 6.0.0 and ten other versions went out from the real pipeline with valid SLSA provenance that tied them to the poisoned commits. The payload, a descendant of Mini Shai-Hulud, runs before install under Bun and takes npm, GitHub, cloud, Kubernetes, Vault, SSH and AI tool credentials from developer machines and CI runners, including secrets read from the runner's memory. With a victim's GitHub token it pushes a workflow that saves the repository's secrets as an artifact and then deletes the run and the branch, and commits the hooks to other branches. With a victim's npm token it republishes their packages with the payload. StepSecurity counted 2,212 versions of 444 packages by 18:10 UTC. Provenance showed which commit was built, not whether anyone should have pushed it.
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.
From about 09:00 UTC on 4 August 2026 the jaredwray account pushed to keyv, cacheable and ecto. No source has established how the attacker got in. Wray said on X that they published to npm with OIDC and signed in to GitHub with one-time codes, so no long-lived token was in play, and that they got the account back at around 20:00 UTC.
What breaks this step
- Enforce MFA for every member (prefer hardware/FIDO2 keys over SMS or app codes)
- Migrate to SAML SSO / Enterprise Managed Users for centralized identity control
- Keep OAuth app access restrictions on and require security/IT approval for new apps
- Enforce an IP allow list for Git and web UI access from trusted ranges
Commit ee2681a, "release: v6.0.0", added setup.mjs and Math_Symbol.js and a preinstall script to core/keyv, and changed scripts/release-publish.ts and the root package.json so v6.0.0 would be published as latest instead of the 5.x line the repository variable pinned. Commit d8c850c, "chore: update config", planted .claude/settings.json and .vscode/tasks.json, and f97eabc at 09:23 removed a test that would have shown the preinstall hook. Datadog saw a branch and two pull requests first, closed with "merging directly to main". The workflow files were not changed.
What breaks this step
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Require the committer to match the pusher on sensitive repos
- CODEOWNERS in place, required on sensitive paths
- Decide which AI coding agents and MCP servers may work on the organization's repositories
keyv's release.yaml runs when a release is published and publishes through npm trusted publishing. The attacker created release v6.0.0 on f97eabc, and run 30896232272 published keyv 6.0.0 at 09:35 UTC with valid SLSA provenance naming that tag, commit and workflow. The same pattern followed in cacheable (commit 893f73f and release setup-files-v1, nine versions between 10:09 and 10:14) and ecto (release v5.0.1, published at 10:28). No npm token was used for these eleven versions.
What breaks this step
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Make releases immutable, or protect release tags with a tag ruleset
- Put production secrets in environments with required reviewers
The preinstall script downloads Bun 1.3.13 from Bun's GitHub releases and runs a 727 KB second stage. It collects npm, GitHub, AWS, Kubernetes and Vault credentials, SSH keys, AI tool credentials and wallets, and on GitHub Actions reads secrets out of the Runner.Worker process memory. It finds its server through an Ethereum contract, sends data to npm-cache.com, and falls back to public repositories described as "Shai-Hulud: Here We Go Again". The first worm-published package appeared at 09:38, three minutes after keyv.
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
- 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).
With a stolen GitHub token that has the workflow scope, the payload pushes .github/workflows/codeql_analysis.yml on a branch named dependabot/github_actions/format/setup-formatter. The workflow, named "Run Copilot", runs on push, writes ${{ toJSON(secrets) }} to format-results.txt and uploads it as an artifact. The payload downloads the artifact, then deletes the run and the branch.
What breaks this step
- CODEOWNERS in place, required on sensitive paths
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Inventory every Actions secret and its visibility/scope; the results are usually surprising
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Put production secrets in environments with required reviewers
- Enable audit logging and export it to a SIEM for retention and detection
Through the GraphQL createCommitOnBranch call the payload commits .claude/settings.json, with a SessionStart hook, and .vscode/tasks.json, with a task that runs on folder open, to up to 50 branches of the repositories it can reach. Opening the repository in VS Code or starting Claude Code there runs the loader again, unless workspace trust blocks it. On the machine it also leaves a watcher that runs a payload when the stolen GitHub token is revoked.
Valid npm tokens, including granular tokens set to bypass 2FA, are used to repack each of the victim's packages with the payload and publish them. StepSecurity counted 433 packages and 2,201 versions published this way by 13:20 UTC, and 444 packages and 2,212 versions in all by 18:10. Socket later counted 2,251 versions of 452 packages.
What breaks this step
- 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
npm began removing versions at about 10:39 UTC and keyv was back on 5.6.0 by about 11:15. Wray disabled every GitHub Actions workflow and npm trusted publishing, force-reset main to the last clean commit, deleted the attacker's tags and asked GitHub to purge the commits. The poisoned commits stayed in the repositories' history for a while after the packages were clean, so a release cut from that tree could have shipped the payload again.
Frameworks
Part of
Contained. First seen August 2026. How the attacker got in is not confirmed. 2,212 malicious versions of 444 npm packages in about four hours; other trackers count slightly more (as of 4 August 2026, source). Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- researchChainDrop npm worm: Bun-loaded CI/CD credential harvester with Ethereum dead-drop C2
- researchkeyv and cacheable npm package hijacked in supply chain attack (Wiz)
- research'ChainDrop' worm compromises hundreds of popular npm packages
- postmortemSupply-chain compromise: packages across jaredwray/keyv and jaredwray/cacheable, with the maintainer's recovery steps
- postmortemkeyv: the maintainer's remediation update
- trackerChainDrop credential stealing worm infects over 400 npm packages
- trackerChainDrop: the Keyv and Cacheable npm supply chain attack
Reported by: StepSecurity