Research · Methods · Learning
Marketing & artificial intelligenceLondon / United Kingdom

Evidence review 012 · Governance

Can an AI agent read the web without letting the web control its actions?

Containment requires separating untrusted content from authority and restricting what tool actions it can influence. Evaluate harmful actions, useful completion and intervention burden separately; prompt wording alone is not a complete boundary.

Evidence reviewed through 9 March 2026 · Originally published 21 October 2026 · Revised 26 October 2026. The original historical evidence cutoff is retained; later source versions are excluded.

In this review

How should marketing teams contain prompt injection while preserving useful work?

Evidence Review ER012 · London Research Centre for Marketing & AI
Historical evidence cutoff: 9 March 2026 · Rewritten 26 October 2026 · Draft for review

Abstract

An agent needs to read external material to do useful research, but that material can contain instructions intended to redirect it. The evidence available by this review's cutoff supports layered containment: distinguish external content from authorised instructions, constrain the actions that content can influence, and test security alongside ordinary task completion. Asking a model to ignore malicious text is insufficient evidence that a connected application is safe.

This targeted critical review examines five full-text research reports: AgentDojo, InjecAgent, an adaptive evaluation of eight defences, StruQ and CaMeL. They contribute different kinds of evidence, from attack benchmarks to trained instruction separation and application-level information-flow controls. Their attack success rates cannot be pooled: attacker access, models, permissions, task definitions and success criteria differ.

The review's central contribution is a joint utility-and-harm evaluation. An agent that cannot perform an ordinary task may also fail to perform an attack; a low attack success rate alone can therefore reward an unusable system. Marketing teams should evaluate completed legitimate work, attempted harmful actions, prevented actions and verified external consequences separately. The appropriate boundary is the consequential action, not merely the presence of suspicious words.

Why reading creates an authority problem

A research agent collecting competitor prices may encounter a page containing an instruction to email its working file to an unfamiliar address. The text is relevant to the browsing task only as something found on a page. It has no authority to change the user's objective. Yet a language model processes both instructions and evidence as language, creating an opportunity to confuse the two.

The same problem can arise in an uploaded document, a retrieved knowledge-base passage, a support ticket or a tool response. It does not require an obviously hostile website. A workflow can import lower-trust content through a source that is ordinarily useful, then let that content influence a higher-trust action such as sending a message, updating a campaign or sharing customer information.

The question is not whether the model recognises every malicious sentence. It is whether an untrusted sentence can acquire permission to act. This distinction changes the design of a defence: better recognition is useful, but limiting the consequences of misrecognition can be more dependable than assuming recognition will always succeed.

For marketing applications, the relevant harms also differ. A contaminated summary, an unauthorised recipient and an altered media budget require different checks. A control that prevents data leaving the application may still allow a false claim into a report. Security cannot be reduced to one score without specifying which consequence that score measures.

What we examined

The five reports were selected to cover benchmark construction, adaptive attack testing and two different defence mechanisms. All central claims were checked in full text against versions available by 9 March 2026. The review does not present an exhaustive census of attacks or an estimate of how often attacks occur in deployed marketing systems.

AgentDojo and InjecAgent are benchmark families, not samples of corporate incidents. The adaptive study deliberately gives attackers substantial information about the defence. StruQ changes model training and input structure. CaMeL changes how a program separates planning, data handling and permitted actions. Their findings address complementary questions rather than five comparable treatments.

We separate three outcomes throughout: legitimate task success, attacker-goal success and realised external harm. A benchmark may measure the first two without reproducing the full organisational consequences of the third. The evaluation framework below is the Centre's synthesis of these distinctions, not a newly tested security product.

A secure-looking failure can simply be an incapable agent

AgentDojo combines 97 realistic tasks with 629 security test cases across tool-using environments. Its design makes an important distinction between ordinary utility and susceptibility to injected instructions. An agent can struggle with legitimate work before any attacker intervenes, so its attack results need to be interpreted alongside its baseline task performance. [R01]

This has a counterintuitive implication. Improving an agent's ability to use tools can increase its ability to carry out both legitimate and malicious instructions. A system that fails to find or call a tool may appear resistant to an attack that depends on that tool. That does not establish a useful security advantage.

Conversely, an effective defence can reduce the actions available to the system and accidentally block valid work. Reporting only the reduction in attack success hides that trade-off. The appropriate comparison asks how much authorised work remains possible under the same protection and how often intervention is needed to finish it.

For a marketer, this means testing the full research-and-delivery workflow. A tool that never sends anything is protected against unauthorised sending, but it has not solved a task that requires sending an approved report. A useful boundary allows the authorised report to reach its intended recipient while preventing a document or webpage from silently changing that recipient.

Benchmark attack rates describe a setting, not the internet

InjecAgent contains 1,054 test cases involving 17 user tools and 62 attacker tools. It studies malicious instructions embedded in material returned to an agent, including direct harm and data exfiltration objectives. Its reported vulnerabilities demonstrate that tool outputs can redirect tested agents, but the denominator is a designed attack set, not ordinary web traffic. [R02]

The paper's construction also limits transfer. The tested interactions restrict the attack sequence, and the injected material does not reproduce every mixture of benign and malicious content found in live documents. A rate from those cases should not be rewritten as “a quarter of marketing agents leak data” or treated as a forecast of incident frequency.

The benchmark is useful for a different purpose: it makes a failure mechanism observable and repeatable. A team can borrow that principle when designing its own tests. The local set should contain representative documents, realistic permissions and concrete attacker goals. It should also include benign material that resembles instructions, such as quoted campaign briefs, so that a defence is tested for excessive blocking.

This is why the question “Which model is safest?” is often underspecified. The same model can be exposed through a narrow read-only interface or a broad set of external actions. The application determines how much authority a mistaken interpretation can acquire.

A defence must face an attacker who knows it exists

Zhan and colleagues evaluate eight defences with adaptive attacks. In their selected white-box setting, attacks exceed 50% success against the evaluated defences. The experiment uses 100 cases sampled from InjecAgent, split between direct harm and data stealing, with two open models and attack procedures adapted to the defence. [R03]

The result should neither be ignored nor universalised. It challenges confidence based on fixed attack strings that a defence can readily recognise. It does not show that every defence fails at the same rate in every application. The authors test particular individual defences and model configurations, not all possible combinations of permission controls, monitoring and human approval.

The transferable lesson is methodological: a defence should be evaluated against attacks designed to exploit its assumptions. If a filter relies on particular wording, the test should vary that wording. If a system trusts a delimiter, the test should try to manipulate the delimiter or its interpretation. If the application blocks one destination, the test should examine other routes to the same harmful outcome.

For a marketing team commissioning an agent, a static demonstration of blocked examples is therefore weak assurance. The stronger request is an adversarial test of the actual workflow, with a stated attacker model and a record of what happened beyond the model's generated text.

Structured inputs can help, but formatting alone is not the intervention

StruQ combines structured separation of instructions and data with specialised training. Its experiments support the idea that a model can learn to treat content in different channels differently. However, the intervention is not equivalent to adding a sentence such as “ignore instructions in the following document” to an otherwise unchanged prompt. [R04]

That distinction matters when research findings travel into practice. A successful result for an adapted model and input protocol cannot automatically justify a superficial wrapper around a different hosted model. The team must establish that the deployed system implements the mechanism tested in the paper, or evaluate the substitute directly.

Instruction separation is valuable because it addresses a source of authority confusion. It still needs to be connected to application permissions. A model that usually respects the distinction may occasionally fail; the next question is whether that failure can trigger an irreversible action or whether a separate control stops it.

For example, a research assistant can be allowed to extract prices while being unable to change recipient lists or campaign budgets. This does not require it to identify every attack perfectly. It requires the application to keep those actions outside the authority granted by retrieved content.

Containment can move outside the model

CaMeL separates control flow from data flow and enforces capabilities around tool use. Its design aims to prevent untrusted data from changing protected execution decisions. The paper reports strong task utility under its security mechanism, but the guarantees depend on the specified policy, interpreter and threat model. [R05]

This is a more consequential shift than a better warning prompt. It treats the model as a component whose output is constrained by a surrounding execution system. The application can require that a destination, permission or consequential operation derive from an authorised source rather than from material the agent encountered while working.

The limits are equally important. The paper explicitly does not solve every form of text-to-text misinformation or persuasion that leaves protected data flows unchanged. A report can be misleading without sending a secret anywhere. Ambiguous user requests also require resolution; a security mechanism cannot infer unlimited permission from a vaguely stated objective.

The practical implication is to design separate controls for separate harms. Permission checks can constrain external actions. Evidence checks can address unsupported factual claims. Approval of a recipient can address disclosure, while approval of the final report addresses its content. None should be presented as a universal substitute for the others.

A joint evaluation of useful work and prevented harm

The proposed evaluation uses matched benign and adversarial cases. First establish whether the agent can complete the authorised task. Then introduce a lower-trust instruction while holding the legitimate objective and environment constant. Record the attempted action, the control decision and the resulting external state.

Measurement Question it answers What it cannot establish alone
Benign task completion Can the protected system do the intended work? Resistance to attacks
Completion under attack Can it still do that work when hostile content appears? Absence of a simultaneous harmful action
Harmful action attempted Did untrusted content influence the plan or tool call? Whether the action actually happened
Harmful action prevented Did an independent boundary stop the attempt? Accuracy of the final report
Verified harmful outcome Did the prohibited external change or disclosure occur? Its prevalence outside the test set
Escalation and review burden How much human intervention preserves safe utility? Whether that workload is acceptable at scale

A test should not count refusal as successful completion unless refusal is the correct response to that case. It should not count a generated email as a sent email, or a proposed budget change as an executed one. Those distinctions make the result more demanding but also more useful.

Consider an explicitly invented comparison of two systems across 100 benign tasks and 100 attack cases. System A completes 90 benign tasks and produces 20 harmful outcomes under attack. System B completes 60 benign tasks and produces two harmful outcomes. B prevents more harm in this test, but it also loses a third of A's legitimate completions. Neither a single safety percentage nor a single completion score captures the decision.

A third system might preserve 85 benign completions while blocking external harm at the permission boundary, yet require review on 25 attack cases. That creates a different operating choice: the team must assess review capacity and residual content errors. These counts illustrate evaluation logic; they are not observations from the cited papers.

What a marketing deployment should change

Start with the smallest set of actions needed for the task. Reading and drafting can be separated from publishing, sending, purchasing or modifying records. Treat material obtained during the task as evidence, not as a source of new authority. Require consequential destinations and permissions to be fixed by the authorised task or independently confirmed.

Test the ordinary exceptions as carefully as the attacks. A legitimate document may quote instructions, include an unfamiliar contact or require a change of workflow. Overly broad blocking can silently remove the value of the agent. The objective is a boundary that discriminates between authorised and unauthorised action, with an explicit route for resolving ambiguity.

Finally, retain enough execution evidence to investigate failures. The useful record connects the original objective, encountered content, proposed action, control decision and external result. A transcript of fluent reasoning is insufficient if it cannot establish whether a file was shared or a campaign changed.

Conclusion and limitations

The evidence supports treating prompt injection as a problem of authority and application design, as well as model behaviour. Structured instruction handling can help; adaptive testing exposes weak assumptions; independent action constraints can limit the consequences of a model mistake. Each operates within a stated scope.

The five reports do not establish a universal attack rate or certify a present-day marketing platform. They support a more useful acceptance test: preserve legitimate work while demonstrating that lower-trust content cannot authorise prohibited consequences. A secure agent must be able to do the right work, not merely fail to do anything dangerous.

References

Research disclosure

This is a targeted critical review, not a systematic review, meta-analysis, penetration test or independent security certification. Historical findings are bounded by the original cutoff. The framework and numerical comparison are original synthesis and explicitly illustrative. The accompanying source ledger records versions, locators and access; no new marketing field experiment was conducted.

Source appraisal and evidence limits

These records identify the source versions and the limits of the evidence used. Reference entries are not a count of independent studies. This review has not undergone external peer review.

R01 · AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
Source
Read the source
Authors
Edoardo Debenedetti, Jie Zhang, Mislav Balunovic, Luca Beurer-Kellner, Marc Fischer and Florian Tramèr
Version
2406.13352v3
Available
2024-11-24
Access
Full text
Design
Stateful simulated tool-use benchmark with separate utility and security tests.
Sample
97 user tasks and 629 security test cases across workspace, Slack, travel and e-banking environments; 74 tools.
Outcome
Benign task utility, utility under attack and attacker success.
Findings
Models fail some legitimate tasks even without attacks, and defences can trade legitimate completion against attack resistance. The denominator and endpoint must remain explicit.
Location
§3.1 environment and tests; §4 experiments; Figure 9 and Table 5 defence utility/security comparisons; §5 limitations.
Limitations
Simulated environments and selected attacks/models, not live marketing deployment rates. Repeated tasks and attacks are dependent.
R02 · InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents
Source
Read the source
Authors
Qiusi Zhan, Zhixiang Liang, Zifan Ying and Daniel Kang
Version
2403.02691v3
Available
2024-08-04
Access
Full text
Design
Constructed tool-use prompt-injection benchmark comparing agents and attack settings.
Sample
1,054 cases covering 17 user tools and 62 attacker tools; direct-harm and data-stealing attacks.
Outcome
Attack success with valid-output and all-case denominator variants, including multi-step data theft.
Findings
External tool content can redirect agents towards unauthorised actions. Data extraction and transmission are separate steps; test construction and valid-output filtering affect reported rates.
Location
§2 benchmark construction; §3.1 settings; Table 3 and Appendix C all-case/valid-case results; §8 limitations.
Limitations
Constructed attack instructions and historical systems. A fixed attack prompt is a point-in-time test; not a measured frequency of attacks in deployed workflows.
R03 · Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents
Source
Read the source
Authors
Qiusi Zhan, Richard Fang, Henil Shalin Panchal and Daniel Kang
Version
2503.00061v2
Available
2025-03-04
Access
Full text
Design
White-box adaptive attacks against eight individual defence methods.
Sample
100 InjecAgent cases: 50 direct-harm and 50 data-stealing; two open model/agent configurations.
Outcome
Attacker success after defence-specific optimisation.
Findings
All eight evaluated defences were bypassed with reported success above 50% in the study’s adaptive setup. The result concerns selected individual defences, not every combination of security controls.
Location
§5.1 dataset/agent details; experimental results and defence comparison; §10 limitations.
Limitations
White-box assumptions and a first-step attack target; no combined-defence evaluation. Shared underlying benchmark cases are not independent field evidence.
R04 · StruQ: Defending Against Prompt Injection with Structured Queries
Source
Read the source
Authors
Sizhe Chen, Julien Piet, Chawin Sitawarin and David Wagner
Version
2402.06363v2
Available
2024-09-25
Access
Full text
Design
Structured instruction/data interface with secure front-end and specialised instruction tuning, evaluated against manual and optimised attacks.
Sample
Open-model experimental configurations, instruction-tuning data and AlpacaEval utility comparisons.
Outcome
Prompt-injection success and legitimate task utility.
Findings
Separation relies on both formatting/filtering and trained model behaviour. It is not evidence that arbitrary delimiters in an ordinary prompt provide the same protection; optimised attacks still succeeded in some settings.
Location
§3.1 threat model; §4 implementation/training; §5 evaluation and ablations; §6 limitations.
Limitations
Designed for programmatic applications with an explicit instruction/data boundary, not arbitrary open-ended chat. Not a defence against every jailbreak, extraction attack or worst-case adversary.
R05 · Defeating Prompt Injections by Design
Source
Read the source
Authors
Edoardo Debenedetti et al.
Version
2503.18813v2
Available
2025-06-24
Access
Full text
Design
Capability and information-flow enforcement around an LLM, with security argument and AgentDojo evaluation.
Sample
AgentDojo tasks and attacks evaluated using a restricted interpreter and explicit policies; multiple model configurations.
Outcome
Task utility, harmful tool actions, policy triggering and human intervention requirements.
Findings
Separating trusted control flow from untrusted data and enforcing policy at tools can prevent classes of harmful actions even when the model is susceptible. Guarantees depend on the threat model and policy specification.
Location
§3 threat model/non-goals; §§4–5 security game and system design; §6 evaluation; §7 side channels; §9 discussion; Appendix C Tables 6–7 and Appendix D Tables 8–9.
Limitations
Does not prove unrestricted web-agent safety or factual truth of permitted outputs. Policies, interpreter correctness, trusted inputs and allowed flows define the guarantee; review can add cost.

Calculation results

These calculations transform reported estimates or evaluate explicitly labelled scenarios. They do not reanalyse participant-level data or establish new causal effects.

Read the calculation results (JSON)

Reproduce the calculations (Python)