# ChainDrop: a hijacked maintainer account publishes through trusted publishing

incident, `incident:chaindrop`. Page: https://ghtier.com/incidents/chaindrop

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.

**Abused:** [Contents: Write (repository)](https://ghtier.com/tier/permissions/contents-write.md) (Tier 2)

**Used:** [Push directly, without review](https://ghtier.com/attack-paths/technique-no-review.md) (Tier 2), [Delete branches and workflow runs](https://ghtier.com/attack-paths/technique-delete-runs.md) (Tier 1), [Push a release tag to an unreviewed commit](https://ghtier.com/attack-paths/technique-push-tag.md) (Tier 2), [Add a workflow that dumps secrets](https://ghtier.com/attack-paths/technique-inject-workflow.md) (Tier 1), [Publish a malicious version with a stolen token](https://ghtier.com/attack-paths/technique-malicious-release.md) (Tier 1), [Release through the project's own pipeline](https://ghtier.com/attack-paths/technique-release-provenance.md) (Tier 2), [Plant editor or agent config that runs on open](https://ghtier.com/attack-paths/technique-editor-config.md) (Tier 2), [Change a workflow, get its secrets](https://ghtier.com/attack-paths/escalation-workflow-to-secrets.md) (Tier 1)

**Sources:**
- [ChainDrop npm worm: Bun-loaded CI/CD credential harvester with Ethereum dead-drop C2](https://www.stepsecurity.io/blog/chaindrop-npm-worm)
- [keyv and cacheable npm package hijacked in supply chain attack (Wiz)](https://www.wiz.io/blog/keyv-and-cacheable-npm-supply-chain-attack)
- ['ChainDrop' worm compromises hundreds of popular npm packages](https://securitylabs.datadoghq.com/articles/npm-worm-compromises-popular-npm-packages/)
- [Supply-chain compromise: packages across jaredwray/keyv and jaredwray/cacheable, with the maintainer's recovery steps](https://github.com/jaredwray/cacheable/issues/1692)
- [keyv: the maintainer's remediation update](https://github.com/jaredwray/keyv/issues/2051)
- [ChainDrop credential stealing worm infects over 400 npm packages](https://www.csoonline.com/article/4205276/chaindrop-credential-stealing-worm-infects-over-400-npm-packages.html)
- [ChainDrop: the Keyv and Cacheable npm supply chain attack](https://insights.integrity360.com/threat-advisories/chaindrop-the-keyv-and-cacheable-npm-supply-chain-attack)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
