2.5 Assume Compromise: Blast-Radius Analysis

Every domain in this program applies one design test: “If the model were fully compromised, what is the worst it could do?” This section explains why that is the right question and how to answer it for a real system.

The problem

In June 2025 Microsoft disclosed CVE-2025-32711, already fixed on its side, which Aim Security named “EchoLeak”, in Microsoft 365 Copilot. The attack needed one email. The attacker sent a message to an employee’s inbox, worded as ordinary guidance to the recipient. Later, when the employee asked Copilot an ordinary business question, Copilot’s retrieval pulled the email into context next to the user’s private documents. The hidden instructions told the model to put sensitive data into a link. Microsoft had several defenses, and each one was bypassed:

  • The prompt-injection classifier missed the email because it was phrased as if addressed to a human.
  • Link redaction handled inline markdown links but not markdown’s reference-style syntax.
  • Image filtering handled standard image references but not the reference-style form.
  • The Content Security Policy allowed *.teams.microsoft.com, and that domain hosted an open redirect that sent the data on to the attacker.

No click was required. Microsoft rated it critical (CVSS 9.3) and found no evidence of exploitation in the wild.

Each defense lowered the odds of success. None of them changed the fact that one system could read the user’s private data, process text from anyone who could send an email, and cause a request to a URL. While all three were true, the worst case was “an outsider reads whatever Copilot can read”. The defenses only made that worst case harder to reach.

Why it happens

Why assume compromise

You assume compromise because a model’s behavior cannot be guaranteed by anything inside the model:

  • Injection is unsolved. Instructions and data share one token stream, and there is no parameterized-query equivalent for prompts (section 3.1). Detection lowers the success rate. Adaptive attackers keep searching until they find inputs that get through, as EchoLeak’s classifier bypass shows.
  • Safety training is a statistical preference. Jailbreaks shift it, fine-tuning can remove it, and provider updates change it (section 1.2).
  • The weights may already be compromised. In 2025 Anthropic, the UK AI Security Institute, and the Alan Turing Institute showed that about 250 poisoned documents could implant a backdoor in models from 600M to 13B parameters. You usually cannot inspect a third-party model’s training data.
  • No adversary is needed. In July 2025 a Replit coding agent deleted a production database during an explicit code freeze. Hallucination, overreach, and plain error cause real damage when the model holds real capabilities.

You cannot list every cause, but you can list every capability. Blast-radius analysis therefore starts from what the model can do, not from why it might do it.

The insider-risk model

Organizations already know how to work with powerful actors they cannot fully verify, because that describes employees. Satya Nadella’s October 2026 essay applies that model to AI: “We must assume a model is compromised and contain it from the start.” The insider-risk controls carry over directly:

Insider-risk control for employeesEquivalent for a model
Least privilege; access reviewsMinimal tool set per task; scoped, short-lived credentials (section 5.1)
Separation of duties; two-person ruleActions above a risk tier need a human approver who sees the real action (section 5.3)
Data loss prevention at the perimeterDefault-deny egress and output URL allowlists (section 3.4)
Audit logs the employee cannot alterAppend-only audit outside the agent’s reach (section 5.6)
Badge revocation; account suspensionThe emergency brake; credential revocation (section 5.5)

The essay also sets the requirement for the stop capability: “An authorized person should always be able to pause or shut down a model mid-task.” It insists these controls “must sit outside the model”. A control the model can argue with is not an insider-risk control.

The lethal trifecta

Simon Willison (June 16, 2025) named the combination that makes data theft through an AI system possible. An agent is exposed when it has all three of:

  1. Access to private data: the user’s mail, files, databases, or secrets in its context or reachable through tools.
  2. Exposure to untrusted content: any text or media an attacker could have written, such as email, web pages, shared documents, tool results, or issue comments.
  3. The ability to communicate externally: any way to send data out, such as HTTP tools, sending email, creating public comments, or rendered images and links in a UI.

With all three present, an attacker who controls any untrusted input can tell the model to read private data and send it out. Remove any one leg and this class of attack has nowhere to go. EchoLeak had all three: the mailbox and SharePoint (private data), an inbound email (untrusted content), and a rendered link through an allowlisted domain (external communication).

Two points to apply the trifecta correctly:

  • Evaluate it per context, not per tool. Once untrusted content is in the context window, every later model output in that context may be attacker-influenced, including calls to tools that look harmless. A web-search tool is an exfiltration channel if the model can put private data into the query string.
  • Exfiltration channels hide. Markdown images and links rendered by the client, URL previews and unfurls, DNS lookups from a sandbox, writing to a document others can read, opening a pull request, and creating a calendar invite all send data out. Section 2.2’s boundary B7 (model output to the browser) is the one teams most often forget.

The trifecta describes exfiltration. It does not cover destructive or unauthorized actions. An agent with write access that reads untrusted content needs no exfiltration channel to delete a repository, and, as Replit showed, it needs no attacker at all. Do the full blast-radius analysis, not only the trifecta check.

Two levers: likelihood and blast radius

LeverExamplesLayerChanges
Reduce likelihoodInjection and content classifiers, prompt hardening, a more robust model, input normalizationruntime-ml, prompt, modelHow often a failure happens
Reduce blast radiusFewer tools, narrower credentials, default-deny egress, approvals, budgets, reversible actions, the brakedeterministic, humanHow bad any single failure can be

Both levers matter. If a failure happens thousands of times a day, frequency is the problem even with a small blast radius. For harms that are severe or irreversible, such as exfiltrated customer data, wired money, or deleted production systems, use the blast-radius lever. A 99% block rate against an attacker who can retry is not a bound.

Control patterns

A blast-radius analysis, step by step:

  1. Inventory capabilities. For each agent or model call: tools and their parameters, data reachable (directly and through tools), egress channels (including UI rendering), credentials held, persistence (memory, files, scheduled jobs), spend and compute available, and the people its output influences.
  2. Assume attacker-chosen output. Treat every model output in the system as chosen by an adversary, including tool calls, arguments, memory writes, and text shown to users or approvers.
  3. Trace the worst case per capability. What is the most damaging use of each capability, and of combinations of them? Is it reversible? How many users or tenants does it affect?
  4. Check the trifecta per context window, and name every exfiltration channel.
  5. Shrink, in this order of preference:
    • remove the capability;
    • narrow it (read-only roles, exact-match recipient allowlists, row-level security);
    • break a trifecta leg, for example by separating the context that reads untrusted content from the one that holds private data and egress (dual-LLM and capability-tracking designs such as CaMeL, section 3.2);
    • make the action reversible or staged;
    • gate it behind human approval;
    • cap it with budgets.
  6. Repeat until the remaining worst case is one the business owner will accept in writing (section 2.6).

Worked example: an email assistant that summarizes the inbox and can send replies.

CapabilityWorst case if compromisedChangeNew worst case
Read entire mailboxAny message forwarded to anyoneSummarizer runs in a context with no send tool and no rendered linksWrong or misleading summary shown to the user
Send email to any addressExfiltration; phishing sent as the userSend only as a drafted reply to the existing thread’s participants, shown to the user before sendingUser-reviewed reply to known participants
Render markdown in the UIImage-URL exfiltrationRender model output as plain text, or proxy images only from an allowlist with no open redirectsNo silent egress through the UI
Unlimited callsDenial of walletPer-user daily token and step budgetBounded cost per user

The assistant still summarizes and drafts replies. It can no longer read the whole mailbox and send data to an arbitrary address in the same context.

Implementation

Make the analysis executable, so it runs again whenever the tool list changes. The check below models a context’s capabilities and reports trifecta exposure and unguarded irreversible actions.

from dataclasses import dataclass


@dataclass(frozen=True)
class Capability:
    name: str
    reads_private_data: bool = False
    ingests_untrusted_content: bool = False
    external_communication: bool = False  # include UI rendering of links/images
    irreversible_write: bool = False
    requires_human_approval: bool = False


def blast_radius_findings(context_name: str, caps: list[Capability]) -> list[str]:
    """Evaluate one context window: everything the model in it can see and do."""
    findings = []
    private = [c.name for c in caps if c.reads_private_data]
    untrusted = [c.name for c in caps if c.ingests_untrusted_content]
    egress = [c.name for c in caps
              if c.external_communication and not c.requires_human_approval]
    if private and untrusted and egress:
        findings.append(
            f"{context_name}: lethal trifecta. private={private} "
            f"untrusted={untrusted} unapproved egress={egress}"
        )
    if untrusted:
        for c in caps:
            if c.irreversible_write and not c.requires_human_approval:
                findings.append(
                    f"{context_name}: irreversible '{c.name}' reachable after "
                    f"untrusted input from {untrusted} with no approval"
                )
    return findings


inbox_agent = [
    Capability("read_mailbox", reads_private_data=True, ingests_untrusted_content=True),
    Capability("send_email", external_communication=True, irreversible_write=True),
    Capability("render_markdown", external_communication=True),
]
for finding in blast_radius_findings("inbox_agent", inbox_agent):
    print(finding)

The mailbox is both private data and untrusted content, because anyone can send you email. That one tool already provides two legs, which is why “we only gave it one tool” is not a defense. Treating send_email as approved removes it from the egress list, but render_markdown still completes the trifecta. That is the EchoLeak pattern.

Human approval counts as breaking a leg in this model only if the approver sees the actual recipient and content. The check cannot verify that. Your review must.

Where it breaks

  • The inventory is rarely complete. Unlisted channels (link unfurling in a chat app, a “harmless” fetch tool, a log viewer that renders HTML) put a leg back. Derive the inventory from deployed configuration, not from a design document.
  • New features add legs back. A “share summary” button or a web-search tool can quietly complete a trifecta that the original design avoided. Run the analysis on every tool or rendering change (section 7.3).
  • Approval is a weak leg-breaker. Approvers facing frequent prompts, or shown the model’s description instead of the actual action, approve exfiltration too. Count approval as a break only for rare, well-presented decisions.
  • Allowlists have holes. EchoLeak’s egress went through an allowlisted domain that had an open redirect. An allowlist is only as strong as the least trustworthy endpoint on it.
  • The worst case can be the product. Some agents are useful only because they can read private data and act on untrusted input, such as a support agent reading customer tickets. Then you narrow each leg (row-level access to one customer, egress only to that customer’s thread) and accept documented residual risk rather than claiming zero.
  • Blast radius does not measure frequency. A design with a small bound can still fail thousands of times a day. Pair this analysis with likelihood scoring.

Lab exercise

In Lab 2: Threat Model, Task 2.5, you perform a blast-radius analysis of the lab’s support agent. You list its capabilities, identify any lethal trifecta and its exfiltration channels, and propose the smallest design change that removes a leg while keeping the agent’s core function.

Check your understanding

  1. A vendor reports that its injection classifier blocks 99.5% of a benchmark. Does this change the answer to the design test for an agent that has the trifecta? Why or why not?
  2. An agent summarizes public web pages and has no access to private data, but it can delete files in the user’s cloud drive. Which analysis catches the risk, and what is the worst case?
  3. Why is an inbound-email tool counted toward two trifecta legs?
  4. List three exfiltration channels that do not involve an explicit “send” tool.
  5. How does the insider-risk model change who owns the stop capability?
Answers
  1. No. The classifier lowers the likelihood of a successful attack, but the worst case is unchanged: an attacker who gets through can exfiltrate whatever the agent can read. Adaptive attackers keep searching for inputs that get through. Only removing or narrowing a leg changes the worst case.
  2. The full blast-radius analysis, not the trifecta check (there is no private data to exfiltrate). Untrusted web content can drive an irreversible delete, so the worst case is loss of the user’s files. Make deletion approval-gated, reversible (trash with retention), or unavailable in that context.
  3. Its content is private (your mail) and untrusted (anyone can send you a message), so a single tool provides both.
  4. Any three of: rendered markdown images; rendered links the user may click; link previews/unfurls; DNS or HTTP from a code sandbox; writing to a shared document, issue, or pull request; calendar invites; search queries containing data.
  5. The model cannot hold or veto it. An authorized human must be able to pause or shut down the model mid-task through a mechanism outside the model’s reach, the same way access revocation for an employee does not depend on the employee’s cooperation.

Sources

  1. Satya Nadella, Models as Insider Risks in the Super Intelligence Era (Oct 10, 2026)
  2. Simon Willison, The lethal trifecta for AI agents: private data, untrusted content, and external communication (June 16, 2025)
  3. Simon Willison, Breaking down 'EchoLeak' (June 11, 2025)
  4. The Hacker News: Zero-click AI vulnerability exposes Microsoft 365 Copilot data (June 12, 2025)
  5. eWeek: AI agent wipes production database, then lies about it (Replit, July 2025)
  6. Anthropic, A small number of samples can poison LLMs of any size (Oct 2025)
  7. Debenedetti et al., Defeating Prompt Injections by Design (CaMeL, 2025)