MITRE ATLAS 2026.10 · AML.T0098 · Critical severity

AI Agent Tool Credential Harvesting

Adversaries abuse over-privileged AI agent tools, local shells, or MCP integrations to read API tokens, OAuth refresh keys, cloud metadata credentials, or SSH identities from the host environment. Because agents frequently inherit the parent process environment or IDE keychain, an indirect prompt injection or poisoned tool description can convert routine file or command tools into credential harvesters.

Technique dossier overview

Category
Agent and tool trust
Severity
Critical
Attack surface
Tool-Using Agents & MCP · LLM / Prompt Layer · Inference API & Hosting
Framework maturity
Demonstrated
Platforms
Agentic AI
Tactics
Credential Access
Catalog entry modified

Open AML.T0098 in Interactive Technique Workbench

How the mechanism works

  1. An agent runtime spawns local tool subprocesses or MCP servers with broad access to process environment variables, ~/.aws, ~/.ssh, IDE credential files, or cloud instance metadata endpoints (169.254.169.254).
  2. Untrusted input from a repository issue, pull request, remote MCP tool manifest, or web page steers the model to invoke file-read, grep, or shell-inspection tools against secret-bearing paths.
  3. Harvested tokens are folded into tool parameters, commit comments, outbound HTTP calls, or rendered response links where an external receiver collects them.

Detection & telemetry signals

Architectural defensive countermeasures

Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)

OWASP LLM Top 10 (2025)
OWASP rationale
Harvesting secrets via agent tools pairs Sensitive Information Disclosure (LLM02) with Excessive Agency (LLM06) when Prompt Injection (LLM01) directs tool calls against credentialed environments.
NIST AI RMF functions
NIST AI RMF guidance
Define strict credential-isolation boundaries under GOVERN for agent runtimes, and enforce runtime secret brokering, IMDS blocks, and scoped ephemeral tokens under MANAGE.

Mapped defensive controls

Documented incidents & exercises (8)

Source citation records

Common questions

What is AI Agent Tool Credential Harvesting (AML.T0098)?
Adversaries abuse over-privileged AI agent tools, local shells, or MCP integrations to read API tokens, OAuth refresh keys, cloud metadata credentials, or SSH identities from the host environment. Because agents frequently inherit the parent process environment or IDE keychain, an indirect prompt injection or poisoned tool description can convert routine file or command tools into credential harvesters.
How do you mitigate AI Agent Tool Credential Harvesting?
MITRE ATLAS maps 5 mitigations to AML.T0098: Encrypt Sensitive Information, Manage AI Agent Service Access, Manage User-Delegated AI Agent Access, Enforce Access Controls for AI Agent Tools, and Segmentation of AI Agent Components. Inject credentials through a narrow host-side proxy or broker rather than exposing raw environment variables or keychain files inside the agent execution container.