What Matters
AI agents are dangerous when untrusted information can influence privileged actions. The core defense is not a better system prompt. It is least-privilege tools, isolated secrets, authenticated agent messages, bounded memory, deterministic policy checks, transaction simulation, human approval for high-impact actions and tested recovery.
DN Evidence Block
Reviewed: 22 November 2026. Evidence base: OWASP Agentic AI threats and mitigations, OWASP Agentic AI Core Security Risks, NIST AI Risk Management Framework and DN research on API keys, wallet permissions and kill-switch reliability.
Boundary: The attack patterns below are defensive categories. They do not provide instructions for exploitation and do not replace a security assessment of a specific system.
Twelve Agent Attack Patterns and the Primary Control
| Attack pattern | What goes wrong | Typical consequence | Primary control |
|---|---|---|---|
| Prompt injection | Untrusted content is interpreted as authority | Data disclosure or unwanted tool calls | Instruction-data separation and tool policy |
| Tool misuse | A legitimate tool is used outside intended purpose | Unauthorized transfer, deletion or change | Function-level allowlists and limits |
| Access-control failure | Agent inherits broader credentials than the task needs | Large blast radius | Least privilege and scoped tokens |
| Memory poisoning | False context persists across sessions | Repeated bad decisions | Provenance, review and memory TTL |
| Identity impersonation | A fake agent or endpoint mimics a trusted one | Credential theft or wrong counterparty | Signed identity and endpoint verification |
| Goal manipulation | The objective is altered through context or delegation | Policy drift | Immutable task contract and checkpoints |
| Multi-agent exploitation | One agent persuades another to use its authority | Authority laundering | Authenticated messages and non-transferable permissions |
| Supply-chain compromise | Model, library, connector or tool is compromised | Hidden malicious behavior | Pinned dependencies, attestations and isolation |
| Secret exfiltration | Keys appear in prompts, logs or responses | Account takeover | External secret store and output filtering |
| Critical-system interaction | Agent writes to finance, identity or infrastructure systems | Irreversible harm | Simulation, dual control and transaction caps |
| Untraceability | Actions cannot be reconstructed | No accountability or recovery | Immutable intent-to-outcome logs |
| Cascading failure | One bad output triggers other agents or systems | Rapid systemic damage | Budgets, circuit breakers and staged execution |
1. Prompt Injection Is a Control-Plane Problem
An agent may retrieve a webpage, email, PDF, database row or tool response containing text that tells it to ignore prior rules. The content is data, but the model may treat it as instruction.
Defend by separating trusted policy from retrieved content, labeling provenance, using constrained schemas, validating proposed tool calls and blocking high-impact actions unless an independent policy engine approves them.
2. Tool Misuse Turns Language Errors Into Real Actions
A model hallucination is inconvenient when it produces text. It becomes an incident when it can send money, change permissions, delete records or publish content.
Expose narrow functions instead of general shells. A function such as `create_refund_draft(order_id)` is safer than unrestricted database or browser access. Enforce amount, recipient and state rules outside the model.
3. Access Control Must Follow the Task
Agents often inherit a developer’s or employee’s broad API key because it is convenient. That makes every downstream weakness more severe.
Create task-specific service accounts, use short-lived tokens, restrict network origin, separate read and write authority and remove withdrawal or administrative permissions unless they are essential.
4. Memory Can Become a Persistence Layer for Attacks
Persistent memory may store customer preferences, task history or approved procedures. If untrusted content can write to it, an attacker can plant instructions that survive after the original session.
Store facts with source, timestamp, scope and confidence. Separate user memory from policy. Apply expiry and human review to changes that influence identity, payments or security.
5. Identity Impersonation Is an Agent-Native Phishing Risk
Agents discover services through URLs, registries, Agent Cards and messages. A spoofed endpoint or transferred identity can redirect actions to the wrong tool or wallet.
Verify domain control, certificates, agent identifiers and signed wallet bindings. Do not trust display names or logos. Re-check when endpoints, owners or versions change.
6. Multi-Agent Systems Can Launder Authority
A low-authority researcher may persuade a high-authority executor to perform an action. If agents can freely delegate or quote each other, the executor may mistake an untrusted recommendation for an approved command.
Give each agent independent credentials and a narrow role. Signed messages should include origin, purpose, expiry and requested action. Authority should not be transferable through natural-language conversation.
7. Supply Chains Include Models and Connectors
Agent supply chains include model providers, SDKs, MCP servers, browser extensions, plugins, data sources and deployment images. A compromise in any component can alter tool behavior or leak data.
Pin versions, verify packages, minimize dependencies, isolate third-party tools, monitor changes and maintain a fallback path. A vendor’s security claim should be supported by evidence and contract terms.
8. Secret Exfiltration Must Be Assumed Possible
Do not put secrets in system prompts, fine-tuning data, long-term memory or logs. Use a secret broker that provides the credential only to the tool execution environment.
Filter outputs, rotate keys, monitor unusual use and make revocation fast. A private key that appears once in a model context should be treated as compromised.
9. Critical-System Actions Need Independent Gates
Payments, trades, account recovery, identity changes and production deployment require deterministic checks. The model can explain the action but should not decide whether its own limit applies.
Use simulation, dual control, value-at-risk thresholds, allowlists and human approval. The system should fail closed when state is uncertain.
10. Untraceable Agents Cannot Be Audited
Keep the task request, source data, policy version, model and tool versions, proposed action, approval, execution receipt and resulting state. Logs should be tamper-evident and protect sensitive data.
Reasoning traces are not a substitute for evidence. The audit record should focus on observable inputs, decisions, rules and outcomes.
11. Cascading Failures Require Budgets
An agent that retries a failing tool can exhaust budgets or create duplicate actions. Multi-agent loops can magnify the problem.
Set hard limits on calls, cost, duration, queue depth and transaction count. Use idempotency keys, exponential backoff, reconciliation and a global circuit breaker.
12. Recovery Must Be Designed Before Launch
Incident response should identify who can stop the agent, revoke keys, cancel jobs, protect customers, preserve evidence and restore service.
Test the process. A kill switch that exists only in documentation is not a control.
DN Rule
Assume every external input can be hostile and every tool can fail. Safety comes from limiting what the agent can do after it is manipulated.
DN Agent Attack-Surface Check
Score the blast radius of one deployed agent.
This is a design-screening tool, not a penetration test.
Worked Example
A support agent reads customer emails and can issue refunds. A malicious email tells it to ignore policy and refund a large order to a new wallet. The safe architecture classifies the email as untrusted content, restricts the agent to drafting a refund, verifies the order and original payment rail, applies a maximum amount and requires a human approver. The email cannot grant new authority.
Methodology and Limitations
DN mapped OWASP agentic risk categories to financial-agent controls: authority, identity, memory, secrets, supply chain, evidence, budgets and recovery. The list is not exhaustive and should be updated as attack techniques and standards evolve.
Frequently Asked Questions
What is the biggest security risk for AI agents?
Excessive authority is the most important risk multiplier. Prompt injection or a bad tool response becomes far more damaging when the agent can access secrets, move money, delete data or alter production systems without independent limits.
Can prompt injection be completely prevented?
No. Treat retrieved content and tool output as untrusted, separate instructions from data, restrict tools, validate actions and require independent approval for high-impact operations.
What is memory poisoning?
Memory poisoning is the insertion of false or malicious information into persistent context so the agent later treats it as trusted history or policy.
Should an agent have access to API keys?
Only through a secrets manager or isolated execution layer, with the minimum permission, short lifetime, IP or environment restrictions and rotation. Secrets should not appear in prompts or logs.
How do you test an agent kill switch?
Trigger it in a controlled environment and verify that tool calls stop, active sessions expire, keys are revoked, queued work is cancelled and the system records the shutdown.
Primary Sources
- OWASP Agentic AI Threats and Mitigations
- OWASP Agentic AI Core Security Risks
- NIST AI Risk Management Framework
- DN Exchange API Security for AI Bots
- DN AI Agent Kill-Switch Reliability Benchmark
Editorial disclosure: no organization cited paid for inclusion or conclusions.




