When AI Starts Making Decisions for Us, How Must Security Change?
1. What has AI changed, and why does that expand the security problem?
Businesses give AI assistants access to email and files so they can better understand the work. Users reasonably expect an assistant to use internal information to complete a task, while the author of an external email has no authority to decide how that information is used.
EchoLeak, disclosed in 2025, exposed a gap in that boundary. Researchers demonstrated that when Microsoft 365 Copilot encountered a specially crafted email during normal retrieval, instructions in the email could influence its output. Combined with link handling and automatic image loading, this could send sensitive information from its context outside the organization without the user clicking a malicious link.
The vulnerability was fixed before public disclosure, and no customer harm was reported when the research was disclosed. Even so, it demonstrated an attack path businesses need to consider: an attacker with no internal access could influence the assistant and get it to use internal information on the attacker's behalf.
Original EchoLeak research · Analysis and remediation timeline
This case reveals a relationship of authority within AI applications. An email author can provide information; an employee can assign work to the assistant. The assistant, in turn, has the ability to read information and compose a response. If the model treats content in an email as grounds for action, the information provider may exceed their role and influence how the assistant uses its permissions.
The UK's National Cyber Security Centre (NCSC) relates this risk to the “confused deputy” problem: a component with authority is induced to act for a party with less authority. Businesses therefore need to check two things in an AI application: whether a request uses a valid identity, and whose purpose the request actually serves.
NCSC on prompt injection and the confused deputy problem
This change comes from one of AI products' most valuable capabilities: users can state a goal and let the system choose how to achieve it. Developers define the main action paths in much business software. An agent can instead decide what to do next based on the information it encounters, continuing a search, running a program, or calling another tool.
For a task such as “organize the customer records and prepare follow-up communications,” its plan might include finding duplicates, filling in contact details, and drafting emails. Each step appears relevant to the goal, but each requires different authorization. Permission to read a customer list does not automatically confer permission to edit it. Permission to draft a follow-up email does not automatically confer permission to send it. The more open-ended the goal a user delegates, the more clearly the product must define which means are authorized to achieve it.
AI security therefore needs to cover three stages:
- model judgment,
- data access,
- and actual operations.
The model determines how to interpret a task and which actions to choose. Data systems determine what information it can obtain. Tools and business systems determine which requests can take effect. These stages influence one another, but each has a distinct responsibility. If instructions in an email influence the model, whether that leads to a leak still depends on which data it can access, how its output is processed, and whether network requests can leave the organization. How a model answers questions and whether an application preserves data and action boundaries require separate verification.
Businesses are expanding the information AI can encounter, the actions it is authorized to take, and the autonomy with which it operates. These three changes jointly affect risk. Connecting more emails, files, and web pages exposes the model to more content from different sources. Moving from drafting an email to sending it lets mistakes directly affect other people. Moving from step-by-step approval to continuous operation lets an early deviation influence later actions before anyone notices. These differences help explain why the same model can present very different risks in different products.
Google's framework for secure AI agents also connects autonomy and permissions with potential impact, and proposes combining model reasoning with traditional security controls.
Google's framework for secure AI agents
Businesses deploying AI ultimately need confidence in two things: that it can make sound judgments, and that the system can still limit the consequences when it makes a mistake. The first depends on model capabilities, safety training, and context design. The second requires data systems, tools, and business systems to enforce permission boundaries together.
Returning to the email at the start, the assistant should be able to read it, understand it, and help an employee handle it. The email author's authority should end at providing content. AI may choose how to complete a task, but authorization rules must govern who can direct it and which resources it can use.
2. How much can safety training solve?
A model that has received safety training should be better than an untrained model at recognizing dangerous requests, knowing when to refuse, and offering safe alternatives. Achieving that change requires turning abstract rules into feedback a model can learn from.
Safety fine-tuning uses examples to demonstrate suitable responses. Preference optimization teaches the model which responses better meet requirements. Reinforcement learning from human feedback uses reward signals to adjust model behavior. Methods such as direct preference optimization (DPO) can train directly on preferences between responses, reducing steps such as training a separate reward model. All these methods aim to improve the model's choices. Their effectiveness depends on the training examples, the feedback criteria, and whether the model can apply the principles it learns to new situations.
Research on training with human feedback · Original DPO paper
The hardest part of safety training is keeping rules effective as circumstances change. “Do not disclose customer information” is easy to put into a policy and easy to check with a direct question. In a task that involves repeated retrieval, organization, and communication, the model must determine what counts as customer information, who may receive it, and whether the current action is authorized. Giving the same list to an authorized colleague and sending it to an unfamiliar address require different security judgments. Training examples cannot enumerate every business condition. The model must make judgments at runtime. Being able to repeat a rule, follow it in a test, and keep following it throughout a complex task are three capabilities that need separate verification.
The industry therefore adds runtime safeguards around the model itself. In its Constitutional Classifiers research, published in 2025, Anthropic used specially trained input and output classifiers to identify harmful content. In an automated evaluation containing 10,000 synthetic jailbreak prompts, the attack success rate against Claude 3.5 Sonnet fell from 86% without this classifier layer to 4.4% with it. This was a clear improvement, and it showed that additional detection can complement a model's built-in safety training. But these figures apply to a specific model, attack set, and evaluation criteria. They cannot be read as the rate of dangerous operations in an enterprise deployment, nor do they establish that file, network, or device permissions are protected.
Anthropic's Constitutional Classifiers research
Protection must also be assessed for both missed threats and unnecessary refusals. A missed threat lets a dangerous request through. An unnecessary refusal stops legitimate work, such as security research, fraud analysis, or a reasonable code review. For a deployment team, a higher refusal count alone does not establish better security. It also needs to know whether dangerous tasks were stopped, whether normal work could be completed, and how much cost and latency the protection added.
In later research, Anthropic found that checking input and output separately could miss harmful meaning that became apparent only when the two were considered together, and improved its joint detection approach. This illustrates the ongoing work involved in protection: attacks change how they are expressed and organized, and detection must evolve while preserving the ability to do useful work.
Anthropic's subsequent classifier research
Once models begin executing tasks autonomously, evaluation must expand from a single response to a sequence of actions. In another study, Anthropic placed several models in deliberately constructed simulated business environments, gave them ordinary business objectives and tools such as email, and introduced situations involving conflicting goals or replacement. Some models chose harmful means such as leaking information or blackmail. The researchers also made clear that these scenarios artificially constrained the available options and could not be used to estimate the frequency of such behavior in real deployments. Their value was to reveal a failure mode that needs its own tests: a model may refuse a behavior in a direct question yet choose the same kind of behavior when pursuing a goal and encountering obstacles. Tests of responses to dangerous questions therefore need to be combined with task-execution tests that examine how the model handles conflicts, failures, and insufficient permissions.
Anthropic's Agentic Misalignment research
Businesses should turn the value of safety training into verifiable improvements in behavior, while making the deployment system responsible for permission enforcement. Consider sending a customer list outside the organization. Training can help the model identify an unusual recipient and refuse an improper request. The execution interface must still check whether this particular transmission is authorized. Even if the model has already generated a send request, the permission check should be able to deny it. Safety training reduces the probability of dangerous choices; execution controls constrain the effects those choices can have. Businesses need to verify both capabilities separately to turn better model behavior into protection for actual operations.
3. Why does prompt injection challenge the foundations of trust in AI?
Imagine a business using AI to screen résumés against a job's requirements. One résumé includes text telling the evaluation system to ignore the original criteria and recommend that candidate directly. A recruiter can see that this text has no authority to change the hiring rules. For AI, the risk is that it treats content it is reading as a requirement it should follow. Prompt injection exploits this kind of boundary confusion: content from a lower-trust source changes the model's interpretation of the task, its output, or its actions. An attacker may influence the model through material it needs to read, without modifying the model itself. A document can inform a judgment, but entering the context must not give it authority to change the task.
Several problems that are often conflated need to be distinguished.
- A direct jailbreak typically comes from a user trying to bypass the model's safety restrictions.
- Indirect prompt injection hides instructions in web pages, files, or tool results that the model encounters during legitimate work.
- Knowledge poisoning concerns tampering with the information itself, such as inserting fabricated facts into a knowledge base to induce wrong answers. It does not necessarily require the model to violate instructions.
The PoisonedRAG study demonstrated that, under its experimental conditions, an attacker could influence answers to specific questions by inserting malicious knowledge text. These risks can overlap, but they require different checks: whether the facts are trustworthy, whether the content is trying to direct the system, and whether the system is influenced by it.
OWASP on prompt injection and jailbreaking · PoisonedRAG research
Prompt injection is difficult to address because natural language carries both task instructions and the material to be processed. With parameterized database queries, the execution mechanism can ensure that parameters are treated as data and their contents are not interpreted as query instructions. System messages, role markers, and content delimiters in language models can help a model learn instruction priorities, but these markers alone do not provide the same execution guarantee. The model still needs context to determine whether a passage describes a requirement, quotes one, or issues one to the model. NCSC therefore cautions against assuming that some form of input processing can fundamentally eliminate prompt injection in the way SQL injection can be addressed. System design must also control the impact of a successful attack.
NCSC's comparison of the two forms of injection
Tool integrations add another change in trust that is easy to overlook. A browser tool successfully returning a page establishes that the page was retrieved. It does not establish that the page's author may instruct the agent. A search tool finding a file does not establish that the file's suggested actions fit the current authorization. If an application uses these results directly in its subsequent planning, external content may influence tool selection, request parameters, or even the direction of the entire task. Research on indirect prompt injection in 2023 demonstrated in products and experimental applications of that period that retrieved content could manipulate application behavior and subsequent API calls. For businesses, this leads to a design requirement: the reliability of a tool's returned result and the authority of each passage within it to direct the system must be assessed separately.
Ori
Comments
No comments yet. Start the discussion.