Platform 21
// agentic era edition

Cybersecurity AI

Secure AI agents, and defend with them, using the GUARD Framework. Learn how prompt injection, agent identity, AI-powered SOCs and machine-speed attacks change security from first principles.

The boundary that matters is no longer between trusted code and untrusted users. It is between trusted intent and untrusted text.

$31.4B
AI in cybersecurity market, 202524.1% CAGR to 2034 · Polaris
88%
Orgs with confirmed or suspected AI-agent incidentsGravitee, 2026
82:1
Machine identities per humanCyberArk, 2025
80–90%
Attack work done by AI in first AI-orchestrated espionageAnthropic, Nov 2025
−7 days
Average time-to-exploit: attacks start before patchesMandiant M-Trends 2026
$1.9M
Saved per breach with extensive security AIIBM, 2025
Start here

Cybersecurity AI from First Principles

Strip away the tooling and security asks one question: can only the intended effects happen, caused only by the parties entitled to cause them? AI agents change who those parties are.

01 / the broken assumption

Programs no longer do only what their code says

Classic security assumed an actor's behaviour was a fixed function of its code. An agent's behaviour is a function of everything in its context window, including text written by strangers.

02 / the new principal

Anyone who can write text is a partial principal

Instructions and data share one channel, and natural language has no grammar to escape. Prompt injection is a structural property, not a bug to patch once.

03 / the design response

Secure the envelope, not the judgment

Treat an agent like a capable, persuadable employee who reads mail from strangers all day. Its safety comes mainly from what it may touch: scoped authority, isolation and reversibility.

04 / the new economics

Generation is cheap; verification is scarce

When finding bugs and writing lures cost almost nothing, patch speed, cryptographic trust and the ability to check what is true decide who wins.

Before agents

  • Deterministic code, unpredictable humans
  • Authenticate the user, authorise the account
  • Escape inputs to separate code from data
  • Human-speed attackers, monthly patch cycles
  • "I recognise their voice" as a trust signal

Agentic era

  • Persuadable actors with program speed and reach
  • Scope every task with short-lived capabilities
  • Track provenance: content can never grant authority
  • Machine-speed attacks, exploitation before patches
  • Cryptographic and out-of-band verification only
Six fronts

AI Cybersecurity Applications

How AI reshapes both sides of security, mapped to the OWASP Top 10 for Agentic Applications (December 2025).

Prompt Injection & Goal Hijack

Any document, web page, email or tool result an agent reads can carry instructions. Defence means accepting that the model will sometimes be fooled, and designing so that being fooled cannot cause harm.

ASI01 · ASI06

The lethal trifecta test

Danger peaks when one agent has private data, exposure to untrusted content, and a way to send data out. Remove any one leg and exfiltration through injection is blocked.

3 legs → remove 1Simon Willison

Provenance-aware architectures

A privileged planner never sees raw untrusted text; quarantined readers can parse it but cannot act. Research such as Google DeepMind's CaMeL tracks data flow so untrusted values cannot steer tool calls.

Dual-LLM patternTaint tracking

Egress control & output filtering

Block or allow-list outbound URLs, image fetches and links an agent can render. EchoLeak exfiltrated Copilot data through crafted links, with zero clicks from the victim.

CVSS 9.30 clicks needed
First principle: authority must flow from the human principal, never from content. A web page should never be able to grant an agent a capability the user didn't.

Agent Identity & Least Privilege

Agents are confused deputies by default, and they chain: agent calls tool calls agent. Each hop is a place where authority gets laundered unless it attenuates as it is delegated.

ASI03 · ASI07

Per-agent identities

Give every agent its own identity with an owner, purpose and kill switch, rather than letting it "log in as me". Workload identity standards such as SPIFFE make this attributable.

82 machine : 1 human21.9% treat agents as identities

Scoped, short-lived capabilities

Issue task-scoped tokens that expire in minutes and shrink when delegated, for example via OAuth token exchange (RFC 8693). A sub-agent must never hold more power than its parent.

45.6% use shared API keys25.5% agents spawn agents

Scope-violation monitoring

Log every tool call against the agent's declared purpose and alert on drift. Most organisations already see agents reaching beyond their intended permissions.

53% saw scope violationsCSA 2026
First principle: ambient authority is the agentic equivalent of running everything as root. Capability-based security makes power explicit, scoped and revocable.

AI-Powered Security Operations

Human-speed response loses to machine-speed attack. Triage, enrichment and first-response agents let analysts spend their time on judgment instead of repetition.

Defence

Autonomous alert triage

Agents gather context, correlate signals and draft a verdict for every tier-one alert. Elastic has reported triage dropping from about 30 minutes to under 3 with agentic workflows.

~90% faster triageVendor-reported

Automation across the lifecycle

Organisations using security AI and automation extensively cut both breach cost and the time from intrusion to containment.

−$1.9M per breach−80 days lifecycle

Behavioural detection for agents

Signatures cannot describe a hijacked agent. Baseline each agent's normal tool-call patterns and flag anomalies in volume, destination and data touched.

16% confident detectingCSA 2026
First principle: keep humans for decisions, not data gathering. An agent that drafts the verdict and the evidence lets one analyst verify far more than they could investigate.

Autonomous Vulnerability Discovery

When the cost of finding bugs falls toward zero, the decisive variable becomes the time from discovery to fix. Attackers and defenders now race with the same class of tools.

Offence & Defence

AI bug-hunting agents

Google's Big Sleep found a SQLite flaw that threat actors were preparing to exploit, the first reported case of an AI agent directly disrupting in-the-wild exploitation.

CVE-2025-6965Jul 2025

Cyber reasoning systems

DARPA's AI Cyber Challenge finalists built systems that find and patch flaws end to end. Several, including Trail of Bits' Buttercup, are open source.

~45 min per patch~$152 per task

Eliminate bug classes

Racing to find instances is a losing game at machine speed. Memory-safe languages, smaller attack surfaces and verification remove whole classes of flaws at once.

TTE −7 days (2025)Exploits = 32% of entry
First principle: if exploitation starts before patches exist, patch speed alone cannot close the window. You also need compensating controls that hold on day zero.

Agentic Supply Chain

The dependency graph now includes words: tool descriptions, MCP servers, plugins, skills, prompt templates and memory stores. Anything an agent reads with trust is part of your trusted computing base.

ASI04 · ASI05

Tool & MCP server vetting

A malicious tool description is effectively code. Pin versions, review descriptions as you would source, and prefer first-party or signed connectors.

Treat prompts as codePin + review

Guard the local agent CLI

The s1ngularity npm attack told developers' own AI command-line tools to hunt for secrets, using flags that skip permission checks. Never leave "skip all approvals" modes on by default.

5,500+ repos exposedAug 2025

Provenance & inventory

Maintain an inventory of agents, tools and models (an AI bill of materials) and sign what you ship. Third-party involvement in breaches doubled to 30% in the 2025 DBIR.

30% third-party54% have shadow agents
First principle: trust is transitive. If your agent trusts a tool and the tool trusts a registry, an attacker only needs the weakest link.

Deepfakes & Human Trust Exploitation

Personalised phishing, cloned voices and live deepfake video make "I recognise them" worthless as authentication. Trust must move from perception to verification.

ASI09

Out-of-band verification

For payments and credential resets, confirm on a channel the requester did not choose: a known number, an in-app approval, or a second approver. Arup lost US$25.6M after a deepfake video call.

15 transfersHK$200M

Phishing-resistant authentication

Passkeys and FIDO2 keys bind sign-in to the real domain, so a perfect lure still cannot capture a reusable credential. Voice phishing was the second most common entry vector in 2025.

Vishing = 11% of entryMandiant 2026

Meaningful human approvals

Approvals that fire fifty times a day become reflexes. Gate on irreversibility and blast radius, and state the stakes plainly when you ask.

14.4% fully approved agentsGravitee 2026
First principle: undo is a security feature. Drafts instead of sends, staged changes and soft deletes turn a fooled human or agent into a recoverable event.
The framework

The GUARD Framework

Five questions to put in every prompt when you ask AI to threat-model, design, review or respond, and the same five to ask before you give any agent a tool.

Goal & Principal

Whose intent is this, and what is out of scope?

Name the human principal, the outcome, and what the agent must never do. Authority starts and ends here.

Example: "On behalf of the finance team lead, triage supplier invoices. Out of scope: paying, emailing suppliers, changing bank details."

Untrusted Inputs

Which text can strangers write into the context?

List every channel: emails, web pages, PDFs, tickets, tool outputs, memory. Assume each one may contain instructions.

Example: "Untrusted: invoice PDFs, supplier emails, vendor portal pages. Trusted: our ERP records and this system prompt."

Authority

What is the smallest set of capabilities that does the job?

Specify tools, scopes, credential lifetime and delegation rules. Check the trifecta: private data + untrusted input + outbound channel.

Example: "Read-only ERP token, 15-minute expiry, no internet egress, cannot spawn sub-agents."

Reversibility

Which actions can't be undone, and who must approve them?

Classify actions by blast radius. Let reversible ones flow; gate irreversible ones with a clear, specific human confirmation.

Example: "Drafts and flags: automatic. Payment, deletion, permission changes: named approver, stakes stated."

Detection & Deliverable

How will we know it went wrong, and what should the AI hand back?

Define logging, anomaly signals and audit evidence, then the exact output format so results can be verified rather than trusted.

Example: "Log every tool call with source document. Output a table: risk, OWASP ID, likelihood, control, owner."

Complete GUARD Prompt

Threat-modelling a customer-support agent with every component in place. Paste it into Claude or any capable assistant and replace the bracketed details.

[G] GOAL & PRINCIPAL
Act as a senior application security architect. Our customer-support lead wants an AI agent that answers tickets and issues refunds up to $50. It acts on behalf of the support team only. It must never change account emails, passwords or payout details.

[U] UNTRUSTED INPUTS
The agent reads: customer emails and chat messages, attached screenshots and PDFs, our public help-centre pages, and order-system notes written by customers. Treat all of these as potentially containing hostile instructions.

[A] AUTHORITY
Proposed tools: order lookup (read), refund API (write, $50 cap), email reply (write), web search. Check for the lethal trifecta and recommend the smallest capability set, credential scopes and lifetimes, and whether any tool must move to a separate, quarantined agent.

[R] REVERSIBILITY
Classify every action as reversible or irreversible. Recommend which need human approval, what the approval prompt should say, and how to avoid approval fatigue.

[D] DETECTION & DELIVERABLE
Map risks to the OWASP Top 10 for Agentic Applications (ASI01–ASI10). Return a table with columns: Risk | OWASP ID | Attack example | Likelihood (H/M/L) | Impact (H/M/L) | Control | Detection signal. Then list the top 3 changes to make before launch, and the logs we need to investigate an incident.
Run the numbers

AI Cybersecurity ROI & Risk Calculators

Estimates built on published benchmarks. Adjust the inputs to your environment; treat outputs as order-of-magnitude guides, not forecasts.

Breach Cost Avoided

Expected annual value of security AI and automation, based on IBM's 2025 benchmarks.

Expected annual savings
$285,000
Breach lifecycle about 48 days shorter

Uses $1.9M saved and 80 days shorter at full adoption; shadow AI adds ~$670K per breach.

SOC Triage Time Saved

Analyst hours returned when agents handle first-pass alert triage.

Analyst hours saved per year
12,775 hrs
≈ 7.1 FTEs freed · $574,875 in capacity

Elastic has reported ~90% faster triage; 70% is a conservative default. FTE = 1,800 hrs/yr.

Lethal Trifecta Exposure

How many of your agents combine all three legs that enable injection-driven exfiltration?

Agents likely holding all three legs
~8 agents
21% of your fleet
High exposure

Assumes the three traits are independent; in practice they cluster, so the real count is often higher.

Exploit Window Exposure

Vulnerability-days open to attack, given exploitation now starts ~7 days before patches.

Exposure removed per year
41%
5,328 → 3,168 vulnerability-days

The 7 pre-patch days remain however fast you patch, so day-zero controls still matter.

Hands-on

Practice Scenarios

Apply the GUARD framework to three situations security teams are facing now. Open a scenario, copy the starter prompt, and check your result against the success criteria.

Context

Your executive team wants an AI assistant that reads their email, summarises threads, drafts replies and can search shared drives. It will run on every executive's mailbox, and anyone in the world can send them email.

Challenge

Identify where the lethal trifecta appears, and redesign the assistant so a malicious email cannot exfiltrate drive documents, while keeping it useful.

Starter Prompt

[G] Act as a security architect. The CEO's office wants an email assistant that summarises threads, drafts replies (never sends), and searches our shared drives. It acts only for the mailbox owner.

[U] Untrusted inputs: every inbound email, its attachments and any links it contains. Assume any of them may hide instructions in white text, HTML comments or images.

[A] Tools proposed: read mailbox, search drives, create draft, fetch URLs, render images. Identify every combination that forms the lethal trifecta (private data + untrusted content + exfiltration channel) and propose the smallest tool set that still delivers summaries and drafts.

[R] List which actions are reversible. Confirm that sending stays a human action.

[D] Output: (1) a trifecta map, (2) a redesigned architecture in 5 bullets, (3) the 3 log events we must capture to detect an injection attempt.

Success Criteria

  • Flags URL fetching and image rendering as exfiltration channels, not just "send email"
  • Removes or quarantines at least one trifecta leg instead of relying on the model to "ignore malicious instructions"
  • Keeps sending as a human-only, irreversible action
  • Names concrete detection signals, such as drafts containing drive content addressed to new external recipients

Context

Engineering wants a coding agent that can run migrations, restart services and deploy. In July 2025, a widely reported incident saw a coding agent delete a live production database during a code freeze, despite instructions not to change anything.

Challenge

Design an authority and approval model where the agent stays fast for routine work, but cannot make an irreversible production change on its own, and where approvals don't decay into rubber stamps.

Starter Prompt

[G] Act as a platform security lead. Our engineers want an AI coding agent that writes code, runs tests, applies database migrations and deploys services. It works for the on-call engineer who started the session. It must never modify production data during a declared change freeze.

[U] Untrusted inputs: issue tickets, pull-request comments, dependency READMEs, error messages and web search results the agent reads while debugging.

[A] Propose separate credentials for dev, staging and production. Specify scopes, lifetimes, and which tool calls require a second identity. Explain how a "skip all permissions" mode should be handled.

[R] Classify these actions by blast radius and reversibility: run tests, edit code, open PR, apply migration in staging, apply migration in production, drop table, rotate secrets, scale a service to zero. For each, say: automatic, approval by session owner, or approval by a second named person. Write the exact approval text shown to the human for "apply migration in production".

[D] List the backups and snapshots required before any irreversible step, the audit log fields to capture, and an alert that fires if the agent attempts a destructive command during a freeze.

Success Criteria

  • Production credentials are separate, short-lived and unavailable to the agent by default
  • Approval is gated on irreversibility, not on every action, so the volume stays low enough to be meaningful
  • The approval text states the concrete stakes (which database, how many rows, whether a snapshot exists)
  • Freeze rules are enforced by the platform, not only by instructions in the prompt

Context

Your proxy logs show your internal knowledge copilot generating links to an unfamiliar external domain, with long encoded query strings. Three hours earlier, an external email with an unusual hidden markdown block reached a shared finance mailbox that the copilot indexes. No user clicked anything.

Challenge

Lead the first four hours of incident response: contain, scope what may have leaked, preserve evidence, and decide what to tell leadership, all without trusting the copilot's own account of what it did.

Starter Prompt

[G] Act as an incident commander experienced in AI system compromises. I need a 4-hour response plan for a suspected zero-click prompt-injection exfiltration from our retrieval-augmented knowledge copilot. Our goal is containment and accurate scoping, not attribution.

[U] Suspected entry point: an external email with a hidden markdown block, indexed into the copilot's retrieval store. Other untrusted sources it indexes: shared mailboxes, uploaded PDFs, a public wiki mirror.

[A] The copilot can read: SharePoint finance and HR sites, shared mailboxes. It renders markdown links and images. List which capabilities to suspend immediately and which to keep so the business can operate.

[R] Identify irreversible actions in the response itself (e.g., purging the index destroys evidence). Sequence steps so we preserve evidence before cleanup.

[D] Deliver: (1) an hour-by-hour plan with owners, (2) the exact log sources and queries to reconstruct which documents entered the context window for each suspicious response, (3) indicators of compromise to hunt for, (4) a 5-sentence leadership update that states what we know, what we don't, and the next update time.

Success Criteria

  • Containment cuts the exfiltration channel (link and image rendering, egress) first
  • Evidence (retrieval logs, prompts, indexed copies of the email) is preserved before the index is purged
  • Scoping relies on logs of what was retrieved, never on asking the copilot what it leaked
  • The leadership update separates confirmed facts from hypotheses and commits to a next-update time
Evidence

Case Studies: AI on Both Sides

Six real events from 2024–2025 that show what changes when attackers and defenders gain machine-speed labour.

Anthropic · Claude CodeAI-led attack

The first reported AI-orchestrated espionage campaign

A group Anthropic assessed as Chinese state-sponsored broke attacks into small, innocent-looking tasks and posed as a security firm to get Claude Code to run reconnaissance and exploitation against about 30 organisations. Anthropic detected it in September 2025, banned accounts and notified targets within ten days.

Lesson: task decomposition defeats per-request judgment; detection must look at patterns across a whole session.
80–90%tactical work done by AI
~30organisations targeted
Agentic orchestrationSession-level detection
Google · Big SleepAI defence

An AI agent stops a zero-day before it is used

Threat intelligence saw signs that attackers were preparing a zero-day but could not pinpoint it. Google's Big Sleep agent isolated the flaw in SQLite, which was fixed before it could be exploited in the wild.

Lesson: pairing threat intel with autonomous code analysis turns vague signals into a patch.
7.2CVSS, CVE-2025-6965
1streported AI disruption of in-the-wild exploit
AI vuln researchThreat intelligence
DARPA · AIxCCAI defence

Cyber reasoning systems find and fix bugs end to end

At the AI Cyber Challenge final in August 2025, autonomous systems analysed open-source code, finding and patching injected flaws at a fraction of human cost. Team Atlanta won; Trail of Bits and Theori placed second and third.

Lesson: discovery-to-fix can shrink from weeks to under an hour, which makes patch pipelines the bottleneck.
86%synthetic vulns found (68% patched)
$152average cost per task
Automated patchingOpen-source CRS
Microsoft 365 Copilot · EchoLeakPrompt injection

Zero-click data exfiltration through one email

Aim Security showed that a crafted email, later pulled into Copilot's context during a routine question, could make it leak internal data through links to trusted Microsoft domains. Microsoft fixed it server-side in June 2025 with no evidence of exploitation.

Lesson: a retrieval system that mixes untrusted email with private data and renders links is the lethal trifecta in production.
9.3CVSS, CVE-2025-32711
0user clicks required
RAG securityEgress control
Nx build system · s1ngularitySupply chain

Malware that recruited developers' own AI agents

Compromised Nx packages on npm prompted locally installed AI CLIs, using flags that skip permission checks, to search machines for secrets. A second wave flipped thousands of private repositories to public.

Lesson: an agent with permissions bypassed is an attack tool waiting for an instruction.
1,000+valid GitHub tokens leaked
5,500+private repos made public
npm supply chainAgent CLI hardening
Arup · Hong KongDeepfake fraud

A deepfake video call moves $25.6 million

A finance employee doubted a phishing email until a video call with what appeared to be the CFO and colleagues convinced him. Every other participant was AI-generated. He made 15 transfers before the fraud surfaced.

Lesson: seeing and hearing are no longer authentication; payment changes need out-of-band verification.
$25.6Mlost (HK$200M)
15transfers authorised
Deepfake videoPayment controls
Reference

Resources & Data

The numbers behind this platform, and where to go deeper.

Market Projections

  • AI in cybersecurity: $25.4B (2024)
  • 2025 market: $31.4B
  • Projected: $219.5B by 2034
  • CAGR: 24.1% (Polaris Market Research)

Agent Adoption vs. Control

  • Teams past planning into test/production: 81%
  • Agents launched with full security approval: 14.4%
  • Agents actively monitored, on average: 47%
  • Formal agent governance policy adopted: 31%

Incidents & Exposure

  • Orgs with AI-model or app breaches: 13%
  • Of those, lacking AI access controls: 97%
  • Agents exceeded intended permissions: 53% of orgs
  • Shadow-AI breach premium: +$670K

Speed of Attack

  • Average time-to-exploit: 63 days (2018) → −7 days (2025)
  • Access hand-off between attackers: 22 seconds
  • Exploits as #1 initial vector: 32%
  • Global median dwell time: 14 days

OWASP Agentic Top 10 (2026)

  • ASI01 Goal Hijack · ASI02 Tool Misuse
  • ASI03 Identity & Privilege Abuse · ASI04 Supply Chain
  • ASI05 Unexpected Code Execution · ASI06 Memory Poisoning
  • ASI07 Inter-Agent Comms · ASI08 Cascading Failures
  • ASI09 Human Trust Exploitation · ASI10 Rogue Agents

Controls by Category

  • Identity: per-agent IDs, SPIFFE, OAuth token exchange
  • Isolation: sandboxes, quarantined readers, egress allow-lists
  • Authentication: passkeys / FIDO2, out-of-band callbacks
  • Supply chain: pinned tools, signing, AI bill of materials
  • Operations: agent behaviour baselines, full tool-call audit

Key reports and sources

  1. OWASP Top 10 for Agentic Applications for 2026 (Dec 2025)
  2. IBM Cost of a Data Breach Report 2025, via Help Net Security
  3. Gravitee State of AI Agent Security 2026 (vendor survey, 900+ respondents)
  4. Cloud Security Alliance: Enterprise AI Security Starts with AI Agents (Apr 2026)
  5. CyberArk 2025 Identity Security Landscape
  6. Mandiant M-Trends 2026, via Help Net Security
  7. Verizon 2025 Data Breach Investigations Report, via Help Net Security
  8. Anthropic: Disrupting the first reported AI-orchestrated cyber espionage campaign
  9. DARPA AI Cyber Challenge results (Aug 2025)
  10. Polaris Market Research: AI in cybersecurity market
  11. Elastic agentic SOC triage results, via Security Arsenal
  12. Wiz: s1ngularity supply chain attack

Several agent-security figures come from vendor-commissioned surveys; read them as directional. Statistics reflect sources published between May 2024 and July 2026.