Agentic AI Security
Agentic AI systems — that browse, code, email, trade, and manage infrastructure — represent the most dangerous new attack surface in enterprise security. This platform covers the full attack taxonomy and defence architecture for agents, from tool call hijacking to multi-agent trust collapse.
Agentic Threat Landscape
Full attack taxonomy: indirect injection, tool misuse, memory attacks, autonomous action exploitation — with real-world cases.
Tool Call Hijacking Lab
Interactive lab covering tool call injection patterns, MCP server attacks, excessive agency exploitation, and OWASP LLM08 controls.
Memory Poisoning
Short-term context poisoning, long-term vector store poisoning, RAG memory attacks, and cross-session persistent backdoors in agents.
Multi-Agent Trust Attacks
A2A protocol security, orchestrator compromise, sub-agent impersonation, trust boundary collapse in multi-agent pipelines.
Secure Agent Builder
Architecture checklist, threat model calculator, and code patterns for building agents that are resistant to the attacks covered in this module.
Agentic AI Threat Landscape
Agentic AI attacks are categorically different from LLM vulnerabilities — they have real-world consequences. A compromised chatbot is annoying; a compromised agent with email + calendar + file + payment access is catastrophic.
| Attack Class | Mechanism | OWASP Mapping | Severity |
|---|---|---|---|
| Indirect Prompt Injection | Malicious instructions in web content, docs, emails processed by agent | LLM01 (indirect) | Critical |
| Tool Call Hijacking | Injected instructions cause agent to call tools with attacker-controlled parameters | LLM08 Excessive Agency | Critical |
| Memory Poisoning | Inject malicious content into agent memory (short or long-term) for persistent control | LLM01 + LLM08 | Critical |
| Multi-Agent Trust Collapse | Compromise one agent in pipeline to escalate to orchestrator or other agents | LLM08 + LLM07 | Critical |
| Excessive Permission Exploitation | Agent granted write + send + execute when only read needed — blast radius amplification | LLM08 | High |
| Credential Harvesting via Agent | Agent with filesystem access reads .env, SSH keys, browser credentials via injection | LLM06 + LLM08 | High |
| Agent Output Manipulation | Compromise agent to output attacker-desired information to users or downstream systems | LLM02 | Medium |
Standard LLM chatbots can only output text — harmful output is bad but limited. Agents amplify the blast radius: the same prompt injection that would produce harmful text in a chatbot can trigger an agent to send emails, execute code, delete files, make API calls, transfer funds, or post to social media. The agent cannot tell the difference between a task instruction and injected content from external sources. This is a fundamental architectural challenge — not a model alignment problem that will be fixed by better RLHF.
| Incident | Agent Type | Attack Vector | Impact |
|---|---|---|---|
| Microsoft 365 Copilot data exfiltration | Email/productivity agent | Indirect injection via malicious email body | SharePoint data exfiltration via allowed email forward |
| Cursor AI coding agent .env read | Code development agent | Injected instruction in repository README | Environment variables (API keys) exposed in agent output |
| Slack AI indirect injection | Workspace AI assistant | Injected instructions in Slack message from attacker | Attacker extracted private channel messages via injected data exfil command |
| Auto-GPT web browsing attack | Autonomous research agent | Injected HTML on attacker-controlled web page | Agent changed task goal mid-execution to attacker objective |
| LLM-based SOAR playbook hijack | Security automation agent | Malicious IOC in threat feed processed by agent | SOAR action taken on attacker-controlled parameter |
Tool Call Hijacking Lab
Tools are how agents take real-world actions. Tool call hijacking abuses this — an attacker compromises the agent's instruction flow to call tools with attacker-controlled parameters, executing unauthorized actions with the agent's full permissions.
| Control | Implementation | Mitigates |
|---|---|---|
| MCP server allowlist | Only pre-approved, verified MCP servers in production | Malicious MCP server installation |
| Tool description validation | Review all tool descriptions for embedded instructions before agent use | Tool description injection |
| MCP output sandboxing | Treat all MCP tool output as untrusted — do not pass raw output back to agent context without filtering | Cross-MCP injection |
| Tool call audit logging | Log all tool calls with full parameters — SIEM alerting on anomalous patterns | All tool hijacking variants |
| Scoped MCP permissions | Each MCP server has only the permissions it needs — no broad filesystem or network access | Excessive agency exploitation |
Agent Memory Poisoning
Agent memory is a new attack surface with no equivalent in traditional software. Poisoned memory persists — in vector stores, conversation history, or external databases — creating long-lived backdoors that survive individual session resets.
| Memory Type | Storage | Persistence | Attack Risk |
|---|---|---|---|
| In-Context (Short-term) | LLM context window (tokens) | Current session only | High — direct injection, full control if poisoned |
| Conversation History | External DB / chat history store | Across sessions | Critical — one-time poisoning affects all future sessions |
| Semantic Memory (Vector) | Vector DB (Pinecone, Weaviate, pgvector) | Long-term | Critical — RAG poisoning affects all queries matching poisoned embedding |
| Episodic Memory | Summary store, episode DB | Long-term | High — poisoned episode affects future task planning |
| Procedural Memory | Tool use history, action log | Long-term | Medium — affects tool selection decisions |
| Control | What It Prevents |
|---|---|
| Document contribution access control | Prevents unauthorized document injection — only trusted sources write to KB |
| Content validation on ingestion | Scan documents for injection patterns before adding to vector store |
| Retrieved document trust labelling | Mark retrieved content as "untrusted external" — agent applies lower trust than system instructions |
| RAG output citation logging | Log which documents influenced each agent response — enables poisoning investigation |
| Adversarial retrieval testing | Periodically test whether injected documents surface in key queries |
Multi-Agent Trust & Protocol Security
Multi-agent systems where agents communicate, delegate tasks, and share context create trust boundary challenges that are fundamentally new. A compromised sub-agent can pivot to the orchestrator; a rogue orchestrator can command all sub-agents.
| Architecture Pattern | Trust Risk | Severity |
|---|---|---|
| Orchestrator + Sub-agents | Compromised orchestrator has god-mode over all sub-agents | Critical |
| Peer-to-peer agent mesh | Any compromised agent can inject instructions to all connected agents | Critical |
| Human → Orchestrator → Sub-agents | Human approval only at top level — sub-agent actions bypass human review | High |
| Agent with external tool access | External tool output is untrusted but treated as agent-trusted context | High |
| Shared memory between agents | Memory poisoning by one agent affects all agents sharing the store | High |
| Protocol | Current Security Gap | Recommended Mitigation |
|---|---|---|
| MCP (Anthropic) | Tool descriptions are trusted as instructions — no separation of data and instruction content | Validate tool descriptions, pin to known-good versions, run MCP servers in sandboxes |
| A2A (Google) | Agent identity not cryptographically verified — any agent can claim any role | Implement mTLS between agents, use JWT with short-lived tokens for inter-agent auth |
| LangChain/LangGraph | Shared state graph can be modified by any node — no write access control | Implement node-level access control, validate state transitions, immutable audit log |
| AutoGen | Agent conversation is flat — all agents see all messages, no compartmentalization | Implement message routing with access control, separate agent namespaces |
| CrewAI | Task delegation can chain without human review at each delegation step | Require human approval at delegation boundaries for sensitive task classes |
Secure Agent Architecture Builder
Security-first architecture checklist and code patterns for building agentic AI systems that are resistant to the attacks covered in this module. 40+ security controls organized by architecture layer.