TL;DR for operators

An AI agent can follow a malicious instruction without successfully carrying it out. In end-to-end tests, two language models frequently proposed attacker-directed tool calls, but a task-bound security monitor reduced actual attacker-goal execution to 1.3% and 7.7%, respectively.

The operational implication is to separate the model’s proposed actions from the system’s authority to execute them. Permissions must specify not just which tools an agent can use, but which recipients, files, parameters, and information transfers are authorised for the current task.

This protection depends on implementation quality and policy completeness. It also leaves a distinct problem: an authorised email or report can contain malicious or false content. Human review may address some of that residual risk, but the paper’s supporting results for review and approval limits are simulated, not evidence from production reviewers.

The model followed instructions that the system refused to execute

Consider an administrative agent authorised to read a supplier email and prepare a response. The email includes an instruction to forward confidential information to an external address. The model may interpret that instruction as part of its task, but the email sender has no authority to expand the agent’s permissions.

This creates two separate security questions: Did the model follow the injected instruction? And did the system execute the resulting unauthorised action?

Mustafa S. Aljumaily and colleagues examine that distinction in a study of deterministic enforcement, prompt guardrails, and human approval for tool-using agents.1

Their end-to-end experiments report the following results for a task-bound monitor, P3:

Model Attacker’s call proposed Attacker’s goal executed Benign completion
Qwen2.5-1.5B-Instruct 64% 1.3% 71%
Qwen2.5-7B-Instruct 84% 7.7% 99%

Source: Section 6.11, Tables 15–16. Each model-defence configuration includes 156 attack episodes and 78 benign episodes. Execution rates correspond to 2/156 and 12/156 episodes.

The larger model proposed the attacker’s specified call more frequently, yet most of those proposals did not produce the intended malicious side effect. That difference is the central finding.

An attacker-controlled instruction can influence the model’s behaviour while a separate enforcement component prevents the resulting operation. The monitor does not need the model to recognise the attack correctly every time.

The remaining executions also matter. They show that controlling tool authority is not equivalent to guaranteeing trustworthy outputs.

Permission must be narrower than tool access

The paper implements a security environment containing 13 synthetic task templates and 12 tools, covering document retrieval, email, files, databases, network requests, shell commands, configuration changes, and industrial setpoints.

Its central mechanism is a reference monitor: a trusted component that checks proposed tool operations against deterministic rules before allowing them to execute.

An agent may possess access to an email tool without having unrestricted permission to send messages. A task-bound capability narrows that authority to the recipients, resources, operations, and limits justified by the user’s original request.

The strongest tested monitor, P3, combines such capabilities with confidentiality-flow restrictions. Reading sensitive information does not automatically confer permission to transmit it elsewhere.

Importantly, the authors evaluate executed unauthorised effects, not merely malicious text or model proposals. This makes the benchmark more directly relevant to operational security.

The implementation-level comparison demonstrates why the exact enforcement code matters:

Security monitor Effective attack variants admitted
Tool allow-list (P1) 27 of 33
Naive argument checks (P2n) 18 of 33
Hardened argument checks (P2h) 6 of 33
Task-bound capabilities and information-flow control (P3) 1 of 33

Source: Section 6.3, Table 4. These are executed argument-fuzzing tests, not estimates of production attack prevalence.

The tested variants include alternative recipient encodings, URL user information, path traversal, shell chaining, and other ways of expressing potentially prohibited operations.

A rule checking an email recipient or file path can fail if it validates a superficial string representation rather than the destination or resource actually used. Canonicalisation and precise argument restrictions therefore form part of the security mechanism itself.

For an enterprise automation team, the practical consequence is that a declared tool policy is insufficient evidence of enforcement. Its implementation needs adversarial tests covering equivalent encodings and the actual side effects produced.

Authorised actions can still carry malicious content

P3 successfully prevents the tested severe unauthorised action classes in the simulation, including exfiltration, configuration abuse, and industrial setpoint manipulation.

But it permits some attacks that operate within technically valid permissions.

An agent may be authorised to generate a report yet insert false information into it. It may be allowed to send a business email while including a malicious link in the message body.

These actions can satisfy resource, recipient, and tool restrictions while violating the user’s substantive intent.

This distinction explains the real-model residual: all attacker-goal executions behind P3 for Qwen2.5-7B belonged to the benchmark’s in-policy semantic-falsification task.

Consequently, the appropriate security test depends on the risk being controlled. Deterministic permissions can establish whether an operation is authorised. They do not, by themselves, establish whether its content is true, appropriate, or free from attacker influence.

A financial-reporting agent, for example, may need both restricted file-write authority and separate verification that reported figures agree with trusted records. The second requirement cannot be inferred from successful permission checking.

More prompt protection can reduce task completion

Prompt-based defences remain relevant, but the real-model results are less uniform than the simulation initially suggests.

The authors evaluate ordinary prompt guardrails, spotlighting that distinguishes untrusted material, and model-based detection.

For Qwen2.5-1.5B, attacker-call proposal rates fall from 67% without defence to 65% with a prompt guardrail, 47% with spotlighting, and 12% with spotlighting plus detection. For Qwen2.5-7B, the corresponding rates are 86%, 55%, 42%, and 0%.

The detector stack’s zero observed proposals for the 7B model is encouraging within the tested static attacks. It does not establish resistance to newly optimised attacks.

Indeed, the simulation assumes that persistent adaptive attackers eventually overcome every prompt-only configuration. Its model-obedience equation imposes an attack-strength relationship that the subsequent real-model calibration does not support.

The distinction becomes especially important in the repeated-attempt analysis. Under a composition of measured static-attack success probabilities, ten attempts produce estimated success rates of 91% and 85% against prompt guardrails on the two models. The detector stacks instead produce 38% and 0%.

These are independence-based persistence estimates, not observed adaptive campaigns. They cannot validate a universal claim that all prompt defences eventually fail.

Security layers also affect legitimate work. Adding spotlighting and detection to P3 changes benign completion from 71% to 44% for the 1.5B model, while the 7B model remains at approximately 99–100%.

This strengthens the case for evaluating each deployed model and defence combination rather than transferring a security ranking across models. It also connects to Cognaptus’s earlier discussion of why agent guardrails must distinguish verification from authority.

Human review can address residual risk, but only within its assumptions

The authors explore a second layer for attacks that pass deterministic checks: taint tracking, which marks activity influenced by untrusted inputs so selected actions can receive additional review.

In the compromised-model simulation, adding taint-triggered human approval behind P3 reduces attacker success from 23.1% to 8.7% and mean harm from 0.69 to 0.26 on a 0–10 scale. It also generates approximately 0.57 review escalations per benign task.

Severity-only approval adds no protection against the tested attacks at severity eight or above because P3 has already blocked them.

The simulation also exposes a weakness of approval without deterministic enforcement. A human-only configuration reaches 100% severe-action incidence under the fully compromised-model attacker. Limiting each episode to one approval reduces that figure to 17.3%, but does not eliminate severe outcomes.

These results depend on an assumed reviewer-detection and fatigue model. No real reviewers were experimentally evaluated.

A separate policy-coverage sensitivity test demonstrates an even more fundamental dependency. When P3’s simulated policy-rule coverage falls from 100% to 80%, compromised-model mean harm rises from 0.69 to 1.62. At zero coverage, it reaches 10.

Human approval cannot reliably compensate for authority restrictions that the system never implemented.

What organisations can conclude from this benchmark

Cognaptus inference: Organisations deploying agents to send emails, modify files, export data, or change operational settings should make execution authority an explicit service outside the language model.

That service should derive permissions from trusted task instructions, validate canonicalised arguments, restrict confidential information flows, and deny actions outside the authorised scope. Security monitoring should record both attempted violations and executed effects, alongside benign completion and false-blocking costs.

Semantic checks and targeted approval are additional controls for actions whose content may be consequential despite valid permissions. Approval limits can constrain repeated requests, while policy-coverage tests help identify missing restrictions as workflows evolve.

These recommendations are architectural implications, not measured deployment outcomes.

The study uses synthetic tasks and two relatively small open-weights models. Its real-model attacks are static, its P3 authorisation rules closely match the evaluation oracle, and its human-review mechanisms are simulated. The authors also report undecodable or empty outputs, especially for the smaller model, introducing uncertainty into the measured rates.

The evidence is therefore stronger for the mechanism of bounding tool authority than for numerical forecasts of attack success in production.

The defensible conclusion is that a model’s susceptibility need not determine which actions an agent can execute. A correctly implemented monitor can restrict those actions independently of the model’s response to hostile instructions. Whether the resulting workflow is sufficiently secure also depends on the completeness of its permissions, the integrity of authorised content, and the cost of additional safeguards.

Cognaptus: Automate the Present, Incubate the Future.


  1. Mustafa S. Aljumaily and Nawar S. Alseelawi and Raghad Alshabandar (2026). Treating the Model as an Untrusted Component: Deterministic Policy Enforcement, Human Approval and Taint Tracking Against Prompt Injection in Tool-Using Agents, with Validation on Open-Weights Models. arXiv:2611.11571. https://arxiv.org/abs/2611.11571 ↩︎