ghtier

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.

← All incidents

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.

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

Phished or hijacked accountway inContents: Writejaredwray's accountPush directly, withoutreviewtechniquePlant editor or agentconfig that runs on opentechniquePush a release tag to anunreviewed committechniquenpm publish via OIDCkeyv's release.yamlRelease through theproject's own pipelinetechniqueCompromised Action orpackageway inrepoVictims' GitHub tokensworkflowThe same tokensnpm tokensVictims' machines, CICloud keys and CI secretsDisk, runner memoryChange a workflow, get itssecretsescalationRepository Actions secretsEach repo's workflowsDelete branches andworkflow runstechniqueDelete code or cover tracksPlant editor or agentconfig that runs on opentechniqueKeep accessPublish a malicious versionwith a stolen tokentechniquePoison the build orpublished package

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

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

Reported by: StepSecurity