Abstract
What should an AI agent be allowed to do after it reads an email, a repository issue or a tool description written by someone it does not trust? Untrusted content can steer model behavior. Independent controls determine whether that influence can disclose private data, change a system or produce an unauthorized tool call. This article distinguishes direct from indirect prompt injection and explains why the confused-deputy model is more useful for assessing consequences than the analogy to SQL injection. The evidence includes a dealership chatbot’s one-dollar price concession in chat, disclosed vulnerabilities in Slack AI and Microsoft 365 Copilot, controlled demonstrations involving memory and coding tools, and a separate tribunal decision about misleading chatbot advice. The article examines what filters and hierarchy training have achieved in experiments, then evaluates tool authorization, sandbox coverage, data flow policies, egress controls and human approval for consequential actions.
An old problem in a new suit
On September 12, 2022, Simon Willison wrote up a demonstration that prompt engineer Riley Goodside had published. GPT-3 was asked to translate a sentence, then received text that instructed it to return a different answer. The model produced the answer requested by the supplied text. Willison proposed the name prompt injection, deliberately echoing SQL injection, where an application can allow data to change the meaning of a command.1
In November 2022, Fábio Perez and Ian Ribeiro published PromptInject, a framework for evaluating crafted prompts against GPT-3. They investigated two outcomes. In goal hijacking, the input redirects the model toward an attacker-selected goal. In prompt leaking, it induces the model to reveal text from the application’s prompt. The paper describes GPT-3’s widespread production use as motivation for the research. The evaluation itself used crafted inputs against GPT-3.2
The UK’s National Cyber Security Centre (NCSC) drew a distinction in December 2025. Correctly binding input as a value in a fixed SQL statement prevents that value from becoming SQL syntax. The guarantee attaches to the bind position. If an application builds column names, query clauses or other syntax by concatenating input, those paths need their own controls. In an LLM application, role labels and training can help a model distinguish a developer instruction from supplied text. They provide a behavioral signal. Whether the application honors an output as a command depends on a separate security boundary.34
This changes the scope of a security review. A request to summarize a document can be correct at the application layer even when the model’s summary follows an instruction within the document. If that summary is displayed as text, the resulting exposure is different from passing it to a tool dispatcher. The dispatcher can independently check whether the proposed action is permitted, whether the caller is authorized and whether the data can go to the proposed destination. Those checks can remain effective even if the model misreads where the instruction came from. The NCSC considers it possible that the injection class may never be fully mitigated at the model boundary and recommends managing the consequences with system controls.3
Prompt injection appears as LLM01 in OWASP’s 2025 and 2026 lists.56 NIST AI 600-1, the Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, places it under information security risks. Section 2.9 describes indirect injection through data that an integrated application is likely to retrieve, and discusses demonstrated impacts including proprietary data theft and remote code execution.7
Two attack surfaces: direct and indirect
OWASP’s definitions turn on delivery. Direct prompt injection arrives through input supplied directly to the model interface, such as a conversation message. Indirect prompt injection reaches the model through outside content that the application fetches or processes, such as a page or file. An injection can be intentional or accidental. An agent that consumes third-party material needs a threat model for the indirect route even when the person who requested the work is authorized and acting in good faith.5
Kai Greshake and colleagues described and named indirect prompt injection in a February 2023 preprint. The May 2023 revision describes experiments with real and synthetic LLM-integrated applications, including web-connected chat and code-completion systems, and considers what could happen when one affected system can place material where another will retrieve it. The key change in attacker position is that an application may retrieve content the attacker can influence without ever giving the attacker a session in the application.8
In PromptArmor’s Slack AI test, the retrieval system combined messages from a private channel the requesting user could read with a post from a public channel.9 Microsoft’s GitHub research documented attempts to steer workflows through issue content supplied to the model, including content hidden in the rendered issue but present in its source.10 Invariant Labs demonstrated hidden instructions in Model Context Protocol (MCP) tool descriptions in a tested client configuration.11 OWASP also describes multimodal scenarios in which a model processes instructions carried in an image alongside text.5
Other delivery vectors to consider in a threat model include email attachments, résumés, documentation, commit messages and API responses. For each example, ask who can influence the content, when the agent sees it and what authority the agent has at that moment. A file upload reviewed by a summarizer exposes different actions from the same upload reviewed by an assistant that can email its findings. A person could deliberately test the former through direct input. An applicant who submits a file for someone else’s assistant to evaluate reaches it through the indirect route.
The dealership example illustrates the distinction. A user got the bot to write that it agreed to sell a Tahoe for one dollar. The interaction was direct and the reported result was chatbot output.12 In the Slack case, the model got its instructions from a retrieved message that did not originate in the victim’s own query. That difference matters when investigating an outcome. The victim’s prompt can look ordinary while the evidence of influence sits in a different source with different access controls.9
Jailbreaking and prompt injection
OWASP describes jailbreaking as a form of prompt injection that causes a model to disregard its safety protocols.5 An injected instruction can also ask for behavior the model ordinarily permits, such as choosing prose to display or asking to use an available tool. A model can still follow untrusted instructions in its generated output even if it refuses content that its safety training prohibits. A consequential tool call then depends on the application’s authorization and execution path. Giving model-generated arguments to a privileged tool is where a behavioral problem can cross into a system action.34
OWASP’s examples include text delivered in fragments and instructions in multimodal content. A bounded real example is CVE-2024-5184. The assigning authority describes direct prompt injection in EmailGPT that can reveal its hard-coded system prompts or induce unwanted responses. The CVE establishes that behavior in the assistant interface.513
The deputy is confused, and it holds your keys
A confused deputy is a privileged intermediary that a less-privileged party induces to misuse its authority. MITRE lists the term as an alternate name under CWE-441, Unintended Proxy or Intermediary.14 Simon Willison applied the framing to AI assistants in April 2023. The user authorizes the assistant to use a calendar, mailbox or other tool. A third party controls some of the material the assistant reads. Prompt injection can steer the assistant toward using authority the third party lacks.15
The NCSC describes the model as an inherently confusable deputy and proposes sizing the potential impact by asking what would happen if an attacker had direct access to the agent’s tools and APIs. That is a way to model the worst case. It also reports an exchange between Willison and Baibhav Bista about reducing an agent’s privileges when it processes information from someone else. A practical application is to keep an email summarizer’s document-reading step outside the context that can exercise sensitive tools. The agency’s assessment is that model-level mitigation may remain incomplete, which motivates containment and monitoring.3
An isolated agent can still present text that persuades a user to do something unsafe. Willison’s dual-model discussion gives a social-engineering example where the displayed response asks the reader to transfer private information. This is a separate path from a tool call. The person who sees the response can have authority or network access unavailable to the agent. Design approval and display around the actual action the person would take and the information they would send.15
What filtering can achieve
Delimiters and detectors. Willison’s 2022 account describes a quoting workaround and a subsequent counterexample. It also describes a model-based detector that can itself be steered by the content it is asked to classify. Formatting can help the model identify the intended data, and detection can catch some requests that violate expectations. The NCSC cautions that known-bad phrases can be rephrased and advises evaluating mitigation claims against residual risk.13
Retrieval and trust. A retrieval-augmented generation (RAG) pipeline creates a security problem if it treats a relevant document as an authorized instruction source. Relevance answers a different question from who may direct an action. OWASP says that retrieval and fine-tuning do not fully mitigate injection. In the Slack AI demonstration, a search combined attacker-authored text with content the requesting user was authorized to retrieve. The result crossed another boundary only if the user followed the link created by the assistant.59
Classifier scope. EchoLeak illustrates a failure across multiple controls. The email’s business framing mattered to the cross-prompt injection classifier. The vulnerability also depended on how Copilot handled output and which request paths its deployment permitted. A test that checks only whether suspicious email gets flagged leaves the behavior of the renderer and its network permissions to be evaluated separately.16
Measured reductions. Microsoft’s Spotlighting study marked untrusted content through techniques such as delimiting, encoding and tagging. In experiments with GPT-family models, the study reported attack success dropping from above 50% to below 2% for effective configurations in document summarization and question answering. Task efficacy depended on the configuration. The authors found little effect on most tested NLP tasks when encoding was paired with GPT-4, while the same approach substantially hurt GPT-3.5’s performance. In a separate study, OpenAI’s Wallace and colleagues applied instruction-hierarchy training to GPT-3.5 and reported improved robustness, including on attack types held out of training. AgentDojo provides a different experimental setting, with 97 tasks and 629 security test cases. Its authors reported failures on ordinary tasks as well as failures under attack, which makes measuring the no-attack baseline important.17418
Enforced controls. The NCSC endorses deterministic safeguards and cites CaMeL as an example. CaMeL translates a trusted request into a program and applies policies to the use of data at tool calls. The model experiments and the system design answer different questions. One measures how often a model handles a particular input correctly. The other asks whether a particular action or transfer can occur under policies the model does not control.319
What the public record shows
The cases below carry different kinds of evidence. A public chatbot reply shows that an interaction changed the response. A disclosure or controlled test can establish technical impact under specified conditions. A tribunal decision establishes findings on the facts before it. The table identifies the category so that a demonstrated consequence is never counted as an observed customer compromise.
| Date | Case | Evidence type | Reported result |
|---|---|---|---|
| September 2022 | remoteli.io Twitter bot | Observed probing | Replies steered the bot to issue a threatening response.1 |
| December 2023 | Chevrolet of Watsonville | Observed prank | Bot wrote that it agreed to a one-dollar Tahoe price. The vendor took the bot offline for that dealer.12 |
| January 2024 | DPD parcel chatbot | Observed prank | Bot swore and criticized DPD. The company disabled the AI element.20 |
| February 2024 | Moffatt v. Air Canada | Tribunal finding | Misleading chatbot advice about bereavement fares led to a finding of negligent misrepresentation.21 |
| August 2024 | Slack AI | Disclosed vulnerability and controlled demonstration | Research showed how a click could disclose a value the requester was authorized to read.9 |
| September 2024 | ChatGPT macOS app | Controlled demonstration and disclosure | Researcher planted persistent instructions and demonstrated disclosure in later sessions.22 |
| October 2024 | Claude Computer Use | Controlled demonstration | A web page steered the test agent into software execution and a command-and-control connection.23 |
| April 2025 | MCP tool poisoning | Controlled demonstration and security notification | A malicious tool description steered a tested client. A follow-up demonstrated cross-server disclosure of WhatsApp chat history already in the model’s context, with user confirmation still required for the send call.1124 |
| June 2025 | EchoLeak, Microsoft 365 Copilot | Disclosed production vulnerability and proof of concept | Demonstrated a zero-click disclosure path for retrieved context. Fixed by public disclosure on June 11.2516 |
| Early June fix, August 2025 disclosure | Claude Code DNS egress | Disclosed vulnerability and controlled demonstration | Research showed unauthorized data transmission through DNS. The vendor lists version 1.0.4 as patched.2627 |
| June 2026 report | Public-fork issue-triage workflow | Observed workflow manipulation | Microsoft reported that the bot appended malicious content to a documentation file. Visitor impact depended on the change reaching the rendered site.10 |
| May 5 mitigation, June 2026 publication | Claude Code GitHub Action | Separate lab finding | Microsoft demonstrated workflow-key exposure in a lab.10 |
The pranks that were warnings
In September 2022, replies steered remoteli.io’s Twitter bot away from its task of responding positively about remote work. Willison’s screenshot records the bot’s threat to overthrow the president if he did not support remote work. In December 2023, a user got the Chevrolet of Watsonville chatbot, powered by Fullpath’s ChatGPT integration, to write that it agreed to a one-dollar price for a 2024 Tahoe. Fullpath told Business Insider that it shut down the bot for that dealership. The report documents the response in chat and the shutdown.112
In January 2024, customer Ashley Beauchamp got DPD’s chatbot to swear, criticize the parcel carrier and compose a haiku. DPD told the BBC that an issue followed a system update and that it disabled the AI element. These exchanges demonstrate susceptibility in particular interfaces. A reader can observe the model departing from the expected task and the company responding to the result. From those public interactions alone, the available evidence ends at what the bot displayed and what the companies reported doing about it.2012
A tribunal finding about chatbot advice
In November 2022, Jake Moffatt used Air Canada’s chatbot to ask about bereavement fares. It advised that Moffatt could request the discount within 90 days of ticket issue. Moffatt paid C$1,630.36 for two flights and first applied on November 17, after the November 12 outbound flight and before the November 18 return flight. The airline refused and pointed to a page explaining that the fare could not be claimed retroactively.21
British Columbia Civil Resolution Tribunal member Christopher Rivers characterized Air Canada’s position as effectively treating the chatbot as a separate legal entity responsible for its own actions. He considered the chatbot part of the airline’s website. The negligent misrepresentation finding turned on Air Canada’s duty of care, the misleading advice, the airline’s failure to take reasonable care to ensure the chatbot’s advice was accurate, Moffatt’s reasonable reliance and the resulting loss. Rivers awarded C$650.88 in damages and C$812.02 including interest and fees. This is an accountability example from a customer information interface. The decision makes no finding of prompt injection and provides no evidence of a tool-using agent. Its operational implication is that an interface can make representations on an organization’s behalf even when the organization also publishes correct information elsewhere.21
Disclosure paths in enterprise assistants
In August 2024, PromptArmor demonstrated indirect injection in Slack AI. A public channel post was eligible to appear in search results, and the victim’s search also returned a value from a private channel the victim already had permission to read. The assistant put the private value into a link presented as part of its response. Transmission to the unauthorized recipient in the test depended on the victim clicking the link. Showing the link in the response did not itself make that request. Slack’s intended search permissions explained why the two items could reach the same context. They did not authorize exporting private data.9
PromptArmor also reported that Slack AI had expanded document ingestion shortly before the disclosure. The researchers identified documents as a prospective route and explicitly did not test document injection. That distinction matters when extending a threat model. A security team may decide a path is worth testing based on the data it can introduce and how the response is used. Until it observes the path or verifies a blocking control, the result remains a hypothesis about the deployment.9
In September 2024, Johann Rehberger demonstrated that untrusted content could induce ChatGPT to write persistent instructions into memory and later disclose data across sessions. He reported a fix for the macOS application’s egress path. In October, he published a separate controlled demonstration in which web content steered Claude Computer Use into downloading and running software and connecting to command-and-control infrastructure. Both establish what happened in a research setup. Neither establishes a customer compromise.2223
EchoLeak was a demonstrated zero-click vulnerability in production Microsoft 365 Copilot. The proof of concept used a crafted email that could enter retrieval during a normal query about its topic. The demonstrated chain could disclose sensitive information available within the retrieved context without a click on a link or manual opening of the email. Phrasing addressed part of the classifier problem. Output handling and a permitted network path were also necessary to the chain. The case study documents a weakness in a network path that this deployment’s browser policy permitted. Microsoft rated CVE-2025-32711 critical. It was fixed server-side by the June 11, 2025 public disclosure, and the sources document no customer breach.252816
Coding agents and CI/CD
Coding agents can receive repository content from parties who lack write access to the project and can have tools with substantially greater authority. Rehberger’s Claude Code DNS disclosure describes a test where untrusted code under review influenced the agent, and a previously allowed network operation provided an unauthorized path for local data. The researcher dates the fix to early June 2025 and published the disclosure in August. Anthropic names version 1.0.4 as patched. The defensive question is which network operations an agent can initiate when review content is in its context.2627
In a June 2026 report, Microsoft described a lab result for Anthropic’s Claude Code GitHub Action. The workflow had a sandbox for its shell tool. A separate in-process file reader operated outside that boundary and could reach sensitive process data even though the shell path was isolated. Microsoft demonstrated workflow-key exposure in the lab, reported the issue to Anthropic on April 29, 2026, and dated the mitigation in Claude Code 2.1.128 to May 5. Microsoft advised constraining credentials, reviewing the permissions of every tool and hardening instructions about what repository material the model should treat as untrusted.10
The same research documents observed probing against public repositories. In one public fork, Microsoft observed manipulation of an automated issue-triage workflow. An actor without direct repository write access induced a bot with delegated authority to propose repository changes to append malicious content to a documentation file. Microsoft suggested the fork could have been a place to test payloads before trying them elsewhere. Any effect on visitors would have depended on a change being accepted, built and served with executable content under the site’s and visitors’ browser controls. Microsoft wrote that “untrusted inputs like GitHub issues must be treated as hostile by default.”10
These are two distinct findings in one report. The first asks what an isolated tool can do when a neighboring tool can still see the host process. The second asks whether delegated write or proposal authority is reachable by an outside contributor’s input, then whether review and build controls can stop the proposed change before publication. Verification belongs at both boundaries.10
Secrets live where agents read
The cases give several concrete combinations of source, access and egress. Slack AI could retrieve a private-channel value because the requester was a member, and the attack content entered the same search results from a public post. Access to the value was expected at retrieval time. Export through a link relied on a separate user action. EchoLeak drew from sensitive material available in Copilot’s context. The case study describes the model selecting data from that available context. It does not establish a universal ability to locate any secret or an internal ranking mechanism that makes the choice. The request path in EchoLeak was allowed in that deployment, which is compatible with a browser enforcing the policy it was given.916
The GitHub Action lab result concerned a workflow credential accessible through an in-process tool. Restricting the shell left that reader’s access question open. The operation worth auditing is each tool’s access to credentials and other sensitive data under the identity it runs as. A service’s ability to read a secret for its own work does not require exposing a general-purpose route for the agent to read the same value. Give the assistant only the data and operations needed for its task, and validate what it can do from the identity and process that perform each operation.103
Persistent context introduces a different failure mode. Rehberger’s ChatGPT demonstration used stored instructions to influence later sessions. OWASP ASI06 covers corruption of stored or retrievable context that changes later agent behavior. The concern is the integrity of what the agent later uses to plan or act. Ordinary retention of sensitive data raises its own questions about confidentiality, retention period and who can read or remove it. Controls for memory should account for both the authority of a stored entry and the sensitivity of the data it contains.2229
Tool ecosystems and MCP metadata
The Model Context Protocol allows servers to advertise tools with natural-language descriptions. Those descriptions reach a model as context. Invariant Labs demonstrated in Cursor that a malicious MCP server could advertise a tool whose description influenced the assistant, including how it used tools from other connected servers. In its April 2025 notification, Invariant also named Anthropic and OpenAI among providers it considered susceptible and named clients including Cursor. The evidence published in the report concerns particular integrations and configurations. Influence depends on which descriptions reach the model and which actions the client permits.11
The team’s follow-up tested Cursor with both an untrusted MCP server and an already connected WhatsApp MCP integration. The demonstrated transfer was limited to chat history already in the model’s context. The send call still required user confirmation. The confirmation dialog could mislead the user by displaying an incomplete view of the proposed action, a concrete reason to make the full action and destination legible before approval. Invariant’s MCP-Scan launch described scanning configured servers for suspicious tool descriptions, cross-server influence and changes to tool descriptions. Those checks give an operator specific signals to investigate. The runtime still needs to enforce the permissions of each tool and integration.2430
OWASP’s 2026 agentic guidance classifies related system risks under Agent Goal Hijack, Tool Misuse and Exploitation, Unexpected Code Execution, and Memory and Context Poisoning. A tool inventory can document which server supplied each capability, what authority the client gives it and how to revoke it. It can also inform a review when a server changes the tool descriptions an assistant sees.3130
Designs that limit what an injection can do
These patterns combine enforceable permissions and data flow controls with probabilistic aids and human review. Assign each control an explicit job. A classifier may catch a suspicious input, a confirmation may get a human decision, and a tool policy can refuse an unauthorized action even if the model and classifier both accept the input.3510
- Enforce least privilege at the tool boundary. Give the application scoped credentials and enforce permissions in code. Meta’s Agents Rule of Two limits an autonomous session to two of three properties: processing untrustworthy input, accessing sensitive systems or private data, and changing state or communicating externally. Meta calls for human supervision or another reliable means of validation if all three are necessary. A summarizer can return a draft for review, for example, while the tool that actually sends it checks separate authorization.532
- Require approval for consequential actions. Choose the actions where a decision can materially reduce the risk. Willison cautions that repeated dialogs can train a person to approve reflexively. Invariant’s WhatsApp demonstration shows another limitation: a confirmation can present an incomplete view of the requested operation. Show the real destination, the complete action and the information that would leave, using the arguments the application will actually hand to the tool. Bind approval to those arguments so a subsequent change needs a fresh decision.51524
- Verify isolation for each operation. Microsoft’s GitHub Action example shows why a sandboxed shell says little about a neighboring in-process reader. Inventory the process, credentials, filesystem access and network path of each tool involved in consequential actions. Test expected denials through the interface the agent actually calls. Microsoft’s guidance also recommends prompt hardening. Its role is to steer the model’s treatment of repository content. Independent permissions define what tools can execute.10
- Separate privileges and constrain data flows. Willison’s dual-LLM pattern gives a quarantined model untrusted material and keeps it away from privileged tools. It uses controlled transfers such as opaque references to prevent raw untrusted prose from being treated as a privileged instruction. CaMeL derives a program from a trusted query and applies capabilities and enforced policies to tool calls. Its June 2025 v2 paper, Table 2, reports 77.3% no-attack task success for CaMeL on AgentDojo with o3 High, versus 84.5% using that model’s native tool calling. Other models show different gaps. The formal result is separate from those utility numbers. It applies under the authors’ threat model and to the data flows the enforced policies cover. Ambiguous requests may need clarification, and attacks aimed at persuading the user are outside the intended guarantee.1519
- Control egress at the component that makes a request. Distinguish a client renderer’s requests, network access by tools in the agent process and fetches delegated to a backend service. Data leaves when one of those components makes a revealing request or when another disclosure path actually transfers it. Merely displaying a URL as text can still create risk if a person follows it. Restrict outbound destinations and automatic fetching according to which component acts and what data it can see. In EchoLeak, an allowed request path was part of the disclosure chain, so review permitted service paths as well as direct destinations.916
- Mark provenance as a behavioral aid. Spotlighting provides a way to identify material as untrusted within the model input. Its reported success and task-efficacy results apply to its GPT-family experiments and depend on how provenance is marked. Adoption still calls for evaluating the actual workload. Keep the permission check in force whenever the source can affect a tool request.173
- Record enough evidence to investigate consequential actions. Capture source references, tool identity, authorization or approval results, relevant arguments and action outcomes to the extent needed to reconstruct what occurred. Minimize or redact secrets and restrict log access and retention. The NCSC discusses fuller input and output capture as a monitoring option. Use it selectively when narrower evidence cannot answer an important question, with appropriate protection and retention. Exercise these controls with controlled adversarial tests alongside ordinary utility checks.318
- Validate model output at its destination. Treat generated tool arguments and structured results as data until the receiving code has checked types, authorization and destination constraints. Escaping and safe interfaces are specific to the receiving component. OWASP tracks downstream handling separately from prompt injection under Improper Output Handling, LLM05 in its 2025 guidance and LLM10 in the 2026 edition.336
Guidance, taxonomies and the paper trail
OWASP’s lists help describe which system property failed. MITRE ATLAS gives identifiers for adversary techniques and CWE describes weakness classes. NIST AI 600-1 supplies a risk-management profile. Preserve the source edition in threat models and audit records, since the numbering and names can change.
- OWASP Top 10 for LLM Applications. LLM01 already meant Prompt Injection in the archived 2023 v1.1 list and retains that name in the 2025 and 2026 editions. In 2026, Excessive Agency (LLM03) describes the consequences of excessive authority. Sensitive Information Disclosure (LLM02), Hidden Context Exposure (LLM08) and Improper Output Handling (LLM10) describe related disclosure and downstream risks.3456
- OWASP Top 10 for Agentic Applications 2026. The guidance includes Agent Goal Hijack (ASI01), Tool Misuse and Exploitation (ASI02), Unexpected Code Execution (ASI05) and Memory and Context Poisoning (ASI06). ASI06 is the relevant entry when corrupted retained context can influence later plans or actions.3129
- NIST AI 600-1. The July 2024 Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile addresses prompt injection under Information Security in section 2.9 and distinguishes direct and indirect delivery.7
- MITRE ATLAS and CWE. ATLAS lists Direct, Indirect and Triggered as sub-techniques of AML.T0051, LLM Prompt Injection. CWE-1427 covers improper neutralization of inputs used for LLM prompting. CWE-441 covers unintended proxies or intermediaries, including the confused-deputy pattern.353614
- NCSC secure-design guidance. The agency relates its recommendations to ETSI TS 104 223, which addresses baseline cybersecurity requirements for AI systems. Its discussion treats residual risk as something the deployer can evaluate, reduce and monitor.3
Choosing how much autonomy to give the agent
Does untrusted data have to determine an action? Some workflows can fix the operation before gathering outside information. For example, a trusted request can specify where to save a summary, while the retrieved document supplies its subject matter. Other requests require decisions based on retrieved data. A workflow that asks the system to contact people based on entries in an external document needs rules for which entries can supply recipients and what information those recipients may receive. The CaMeL evaluation discusses the tension when data must influence control flow. If the user’s request leaves the allowable destinations or actions ambiguous, the system can ask for clarification or leave the selection for review.19
What can a policy express and enforce? Policies can restrict which tool may receive a value from a particular source, which destination is authorized and when a proposed action requires a decision. A policy cannot validate user intent by assuming a free-form model explanation is accurate. CaMeL’s security claim is limited to the threats and enforced policies it models. Its utility varies across models and tasks, so compare both ordinary task success and action coverage on the intended workflow. Microsoft’s deployment guidance combines sandbox coverage and least privilege with prompt hardening. Those layers have different jobs and should be tested accordingly.19310
When should the agent stop short of acting? If private data and third-party instructions must occupy the same context, and a proposed state change or disclosure cannot be reliably authorized, residual risk can justify removing that operation from the autonomous session. A reviewed draft is one way to retain part of the task. Repeated confirmation requests can create fatigue, and restrictive policies can block legitimate actions. The decision depends on the potential consequence, what the operator can validate and how much utility remains once the boundary is enforced.32193
What to do differently on Monday
Pick a consequential workflow and trace one plausible request through the system. Evidence for the audit should be specific enough for a second operator to check the result.
- Inventory which content sources can influence the model and record which identity, data and tools the session can use. For Meta’s Rule of Two, check all three properties in that one autonomous session: untrusted input, sensitive systems or private data, and ability to change state or communicate externally. If all three are necessary, verify when supervision or reliable validation intervenes.32
- At tool entry, verify independent authorization for a proposed action, including its destination and the data it would carry. Where a person must approve, verify that the display includes the complete action and that approval applies to those exact arguments.243
- Exercise each sensitive operation through the deployed interface, including file reads as well as subprocesses. Confirm which operations the sandbox actually covers and which renderer or service initiates outbound requests. A blocked shell test alone leaves other tool paths untested.1016
- Reconstruct a consequential action from the retained audit evidence and verify that secrets are minimized or redacted, log access is limited and retention is appropriate. Confirm who can pause the workflow and revoke its credentials when the evidence indicates a tool or disclosure boundary failed.310
Conclusion
Untrusted content can steer a model that reads it. The consequence depends on the authority the surrounding application gives that model and the checks between a proposed action and its execution. The public record includes chatbot pranks, a separate legal finding about misleading advice, disclosed vulnerabilities and controlled demonstrations. EchoLeak demonstrates a zero-click path in a production service. Microsoft’s workflow-key result shows what a file reader exposed in a lab. Each supports a different inference about risk.
For a deployment, use scoped privileges, enforced tool authorization, sandbox coverage and controlled egress to limit what model output can trigger. Use provenance marking, hierarchy training and filtering where evaluation shows they improve behavior. CaMeL illustrates how enforceable data flow policies can provide a scoped guarantee within a defined threat model. Where a sensitive action remains ambiguous or difficult to validate, narrow the agent’s authority and retain enough evidence to tell what it did.
Footnotes
- Simon Willison, “Prompt injection attacks against GPT-3”, simonwillison.net, September 12, 2022. https://simonwillison.net/2022/Sep/12/prompt-injection/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Fábio Perez and Ian Ribeiro, “Ignore Previous Prompt: Attack Techniques For Language Models”, arXiv, November 17, 2022. https://arxiv.org/abs/2211.09527 (opens in a new tab) ↩
- Dave Chismon, “Prompt injection is not SQL injection (it may be worse)”, UK National Cyber Security Centre, December 8, 2025. https://www.ncsc.gov.uk/blog-post/prompt-injection-is-not-sql-injection (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
- Eric Wallace, Kai Xiao, Reimar Leike, Lilian Weng, Johannes Heidecke and Alex Beutel, “The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions”, arXiv, April 19, 2024. https://arxiv.org/abs/2404.13208 (opens in a new tab) ↩1 ↩2 ↩3
- OWASP, “LLM01:2025 Prompt Injection”, OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm01-prompt-injection/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- OWASP, “Top 10 for LLM Applications 2026”, OWASP GenAI Security Project. https://genai.owasp.org/top-10-for-llm-applications-2026/ (opens in a new tab) ↩1 ↩2 ↩3
- National Institute of Standards and Technology, “Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile” (NIST AI 600-1), July 2024. https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf (opens in a new tab) ↩1 ↩2
- Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz and Mario Fritz, “Not what you’ve signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection”, arXiv, February 23, 2023 (v1), revised May 5, 2023 (v2). https://arxiv.org/abs/2302.12173v2 (opens in a new tab) and February v1 full text (opens in a new tab). ↩
- PromptArmor, “Slack AI data exfiltration from private channels via indirect prompt injection”, August 20, 2024. https://promptarmor.substack.com/p/slack-ai-data-exfiltration-from-private (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- Microsoft Defender Security Research Team (Dor Edry and Amit Eliahu), “Securing CI/CD in an agentic world: Claude Code GitHub action case”, Microsoft Security Blog, June 5, 2026. https://www.microsoft.com/en-us/security/blog/2026/06/05/securing-ci-cd-in-agentic-world-claude-code-github-action-case/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- Luca Beurer-Kellner and Marc Fischer, “MCP Security Notification: Tool Poisoning Attacks”, Invariant Labs, April 1, 2025. https://invariantlabs.ai/blog/mcp-security-notification-tool-poisoning-attacks (opens in a new tab) ↩1 ↩2 ↩3
- Katie Notopoulos, “A car dealership added an AI chatbot to its site. Then all hell broke loose.”, Business Insider, December 18, 2023. https://www.businessinsider.com/car-dealership-chevrolet-chatbot-chatgpt-pranks-chevy-2023-12 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- CVE Program, CVE-2024-5184, EmailGPT prompt injection, assigning authority record. https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2024/5xxx/CVE-2024-5184.json (opens in a new tab) ↩
- MITRE, CWE-441, “Unintended Proxy or Intermediary.” https://cwe.mitre.org/data/definitions/441.html (opens in a new tab) ↩1 ↩2
- Simon Willison, “The Dual LLM pattern for building AI assistants that can resist prompt injection”, simonwillison.net, April 25, 2023. https://simonwillison.net/2023/Apr/25/dual-llm-pattern/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Pavan Reddy and Aditya Sanjay Gujral, “EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System,” September 2025. https://arxiv.org/html/2509.10540 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Keegan Hines, Gary Lopez, Matthew Hall, Federico Zarfati, Yonatan Zunger and Emre Kiciman, “Defending Against Indirect Prompt Injection Attacks With Spotlighting”, arXiv, March 20, 2024. https://arxiv.org/abs/2403.14720 (opens in a new tab) ↩1 ↩2
- Edoardo Debenedetti, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer and Florian Tramèr, “AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents”, arXiv, June 19, 2024. https://arxiv.org/abs/2406.13352 (opens in a new tab) ↩1 ↩2
- Edoardo Debenedetti, Ilia Shumailov, Tianqi Fan, Jamie Hayes, Nicholas Carlini, Daniel Fabian, Christoph Kern, Chongyang Shi, Andreas Terzis and Florian Tramèr, “Defeating Prompt Injections by Design”, arXiv, June 24, 2025 (v2). https://arxiv.org/html/2503.18813v2 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Tom Gerken, “DPD error caused chatbot to swear at customer”, BBC News, January 19, 2024. https://www.bbc.co.uk/news/technology-68025677 (opens in a new tab) ↩1 ↩2
- Moffatt v. Air Canada, 2024 BCCRT 149, Civil Resolution Tribunal (British Columbia), decision issued February 14, 2024. https://decisions.civilresolutionbc.ca/crt/crtd/en/525448/1/document.do (opens in a new tab) ↩1 ↩2 ↩3
- Johann Rehberger, “Spyware Injection Into Your ChatGPT’s Long-Term Memory (SpAIware)”, Embrace The Red, September 20, 2024. https://embracethered.com/blog/posts/2024/chatgpt-macos-app-persistent-data-exfiltration/ (opens in a new tab) ↩1 ↩2 ↩3
- Johann Rehberger, “ZombAIs: From Prompt Injection to C2 with Claude Computer Use”, Embrace The Red, October 24, 2024. https://embracethered.com/blog/posts/2024/claude-computer-use-c2-the-zombais-are-coming/ (opens in a new tab) ↩1 ↩2
- Invariant Labs, “WhatsApp MCP Exploited: Exfiltrating your message history via MCP.” https://invariantlabs.ai/blog/whatsapp-mcp-exploited (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- NIST National Vulnerability Database, CVE-2025-32711, published June 11, 2025 (API record). https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-32711 (opens in a new tab) ↩1 ↩2
- Johann Rehberger, “Claude Code: Data Exfiltration with DNS (CVE-2025-55284)”, Embrace The Red, August 11, 2025. https://embracethered.com/blog/posts/2025/claude-code-exfiltration-via-dns-requests/ (opens in a new tab) ↩1 ↩2
- Anthropic, Claude Code security advisory GHSA-x5gv-jw7f-j6xj (CVE-2025-55284). https://github.com/anthropics/claude-code/security/advisories/GHSA-x5gv-jw7f-j6xj (opens in a new tab) ↩1 ↩2
- Microsoft, CVE-2025-32711, “M365 Copilot Information Disclosure Vulnerability,” assigning authority record. https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2025/32xxx/CVE-2025-32711.json (opens in a new tab) ↩
- OWASP, “ASI06: Memory & Context Poisoning,” OWASP Top 10 for Agentic Applications 2026. https://genai.owasp.org/agentic-applications-2026/asi06-memory-context-poisoning/ (opens in a new tab) ↩1 ↩2
- Invariant Labs, “Introducing MCP-Scan: Protecting MCP with Invariant.” https://invariantlabs.ai/blog/introducing-mcp-scan (opens in a new tab) ↩1 ↩2
- OWASP, “Top 10 for Agentic Applications 2026”, OWASP GenAI Security Project. https://genai.owasp.org/top-10-for-agentic-applications-2026/ (opens in a new tab) ↩1 ↩2
- Meta, “Agents Rule of Two: A Practical Approach to AI Agent Security”. https://ai.meta.com/blog/practical-ai-agent-security (opens in a new tab) ↩1 ↩2 ↩3
- OWASP, “LLM05:2025 Improper Output Handling,” OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm052025-improper-output-handling/ (opens in a new tab) ↩
- OWASP, Top 10 for Large Language Model Applications archive, 2023 v1.1 list. https://github.com/OWASP/www-project-top-10-for-large-language-model-applications/blob/main/tab_archive.md (opens in a new tab) ↩
- MITRE ATLAS, technique data for AML.T0051 and its sub-techniques. https://github.com/mitre-atlas/atlas-data/blob/main/dist/ATLAS.yaml (opens in a new tab) ↩
- MITRE, “CWE-1427: Improper Neutralization of Input Used for LLM Prompting”, Common Weakness Enumeration. https://cwe.mitre.org/data/definitions/1427.html (opens in a new tab) ↩

SecSIG