TL;DR: 1,500+ npm packages were exposed to slug-reclaim takeover, with over 10 million downloads and ~70 agent-installed packages per endpoint each month, according to Bloom Security. Package trust has to verify immutable repository identity, or renamed and deleted repos can become a supply-chain entry point.
Editorial analysis by NHI Mgmt Group, based on content published by Bloom Security: “SlugFest: Millions of AI Agents Install npm Packages Exposed to Malicious Takeover through GitHub”.
By the numbers:
- More than 1,500 vulnerable npm packages were exposed to slug-reclaim takeover.
- Those packages accounted for over 10 million downloads, with more than 1 million per month.
- AI agents installed about 70 packages per endpoint each month, and developer machines reached close to 350.
Key questions
Q: Why do AI coding agents increase supply-chain risk?
A: AI coding agents can choose tooling, install packages, and edit lock files in ways that may bypass the controls humans expect in a managed environment.
Q: How does trusted publishing work with OIDC tokens?
A: Trusted publishing uses an OIDC token from the build or release workflow to prove the package was produced by an authorised pipeline, then exchanges that short-lived assertion for publish rights without storing a long-lived secret.
Q: How do I stop reclaimed repository slugs from breaking package trust?
A: Require trust bindings to use immutable repository identifiers, not just repository names.
Practitioner guidance
- Rebind trusted publishing to immutable repository IDs At trust creation time, resolve every repository slug to its current repository_id and repository_owner_id, then require exact equality at exchange time.
- Treat repository lifecycle events as revocation events If a bound repository is renamed, transferred or deleted, invalidate the trust binding and recreate it only after confirming the new authoritative repository identity.
- Audit agent-driven package installation paths Inventory the endpoints, IDEs, CLIs and assistants that install packages autonomously, then enforce allowlists and provenance checks before dependency fetch and execution.
Bottom line: Trusted publishing can still fail when a registry binds trust to a reclaimable repository slug instead of immutable repository identity.
Glossary terms: Trusted Publishing, Oidc Token Exchange, Agentic Software Installation, GitHub Repository ID
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Mutable names cannot serve as security identities. Bloom Security's research shows that trusted publishing collapses when a registry binds trust to a repository slug that can later be reclaimed. The security invariant should be the immutable repository identity, not the address string that happened to exist at trust creation time. Practitioners should treat repository rename and deletion as changes to trust posture, not admin housekeeping.
A few things that frame the scale:
- 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.
A question worth separating out:
Q: What should teams do first when a package trust binding might be exposed?
A: They should revoke or rotate the exposed trust binding first, then disable any credential or token that can still publish packages, and inspect recent package uploads for unauthorised releases. If the binding was tied to a CI workflow, the team should also narrow the workflow's OIDC claims and reissue any signing or publish credentials that may have been abused.
👉 Read our full editorial: Reclaimed GitHub slugs expose npm trusted publishing to takeover