AI Guardrails Aren’t Enough: When the Model Behaves Perfectly and the Breach Happens Anyway
Security teams evaluating AI deployments have converged on a comfortable checklist: safety training, guardrail prompts, a system prompt telling the model to behave responsibly. Box checked, deployment approved.
That checklist misses the failure mode that has actually put enterprise data at risk in production. The problem is not that models misbehave when asked to do something harmful. It is that large language models have no reliable way to distinguish a user’s own instruction from an instruction hiding inside the content they were asked to process.
The Vulnerability Class Model Guardrails Were Never Built For
In June 2025, Aim Security researchers disclosed EchoLeak, tracked as CVE-2025-32711 with a CVSS score of 9.3, a zero-click vulnerability in Microsoft 365 Copilot. An attacker simply sent a crafted email that sat unopened in the recipient’s mailbox. When the user later asked Copilot an unrelated question, Copilot’s retrieval process pulled that email into context, and the hidden instructions inside it were executed as if the user had typed them directly, ultimately exfiltrating chat logs, files, and messages to an attacker-controlled destination.
The researchers at Aim Labs who discovered EchoLeak classified the underlying mechanism as an “LLM Scope Violation”, untrusted input manipulating the model into leaking data far beyond what the query called for. Nothing about Copilot’s safety training failed here. No guardrail was bypassed through clever jailbreak phrasing. The model performed exactly as designed. What failed was the assumption that model-level safeguards, however well-tuned, are a security boundary.
Why the Lack of a Direct User Prompt Makes This Worse, Not Better
It is tempting to assume the riskiest prompts are the ones a user types. OWASP’s 2025 Top 10 for LLM Applications ranks prompt injection as the top risk for the second consecutive edition, and it draws an explicit distinction: direct injection is a user typing something malicious; indirect injection is an attacker embedding instructions in a document, webpage, or file the model later processes on its own. OWASP highlights indirect prompt injection as particularly dangerous because there is no suspicious user input for anyone to review. The email in EchoLeak looked like an ordinary email. That is what made it work.
What Actually Closes the Gap
Think of model-level safety training as a single stick. Bend it hard enough, through a crafted email, a poisoned document, an injected instruction buried in a webpage, and it snaps. A bundle of independent controls, each addressing a different point of failure, does not bend the same way. That is the actual argument for layered defense, not as a compliance slogan, but as a structural property: no single control should be load-bearing for the whole system.
In practice, that bundle includes least-privilege scoping for what an agent or model can actually reach, so a manipulated model has less to exfiltrate in the first place. It includes native platform guardrails. Amazon Bedrock Guardrails is one example, offering content filtering, denied topics, PII masking, and contextual grounding checks against hallucinated or ungrounded output, with comparable capabilities available from other major providers. And it includes output validation that checks structure and content before anything executes: does the response match the expected schema, does it reference data the request actually called for, does it attempt an action outside the defined scope. None of these three replaces the others. Each catches what the others miss.
The Organizational Gap Nobody Budgets For
There is a second, less technical failure mode worth naming. AI capability is being adopted faster than most security organizations can absorb it, and that speed creates a mismatch in how different teams perceive the work involved. To a product or business team, turning on an AI assistant can look like flipping a switch. To a security architect, it means threading a new control plane through existing IAM, data classification, logging, and change management, none of which were built with a model in the loop. That mismatch is not a training gap. It is a genuine architectural problem, and it deserves to be scoped and resourced as one rather than waved through as a minor configuration change.
Three Takeaways for Security Teams
- Do not treat indirect prompt injection as a lesser risk because no user typed anything malicious. Its ability to enter through otherwise legitimate content makes it particularly difficult to detect.
- Build a bundle, not a single stick: least-privilege scoping, native platform guardrails, and independent output validation, each covering a gap the others do not.
- Budget AI adoption as an architecture change, not a feature flag. The gap between how business teams and security teams see the effort involved is where the real risk hides.
The Practical Takeaway
The next time an AI deployment gets evaluated, the useful question is not whether the model has guardrails. Most do. The useful question is whether anything in the architecture distinguishes instruction from data once both sit in the same context window, and what happens downstream when that distinction fails. That points directly at the control that would have mattered in EchoLeak: not a better-trained model, but a system built to assume the model cannot always tell the difference.

