T-3002ObservedActive

Environment Variable Leakage

Access environment variables containing API keys, tokens, and connection strings

Tactic

Credential Harvest · Stage 3

Extract API keys, tokens, and credentials from agent context and connected services

Attack class

NEMO-CRED-LEAK

Unintended exposure of credentials through environment variables, logs, or error messages

Evidence grade
Observed

Confirmed in real-world production systems or internet-wide exposure assessments.

DVAA validation

env var leakage

Reproductions in Damn Vulnerable AI Agent, the OpenA2A intentionally-broken agent for kill-chain validation.

Honeypot

AgentPwn coverage

Live
data-exfiltrationagentpwn.com/learn ↗

An AgentPwn trap page produces a payload tagged with this technique class. Following the AgentPwn taxonomy of trap pages shows what an agent encounters.

The credential-probe tier asks the agent to dump environment variables and keys.

Detect

Detection · HackMyAgent

Live4 live · 0 queued
ENV-001ENV-002ENV-003ENV-004
npx hackmyagent secure --ciLive = implemented in hackmyagent; queued = declared
Defend

Defense · OASB controls

Live5 live · 0 queued
Live = documented at oasb.ai; queued = declared
Reference

How to cite

AI Agent Threat Matrix T-3002 (Environment Variable Leakage). OpenA2A, 2026. https://threats.opena2a.org/techniques/T-3002