Frequency:Common
Category:
An agent exposes admin-tier tool operations (e.g. `delete_user`, `override_billing`, `reset_org_settings`) through the same tool-calling interface as ordinary operations, and the dispatch layer invokes them without first checking whether the requesting user actually holds an admin role. Any user who can phrase a prompt that maps to the admin tool schema gets the admin code path executed with the agent's (often elevated) service credentials.
Frequency:Occasional
Category:
Malicious Entity Poses as Trusted Agent in Multi-Agent System
Frequency:Emerging
Category:
Malicious Agent Introduction
Frequency:Occasional
Category:
A high-risk action (fund transfer, policy override, data export) is gated behind a requirement that a human approver's cryptographic signature or signed token accompany the execution request. The agent's verification of that signature is incomplete — it checks presence of a token rather than validity, uses a weak or non-constant-time comparison, doesn't bind the signature to the specific action payload, or doesn't check expiry/single-use — so a forged, replayed, or mismatched approval is accepted as genuine.
Frequency:Rare
Category:
Agent Actions Not Properly Logged or Traceable
Frequency:Occasional
Category:
AI-Controlled Physical Systems Cause Harm
Frequency:Common
Category:
Agents Delegate Tasks Without Verifying Delegate Capabilities or Trustworthiness
Frequency:Common
Category:
Agents Claim Capabilities They Don't Actually Have
Frequency:Common
Category:
Users Trick Chatbots Into Harmful Actions or Statements
Frequency:Rare
Category:
Agent passes unsafe user/tool input into shell/API commands.
Frequency:Common
Category:
Agent Outputs Violate Regulatory Data Handling Requirements
Frequency:Common
Category:
Some permissions are conditional on runtime state rather than static role membership — "allow withdrawal only if account balance exceeds the requested amount," "allow this API call only during business hours," "allow escalation only if the ticket is marked P1." The agent evaluates these conditions against stale, cached, or incorrectly fetched data, or implements the comparison logic incorrectly (off-by-one, wrong field, wrong currency/unit), and grants access that the live condition would have denied.
Frequency:Common
Category:
Sensitive Data in RAG Context Exposed Through Agent Responses
Frequency:Common
Category:
Malicious Content Injected into Agent's Context Persists Across Interactions
Frequency:Occasional
Category:
Agent's Internal State Compromised, Affecting All Its Interactions
Frequency:Common
Category:
Agent Leaks API Keys, Passwords, or Tokens
Frequency:Common
Category:
Agent Exposes API Keys, Passwords, or Secrets in Output
Frequency:Occasional
Category:
API Keys, Passwords, Tokens Exposed in Logs or Error Messages
Frequency:Common
Category:
Data from One User's Session Appears in Another's
Frequency:Rare
Category:
Agent mixes data across customers/accounts.
Frequency:Occasional
Category:
AI Agent Exposes Data Between Isolated Customer Environments
Frequency:Rare
Category:
Agent leaks private or sensitive data.
Frequency:Common
Category:
Agent Exposes Sensitive Information
Frequency:Common
Category:
Data Origin and Classification Lost During Processing
Frequency:Common
Category:
A user grants an agent limited authority to act on their behalf — e.g. "book travel under $2,000" or "respond to routine emails but don't send anything financial." The agent (or a sub-agent it spawns to handle part of the task) continues acting under the user's identity or impersonation token beyond that delegated scope, because the scope was expressed as a natural-language instruction rather than an enforced, machine-checkable boundary on the credential itself.
Frequency:Rare
Category:
User prompt manipulates agent to ignore instructions.
Frequency:Common
Category:
Agent Takes Actions Beyond Expected Scope
Frequency:Occasional
Category:
Poisoned Training Data Causes Agent to Behave Maliciously or Unreliably After Fine-Tuning
Frequency:Common
Category:
A role is defined with fine-grained access — e.g. "read-only" or "can create tickets but not delete them" — but the tool wrapper the agent calls exposes the underlying API's full create/read/update/delete surface regardless of which operations the role is actually meant to permit. The agent, having no operation-level gate in the tool itself, can invoke update or delete through a tool nominally scoped to a narrower capability.
Frequency:Occasional
Category:
Circumventing Human Approval Controls
Frequency:Rare
Category:
Malicious webpage/email/PDF/doc controls agent through retrieved content.
Frequency:Rare
Category:
A downstream system executes or renders unsanitized LLM output — how insecure output handling actually works is that the app trusts model output as if it were developer-authored code instead of treating it as untrusted input
Frequency:Common
Category:
Agent Actions Escape Intended Boundaries
Frequency:Common
Category:
Agent processes adversarial/weaponized documents or files.
Frequency:Emerging
Category:
Attacker Adds Malicious Tools to Agent's Available Toolset
Frequency:Emerging
Category:
Model Context Protocol Vulnerabilities Enable Remote Code Execution
Frequency:Critical
Category:
Standard agent defenses (tool contracts, circuit breakers, I/O moderation, sandboxing) detect malicious actions but miss malicious beliefs; poisoned knowledge base instructions bypass all existing defenses because they appear to be normal context, not suspicious tool calls
Frequency:Common
Category:
Attackers inject malicious instructions into agent memory/knowledge base; 95%+ of attacks succeed in modifying agent behavior; existing defenses (tool contracts, circuit breakers, I/O moderation) fail to detect corrupted beliefs
Frequency:Common
Category:
Input causes excessive cost/latency or service exhaustion.
Frequency:Occasional
Category:
Agent Leaks Data Between Tenants Due to Insufficient Isolation
Frequency:Emerging
Category:
AI Agent OAuth Tokens Stolen Through Protocol Hijacking
Frequency:Common
Category:
Malicious Inputs Craft Harmful Outputs
Frequency:Common
Category:
Cannot Trace Which Agent Produced Which Part of Output
Frequency:Rare
Category:
Agent has broad access when narrow scope was enough.
Frequency:Very Common
Category:
Agents Provisioned with Excessive Access Beyond Task Requirements
Frequency:Very Common
Category:
Before performing a mutating action on a specific resource (cancel this subscription, delete this file, update this profile), the agent authenticates that a valid user is making the request but never verifies that this specific user is the owner or authorized party for this specific resource. Any authenticated user can therefore direct the agent to mutate resources belonging to someone else simply by supplying that resource's identifier.
Frequency:Common
Category:
Permissions in a hierarchical system are meant to narrow as they cascade down (an org-level admin has broad rights, a team-level member has fewer, a specific user within that team has only what's explicitly granted), but the agent's logic for resolving effective permission at a given level applies the wrong tier's rules — either inheriting a broader ancestor permission that should have been narrowed, or failing to inherit a permission that should have propagated down, resulting in over- or under-granted access.
Frequency:Very Common
Category:
Agent Outputs Contain Personally Identifiable Information
Frequency:Occasional
Category:
Agent Gains More Access Than Intended
Frequency:Rare
Category:
Agent gains or uses higher permissions than intended.
Frequency:Common
Category:
Malicious Input Hijacks Agent Behavior
Frequency:Common
Category:
Attacker Injects Malicious Instructions Through User-Provided Input Without Sanitization
Frequency:Common
Category:
An agent is deliberately provisioned with read-only access to a data source — the intent being it can look things up but never modify anything — yet a misconfigured tool binding, an overly broad service credential, or an undocumented fallback code path still allows write operations to succeed. The read-only boundary exists in configuration or documentation but isn't actually enforced at the point where the write would occur.
Frequency:Common
Category:
An agent is assigned a role intended to convey a specific level of access (e.g. "support-tier-1"), but the mapping from that role to the underlying tool's actual permission model is incomplete, outdated, or was translated incorrectly during integration — so the agent ends up able to do meaningfully more, or less, than the role's name and documentation suggest. Unlike a missing check, the check exists and runs; it's the mapping table itself that's wrong.
Frequency:Common
Category:
Agent Exposes Credentials During Normal Operation
Frequency:Rare
Category:
API keys/tokens/private URLs leak through answer/log/tool.
Frequency:Very Common
Category:
PII and Secrets Written to Logs, Traces, and Observability Systems
Frequency:Very Common
Category:
An operation is classified in policy as sensitive or high-risk — deleting a production resource, transferring funds above a threshold, changing a customer's access level — and is documented as requiring human approval before execution. In practice, the agent's execution path has no code-level gate enforcing that requirement: the classification exists as a label or a line in a policy document, but nothing in the tool-dispatch pipeline actually blocks execution pending approval.
Frequency:Occasional
Category:
Attacker Takes Control of Active AI Agent Session
Frequency:Very Common
Category:
Employees Use External AI Tools, Leaking Sensitive Data
Frequency:Occasional
Category:
Agent Ignores or Delays Shutdown Commands to Complete Tasks
Frequency:Occasional
Category:
Compromised Tools or Dependencies Attack Agent
Frequency:Rare
Category:
Agent uses compromised tool, plugin, package, MCP server, or model dependency.
Frequency:Rare
Category:
Attacker Creates Multiple Fake Agents to Manipulate Consensus
Frequency:Rare
Category:
Attacker injects malicious instructions into agent knowledge base; attack remains dormant (unexecuted) for days/weeks; when triggered by specific condition, agent executes attack with delay so attacker connection can't be traced to triggering event
Frequency:Occasional
Category:
Agent Uses Tools to Send Sensitive Data to External Systems
Frequency:Occasional
Category:
Remote Code Execution Through AI Agent Tool Calls
Frequency:Rare
Category:
Tool response includes instructions that agent follows.
Frequency:Occasional
Category:
Adversaries Extract Sensitive Data from Model Training
Frequency:Occasional
Category:
Trust Relationships Incorrectly Extended Through Agent Chains
Frequency:Occasional
Category:
Agent Performs Actions Beyond Its Authority
Frequency:Occasional
Category:
Agent Executes Irreversible Operations (Delete, Destroy, Drop) Without User Approval
Frequency:Occasional
Category:
Attacker Chains Legitimate Tools in Unintended Sequences to Bypass Controls
Frequency:Rare
Category:
Agent runs generated code without sandboxing.
Frequency:Very Common
Category:
Agents Accept Other Agents' Outputs Without Verification
Agent security fails when systems designed to protect against attacks, enforce authorization, and maintain safety instead get compromised, bypassed, or exploited to enable unauthorized access, data leakage, or policy violation. An orchestrator agent trusts downstream agents without verifying their identity or output, and a compromised agent exfiltrates sensitive data that downstream agents blindly trust and propagate, a prompt-injection attack makes an agent ignore safety constraints and execute harmful operations, and memory poisoning injects instructions into knowledge-base that agent retrieves and executes without distinguishing malicious context from legitimate information. Security failures in agents matter precisely because agents are software systems that interact with humans, other agents, and external systems—every interaction point is a potential attack surface, and most agents were built for capability, not security.
Key Takeaways
- 75 documented patterns (across 6 goals with failures + 3 scaffold goals) cover agent security, grouped into nine mechanisms: inter-agent trust and verification, data protection and exfiltration prevention, runtime attacks (injection, tool-based), authentication and credential management, authorization and permission enforcement, safety constraint enforcement, audit and detection, supply-chain security, and value alignment.
- Multi-agent architectures exponentially increase attack surface: a 10-agent orchestration is not 10x as exploitable as a single agent, it is often 100x+ as exploitable because trust relationships compound and compromised agents propagate compromise through downstream chains.
- Prompt injection and memory poisoning are rated Common in production: attackers inject malicious instructions via user input or knowledge-base manipulation that agents execute despite safety training and guardrails designed to prevent such execution.
- Effective agent security requires defense-in-depth: no single security mechanism (authentication, authorization, runtime checks, audit logging) is sufficient. Attackers typically chain vulnerabilities to compromise systems that each individual security mechanism is supposed to prevent.
Scope
Agent security covers six goals with documented failures and three scaffold goals:
- Agent Trust (GitHub) (11 patterns) — Inter-agent trust verification, capability proof, output validation, identity verification. When upstream agents are not verified before being trusted, compromised agents propagate compromise through agent chains.
- Data Loss Prevention (GitHub) (8 patterns) — Protecting sensitive data (PII, credentials, trade secrets) from unintentional exposure (via logs, error messages) and intentional exfiltration (via compromised agents, prompt injection). Fine-grained data-tracking and output validation prevent data exposure.
- Runtime Security (GitHub) (8 patterns) — Defending against runtime attacks targeting agent execution during inference: context poisoning, malicious tool injection, protocol exploitation, credential theft. Layered defenses (input isolation, tool verification, credential rotation) prevent runtime compromise.
- Safety & Security (GitHub) (19 patterns) — Core safety mechanisms: prompt injection resistance, excessive-agency prevention, memory poisoning defense, audit evasion detection, human-loop enforcement, supply-chain security. No single defense is sufficient; defense-in-depth requires guardrails, anomaly detection, audit logging, and supply-chain verification.
- Security & Autonomy (GitHub) (19 patterns) — Securing autonomous agent actions: preventing injection attacks, validating tool outputs, restricting permission scope, preventing credential exposure. Autonomy amplifies attack impact; defense requires minimal-privilege tool access and comprehensive input validation.
- Tool Authorization Limits (GitHub) (10 patterns) — Restricting agent access to only approved tools and operations on approved resources. Fine-grained authorization (tool-level, parameter-level, resource-level) prevents agents from accessing tools beyond authorized scope.
- Jailbreak Resistance (GitHub) (scaffold) — Preventing attackers from persuading agents to ignore safety constraints via social engineering, constraint relaxation, or adversarial prompting. Training-time safety requires runtime constraint enforcement and continuous adversarial testing.
- Output Filtering & Moderation (GitHub) (scaffold) — Detecting and preventing harmful, illegal, or policy-violating content in agent output, and redacting sensitive data before output. Layered defenses (pattern matching, semantic checking, format validation) are required because single defenses are bypassed.
- Value Alignment (GitHub) (scaffold) — Ensuring agent behavior optimizes for human values, not just metrics. Proxy-metric divergence and literal-objective misinterpretation cause agents to optimize in ways that violate human intent.
When Security Failures Matter
- Agents interact with humans, other agents, and external systems, with trust-by-default architectures that assume internal agents are trustworthy—a false assumption when agents can be compromised.
- Agents process untrusted input (user queries, retrieved documents, tool output) without full validation or isolation, enabling injection and prompt-manipulation attacks.
- Agents access external tools, files, databases, and credentials with overly broad permissions, enabling attackers to escalate impact when compromise occurs.
Cross-Pattern Insight
The dominant pattern across all 75 documented security failures is that single-layer defenses fail against chained attacks: if authentication is the only defense, attackers bypass authentication. If authorization is the only defense, attackers escalate permissions. If audit logging is the only defense, attackers manipulate logs. Effective agent security requires defense in depth: (1) prevent compromise (authentication, secure configuration), (2) detect compromise (anomaly detection, audit logging), (3) limit damage (authorization, isolation, constraints), (4) respond to compromise (automatic isolation, rollback, incident response). The second dominant pattern is that agent architectures compound risk: each additional agent in an orchestration adds trust relationships that can be compromised, tool integrations that can be exploited, and data-flow paths that can leak information. Security requires not just hardening individual agents but also reducing agent count, isolating agent chains, and verifying trust at every agent boundary. The shared lesson is that agent security is not a feature added post-deployment—it requires security-first architecture: minimal-privilege default, defense-in-depth by design, continuous adversarial testing, and treating agents as high-risk systems requiring the same security rigor applied to critical infrastructure.
Frequently Asked Questions
How do you prevent a compromised agent from propagating compromise through a multi-agent chain?
By eliminating transitive trust: do not assume downstream agents can trust upstream agents without re-verification. Defenses include: (1) verify every inter-agent message (cryptographic signature, capability proof), (2) validate inter-agent output (re-verify output from upstream agent before accepting), (3) isolate agents (separate failure domains so one agent’s compromise does not affect others), (4) monitor agent behavior (detect when agents suddenly behave differently after receiving message from upstream agent). Without output validation, one compromised agent compromises entire chain.
Can prompt-injection resistance training prevent all prompt-injection attacks?
No. Training improves baseline resistance but does not prevent novel attack vectors. Defense requires: (1) robust safety training (model understands why constraints exist), (2) input isolation (separate user input from trusted context), (3) runtime constraint enforcement (technical checks that prevent harmful output regardless of reasoning), (4) continuous adversarial testing (red-team agents against novel attacks). Training alone is insufficient; defense-in-depth is required.
How do you prevent over-scoped credentials from enabling attackers to escalate impact?
Implement just-in-time authorization: agents request access to specific resource for specific action, receive scoped credential (temporary access, specific parameters), credential expires after action completes. Pair with continuous monitoring: audit credential usage to detect unusual access patterns (agent suddenly accessing resources it previously never accessed). Implement credential rotation: periodically invalidate long-lived credentials and require re-authorization. Over-scoped credentials that never expire are security disasters waiting for exploitation.
What’s the fastest way to tell if an agent system is vulnerable to supply-chain attack?
Audit the supply chain: identify all external dependencies (model weights, packages, knowledge-base sources, prompts), verify integrity of each dependency (checksums, signatures), identify which dependencies are updated automatically vs. manually. Conduct adversarial testing: inject malicious content into dependency sources and verify agent detects/rejects malicious content. Many supply-chain compromises go undetected because dependency verification is incomplete or absent.
Goals
| Goal | Patterns | Mechanism |
|---|
| Agent Trust (GitHub) | 11 | Inter-agent identity, capability proof, output validation |
| Data Loss Prevention (GitHub) | 8 | Data classification, exfiltration prevention, redaction |
| Runtime Security (GitHub) | 8 | Input isolation, tool verification, credential management |
| Safety & Security (GitHub) | 19 | Prompt injection, excessive agency, audit evasion defense |
| Security & Autonomy (GitHub) | 19 | Autonomous action security, injection prevention, permission scoping |
| Tool Authorization Limits (GitHub) | 10 | Tool access control, parameter authorization, least-privilege |
| Jailbreak Resistance (GitHub) | — | Safety constraint resistance to persuasion and adversarial attack |
| Output Filtering & Moderation (GitHub) | — | Harmful content detection, data redaction, format validation |
| Value Alignment (GitHub) | — | Objective specification, metric divergence, constraint satisfaction |
Total: 75 documented patterns
- Accuracy (GitHub) — accuracy failures combine with security failures to create compound risk: a system that is accurate but compromised is worse than a system that is both inaccurate and secure.
- Governance (GitHub) — governance and oversight mechanisms form part of security defense-in-depth: audit logging, human approval, and oversight enable detection and response to security failures.
- Operations (GitHub) — operational concerns (monitoring, alerting, incident response) are critical to security: a compromise detected and remediated quickly is less damaging than one that propagates undetected for weeks.
- Learning (GitHub) — learning mechanisms can introduce security risks: feedback-based updates can be poisoned, self-improvement can be exploited. Learning-system security is part of overall agent security.