AI security
By the end of this module you will be able to:
- Keep the four AI security problems distinct: securing AI systems, AI-enabled attacks, AI for defence, and governing AI
- Explain prompt injection and why no deterministic fix exists, so you can judge a vendor claim to have solved it
- Assess an AI agent deployment for excessive agency and tool poisoning
- Describe AI-enabled attack tradecraft with evidence rather than hype
- Name the governance frameworks that apply to AI and what each is for
GTG-1002: agents ran most of an espionage campaign, and a defender caught it
In November 2025 Anthropic reported that it had detected and disrupted an espionage campaign, tracked as GTG-1002, in which an attacker used an AI system as more than an assistant. The operator directed AI agents to carry out reconnaissance, find and test weaknesses, harvest credentials and move through target networks. Anthropic assessed that the agents performed roughly 80 to 90 percent of the operational work, with the human stepping in only at a small number of decision points. Around thirty organisations across technology, finance, chemicals and government were targeted, and a small number of intrusions succeeded before the activity was cut off.
The lesson is about unit economics, not about a new exploit. For years the cost of a skilled operator limited how many targets a crew could work in parallel and forced a trade between volume and quality. An operation that runs largely on agents loosens that limit: the same crew can pursue more targets at once without the usual drop in tradecraft. The same report shows the other half of the picture, because it was a defender using its own tooling that spotted the pattern and shut it down. AI changed what both sides can do, which is exactly why this module keeps the attacker and defender questions apart.
1. Four problems that must not blur
Most bad AI security advice comes from answering one question with a control that belongs to another. There are four separate problems, and a strong answer to one is often irrelevant to the rest. The first is securing AI systems: the model, its data pipelines and the tools it can call are software, and they have their own weaknesses. The second is AI-enabled attacks: how attackers use AI to work faster and more convincingly. The third is AI for defence: where AI genuinely helps a security team, and where it quietly makes things worse. The fourth is governing AI: the frameworks and obligations that say who is accountable for an AI system and how its risk is managed.
Keeping the four apart is a practical habit, not an academic tidiness. A board that has bought a content filter for its chatbot has addressed a sliver of the first problem and nothing of the other three. A team that has trained staff to spot AI-written phishing has touched the second problem but has not asked whether its own AI tools can be turned against it. The figure below sets out the four with their canonical framework and one characteristic failure so that you can place any AI security claim you meet into the box it actually belongs in.
2. Securing AI systems
The OWASP Top 10 for Large Language Model Applications, updated for 2025, is the reference list for the weaknesses of AI applications. It runs from LLM01 Prompt Injection through to LLM10 Unbounded Consumption, and it now names System Prompt Leakage and Vector and Embedding Weaknesses as first-class risks. The list is worth reading in full, but one entry governs how you should think about the rest.
is an attack where crafted input overrides the developer's instructions and makes the model behave as the attacker intends. It works because instructions and data travel to the model on the same channel: the model reads a system prompt, a user message and any content it has been given as one stream of text, and it has no reliable way to know which words are commands and which are merely quoted. Direct prompt injection is delivered by whoever is typing to the model. is more dangerous: the hostile instruction rides in on content the application fetches and trusts, such as a web page, an email or a document. Any system that uses to ground its answers in a corpus has therefore turned that corpus into an input the attacker may control.
The honest teaching, and the one OWASP itself gives, is that there is no deterministic fix. Because instruction and data share a channel, no input filter can reliably separate them, and a filter that blocks today's phrasing is bypassed by tomorrow's. Defence is structural rather than a single control: give the model the least privilege and the fewest tools it needs, treat everything the model produces as untrusted output that must be checked before it is acted on, put a human approval gate in front of any consequential action, and test the system adversarially before and after it ships. The primary figure below draws these paths for a typical AI application.
The agent era widens this surface. When a model can call external tools, the tools become an injection route of their own. The gives AI applications a standard way to reach tools and data sources, which is useful and also standardises an attack surface. The NSA's information sheet on Model Context Protocol security warns of , where the description or metadata of a tool is written to manipulate the model, and of metadata injection more generally, so a tool's configuration has to be treated as untrusted just like any retrieved content. Running alongside this is : giving an agent more autonomy, more tools or broader permissions than the task needs, so that a manipulated model can do real harm. The structural questions to ask of any agent are therefore simple to state and hard to dodge: what can it do, what should it be trusted to do, and what sits behind a human gate.
Common misconception
“AI guardrails and output filters solve prompt injection.”
OWASP is explicit that no deterministic fix exists for prompt injection. Guardrails and filters raise the cost of the easy attempts, but because instruction and data reach the model on the same channel, a filter cannot reliably tell a genuine instruction from an attacker's instruction hidden in data. A model told to summarise a web page cannot be guaranteed to ignore a sentence on that page that says to exfiltrate the user's files. The defences that hold are structural: least-privilege tooling, treating model output as untrusted, human approval gates on consequential actions, and adversarial testing. Treating a filter as the fix is how organisations ship agents that can be redirected by the very content they were built to read.
3. AI-enabled attacks
AI has not invented new categories of attack so much as removed the friction from old ones. Two changes matter most. The first is that the linguistic tells are gone. Model-written lures carry no spelling mistakes and adopt a colleague's tone, and deepfake voice and video defeat the instinct to ask whether something looks real. The Arup case, covered in the human factors module, is the reference point: a finance employee in Hong Kong joined a video call on which the chief financial officer and colleagues were all deepfakes and authorised transfers of about twenty-five million US dollars. Any control that depends on a person detecting fakery is now a broken control, which is why verification procedures such as out-of-band callbacks belong in the design rather than in the training.
The second change is scale and autonomy, and the GTG-1002 case at the top of this module is the first well-documented instance of a largely autonomous campaign. When agents can carry the operational load, the historic trade between how many targets a crew can work and how carefully it works each one weakens. That is the sober reading a security team needs: the tooling that makes a legitimate developer faster makes an attacker faster too, so plan for more attempts of consistent quality rather than for a sudden new exploit.
4. AI for defence, soberly
AI earns its place in a security team in the unglamorous work: drafting the first pass of an alert triage, summarising a long incident timeline, suggesting a detection rule from a described behaviour, and turning a half-formed question into a query. Used this way it lifts the floor for a stretched team and buys back analyst time. The security operations judgement in the detection and incident response module still applies: the human owns the decision, and the AI drafts.
The failure modes are specific and worth naming so they can be designed against. Automation bias is the tendency to accept a confident machine answer without the scrutiny a human answer would get, which is most dangerous exactly when the model is fluent and wrong. Alert suppression is its quiet cousin: a confident model that dismisses a real alert as a false positive removes the signal before anyone sees it. The corrective is to use AI to widen what a team looks at rather than to shrink it, to keep the model's output as a recommendation a named analyst confirms, and to measure whether the assistance improves outcomes rather than assuming it does.
5. Governing AI
Governance answers who is accountable for an AI system and how its risk is managed, and several frameworks now speak to it. The NCSC and CISA Guidelines for Secure AI System Development, published in November 2023, set out secure practices across four lifecycle phases: secure design, secure development, secure deployment, and secure operation and maintenance. They are the natural companion to the OWASP list because they cover the process rather than the individual weakness.
The , the NIST AI Risk Management Framework, gives a common structure for managing AI risk across the lifecycle around the functions govern, map, measure and manage, and its Generative AI Profile, published as NIST AI 600-1 in July 2024, extends that structure to generative systems. ISO/IEC 42001 provides a certifiable management system for AI, the AI counterpart to the information security management system taught in the regulation and assurance module. The EU AI Act adds binding obligations on a phased timetable, covered in that same module, and the NCSC's Cyber Assessment Framework version 4.0 takes the deliberate approach of weaving AI risk through its existing outcomes rather than bolting on a separate AI annex. The pattern across all of them is the same: govern AI as part of how you already manage security and risk, not as a novelty that sits to one side.
A vendor demonstrates a customer-support agent that reads incoming emails and can issue refunds. They tell you their content filter blocks prompt injection, so the agent is safe to run without a human in the loop. Which single change most reduces the real risk, and why?
Sort these four incidents into the four AI security problems (securing AI systems, AI-enabled attacks, AI for defence, governing AI): (a) a hidden instruction in a retrieved web page makes a chatbot leak data; (b) a deepfake video call authorises a fraudulent payment; (c) a confident model marks a genuine intrusion alert as a false positive; (d) a firm cannot say who is accountable for its AI system's decisions. Which mapping is right?
Why is output filtering not a fix for LLM01 Prompt Injection, even when the filter is well built and regularly updated?
Core distinctions
- Keep the four AI security problems distinct: securing AI systems, AI-enabled attacks, AI for defence, and governing AI. Most bad advice answers one with a control that belongs to another.
- Prompt injection has no deterministic fix because instruction and data share one channel. Indirect prompt injection arrives via retrieved content, which is why any retrieval-augmented system must treat its corpus as untrusted.
- For AI agents, the structural defences are least-privilege tooling, treating model output as untrusted, human approval gates on consequential actions, and adversarial testing. Watch for excessive agency and for tool poisoning via tool metadata, including over the Model Context Protocol.
- AI-enabled attacks removed the linguistic tells and, in the GTG-1002 case, ran most of an espionage operation with agents. Plan for more attempts of consistent quality, not for a single new exploit.
- Govern AI through existing structures: the OWASP LLM Top 10 for weaknesses, the NCSC and CISA secure AI guidelines and the NIST AI RMF for process and risk, ISO/IEC 42001 for a management system, and the CAF approach of weaving AI risk through existing outcomes.
Standards and sources cited in this module
OWASP Top 10 for Large Language Model Applications 2025
The reference list of LLM application weaknesses, from LLM01 Prompt Injection to LLM10 Unbounded Consumption, and the source for the claim that prompt injection has no deterministic fix.
NSA Cybersecurity Information Sheet: Model Context Protocol security
Sets out tool poisoning and metadata injection risks for agents that reach tools over the Model Context Protocol, and the untrusted-input discipline they require.
NCSC and CISA Guidelines for Secure AI System Development (November 2023)
Secure practices across four lifecycle phases: secure design, development, deployment, and operation and maintenance.
NIST AI Risk Management Framework
Voluntary structure for managing AI risk around govern, map, measure and manage, extended to generative systems by the Generative AI Profile (NIST AI 600-1, July 2024).
Anthropic: Disrupting AI espionage (November 2025)
The GTG-1002 case: an AI-orchestrated espionage campaign in which agents performed roughly 80 to 90 percent of the operation before a defender disrupted it.