Defend against AI-enabled attacks and unsafe agents
Recognize AI-assisted abuse and secure agents that read untrusted content and use tools.
- Distinguish observed attacker uses of AI from speculation
- Explain prompt injection, data exposure and excessive agency
- Choose permission, approval and monitoring controls for an AI agent
Attackers can use AI to write convincing messages, translate lures, summarize stolen material, adapt scripts and help coordinate tasks. This often scales familiar attacks rather than creating a new kind of vulnerability. In a 2025 case study, OpenAI reported banned accounts that used AI for multilingual phishing text and scripting support; its investigation did not find a novel offensive capability in that case.
Voice and image synthesis can also impersonate a trusted person. CISA advises verifying unexpected requests through a known channel. A familiar voice, polished writing or a video is no longer enough to authorize a payment, reset or data transfer.
A reported AI-orchestrated intrusion campaign
Anthropic reported disrupting a campaign in which an actor used Claude Code to automate large parts of reconnaissance, exploitation and post-exploitation across multiple targets. The account and attribution come from Anthropic’s own investigation.
- 01A human operator selected targets and set goals.
- 02The actor steered an AI agent through many tactical tasks.
- 03The campaign included attempts to find flaws and move through networks.
- 04Anthropic detected the activity, disabled accounts and notified affected parties.
The new attack surface: AI agents
An AI agent may read webpages, tickets, emails or repository files and call tools. Those sources are data from someone else, even when they contain sentences that look like commands. Indirect prompt injection puts instructions inside that lower-trust content to redirect the agent. OWASP explains the mechanism.
The damage depends on what the agent is allowed to do. An assistant that only reads a ticket can make a bad summary; one that can read secrets and send messages may leak them. OWASP calls broad tools, broad permissions or unchecked autonomy excessive agency. Other risks include sensitive data disclosure, poisoned source material, unsafe use of generated code and vulnerable model or tool dependencies. These overlap with familiar access-control and supply-chain problems.
Try it
Up to 15 XPSpot the agent trap
An assistant is asked to summarize a support ticket. It can read tickets and draft replies. The ticket text below is untrusted. Click the parts of the setup that could redirect the agent or increase the damage.
Click every suspicious section. There are 3.
A safer design separates the user’s instruction from retrieved content, gives the agent read-only, task-scoped tools by default, applies normal authorization to every tool call, validates outputs before they reach other systems, and requires review for sending, deleting or changing data. Log tool calls and test with adversarial documents. A warning in the prompt alone is not a permission boundary. OWASP’s excessive-agency guidance illustrates the same read-versus-send distinction.
This area changes quickly. Keep model and agent evaluations current, retest after adding tools or changing permissions, and examine both successful attacks and false alarms. NIST’s Cyber AI Profile is still a preliminary draft; use it as a planning aid, not a promise that one architecture is safe.
Key takeaways
Observed attacker uses include phishing text, scripting assistance and more automated intrusion workflows; verify each reported claim and its source.
Prompt injection can turn untrusted documents into apparent instructions, especially when agents can call tools.
Constrain tool permissions, require approval for consequential actions, log activity and retest as agents change.
Lesson quiz
6 questions · pass with 5 correct · up to 50 XP
Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.
Questions about this lesson
Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.
Loading posts…