Join our Newsletter — 33% off our NHI Course
Home FAQ Threats, Abuse & Incident Response Why do AI agent tool calls increase supply-chain…
Threats, Abuse & Incident Response

Why do AI agent tool calls increase supply-chain risk for secrets exposure?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 20, 2026 Domain: Threats, Abuse & Incident Response

Because the tool invocation can be the trigger that activates hidden logic after installation, at the exact moment the agent is interacting with a trusted workflow. That means the package can sit dormant until it sees the conditions it was designed for. Teams should treat agent tool permissions as part of privileged access management, not as ordinary utility usage.

Why This Matters for Security Teams

AI agent tool calls matter because they turn a simple package or plugin invocation into a privileged execution moment. In agentic workflows, the dangerous part is often not the install itself but the first time the agent is allowed to read files, reach internal services, or fetch secrets on behalf of a task. That creates a narrow but high-impact supply-chain window where hidden logic can exfiltrate tokens, certificates, or API keys before detection.

This is why security teams should read tool permissions as an access-control problem, not just a dependency hygiene problem. NHIMG research on the Shai Hulud npm malware campaign and the State of Secrets Sprawl 2026 shows how quickly AI-adjacent infrastructure can turn into a secrets leak path, especially when CI/CD runners and internal repos are in play. Public guidance from the OWASP Non-Human Identity Top 10 also reinforces that NHI exposure is rarely a single failure; it is usually a chain of weak credential handling, overly broad tool access, and delayed revocation. In practice, many security teams encounter secrets theft only after a trusted agent workflow has already completed and the data has left the boundary.

How It Works in Practice

Agent tool calls increase supply-chain risk because the agent is not just consuming code, it is executing with context, intent, and often access to adjacent systems. A malicious dependency, wrapper, or plugin can wait until the agent triggers a specific tool path, then activate hidden logic at the exact moment the workflow is trusted. That makes runtime tool invocation a privileged event, especially when the agent can chain actions across source control, ticketing, build systems, and secret managers.

The practical defence is to treat the agent as a workload identity with tightly scoped, ephemeral authority rather than a long-lived application user. Current guidance suggests combining workload identity, short-lived credentials, and policy-as-code so that authorisation is evaluated at request time, not pre-approved once at deployment. Standards and research from the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward runtime governance, while NHIMG analysis of the Moltbook AI agent keys breach illustrates the scale of exposure when agent keys are reused or overexposed.

  • Issue JIT credentials per task, with TTL measured in minutes or hours, not days.
  • Bind each tool call to a workload identity such as SPIFFE or an OIDC-backed service identity.
  • Separate read-only context tools from write-capable tools that can move secrets or deploy code.
  • Log the exact tool, target resource, and policy decision for each agent action.

These controls tend to break down when agents inherit broad CI/CD runner permissions, because the runner becomes the blast-radius multiplier for every tool call.

Common Variations and Edge Cases

Tighter agent-tool controls often increase operational friction, requiring organisations to balance speed of automation against the cost of more frequent policy checks and credential issuance. That tradeoff is real, and best practice is still evolving for multi-agent systems and nested tool chains.

One common edge case is developer productivity tooling that silently expands from local helper to production-adjacent automation. Another is MCP or similar integration layers, where the agent can reach multiple tools through one control plane and bypass the assumptions built into traditional RBAC. NHIMG’s OWASP NHI Top 10 research and the Analysis of Claude Code Security both show that AI-assisted workflows can expose secrets faster than manual review catches them, especially when secrets are already embedded in repos, config files, or tickets. The CSA MAESTRO agentic AI threat modeling framework is useful here because it focuses on orchestration risk, but there is no universal standard for agent tool trust boundaries yet.

Where organisations still rely on static secrets, broad token reuse, or permissive plugin ecosystems, the model breaks down because a single tool call can become the entry point for lateral movement and secrets extraction.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A2Agent tool calls create runtime abuse paths covered by agentic application risks.
CSA MAESTROTRUST-03MAESTRO addresses orchestration and toolchain risk in agent workflows.
NIST AI RMFAI RMF covers governance for unpredictable autonomous system behaviour.
OWASP Non-Human Identity Top 10NHI-03Tool calls often misuse or expose non-human credentials and secrets.
NIST CSF 2.0PR.AC-4Least-privilege access is central to limiting tool-call blast radius.

Apply AI RMF governance to define ownership, monitoring, and escalation for agent actions.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org