Join our Newsletter — 33% off our NHI Course

Did Shai-Hulud show how package publishing tokens can weaponise dependencies?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: Trusted npm dependencies became a delivery path for malicious code because skills already hold broad system permissions, according to ClawSecure. That makes dependency trust a runtime control problem, not just a scanning problem.

Editorial analysis by NHI Mgmt Group, based on content published by ClawSecure: “AI Agent Supply Chain Attacks: How Dependencies Become Weapons”.

Key questions

Q: Why do trusted publishing and provenance not fully protect npm packages from supply chain compromise?

A: Trusted publishing proves which workflow created a package, but it does not prove the workflow was safe to run.

Q: What are the signs that tool governance is failing in an AI agent programme?

A: Common signs include broad tool permissions, reusable credentials across unrelated services, approvals happening only after execution, and poor traceability from tool action back to a human principal.

Q: What breaks when AI agent dependencies are poisoned?

A: The control that breaks is the assumption that trusted package names imply trusted code.

Practitioner guidance

  • Pin dependency versions and lockfiles Use exact version pinning in package.json and commit package-lock.json so a compromised patch release does not enter automatically.
  • Enforce MFA on publishing identities Require multi-factor authentication on npm accounts and reduce the lifetime and scope of publishing tokens used for package release.
  • Scan the full dependency tree before install Check nested npm packages against vulnerability data before a skill is installed or updated, not after execution begins.

Bottom line: AI agent supply chain attacks succeed because trusted packages can carry malicious code into skills that already hold broad system permissions.

Glossary terms: Dependency Hijacking, Package Publishing Token, Transitive Dependency, Permissions Manifest

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 7 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

AI agent supply chain risk is really identity governance for software trust. The article is not only about malicious packages. It is about who can publish, who can update, and which identities a build system is willing to trust without challenge. That makes maintainer accounts, publishing tokens, and dependency provenance part of the identity control plane for agentic systems. Practitioners should treat software supply chain trust as an access governance problem, not a scanning problem.

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.
  • 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: Should teams prioritise dependency scanning or permission controls first for AI agents?

A: They should do both, but permission controls usually deserve the first pass because they cap the damage a poisoned package can do. Scanning finds known-bad packages, while permissions define what an installed package can actually reach. If the runtime scope is broad, a clean scan does not remove the blast radius.

👉 Read our full editorial: AI agent supply chain attacks expose trust gaps in dependencies


This post was modified 7 days ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.