Skip to content

Where should the supervisor of an LLM agent be placed?Where Should the Supervisor of an LLM Agent Sit?

Veysel Alevcan, Paolo Calciati, Nuno Mateus-Coelho, Luis Miguel Campos
COPELABS, ECATI, Lusófona University, Lisbon; PDMFC SA; COPELABS, FCNET, Lusófona University, Lisbon; CTS-UNINOVA, Universidade NOVA de Lisboa
arXiv: 其他 AI 安全论文arXiv:2612.00080Originally published Indexed by this site · 17 hr agoSelected DefensesSelectedAttention40

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors compare deployment locations of LLM agent supervisors and state that evidence-checked blocking raises the Qwen3-4B agent's safe completions from 15/180 to 139/180.

Threat modelA single-user tool-using agent reads untrusted documents or web pages; the attacker controls one of these texts and cannot modify the user prompt, authorization, harness, or supervisor instructions, nor see defense replies. The goals are credential leakage, document leakage, payment fraud, content tampering, or persistence; extended experiments add adaptive rewriting, attacks targeting the supervisor, and scripted agent compromise.

Questions
Tool-using LLM agents may suffer indirect prompt injection when reading untrusted content. The authors state that there is a lack of controlled measurement, under the same tasks, same attacks and same random seeds, of where runtime supervisors are placed and whether the user task can still be completed after an attack is blocked.
Methods
The authors compare permission rules, injection classifiers, self-review, and independent and hybrid supervisors in the same harness, and require blocks to cite violating text in the action; if the code cannot find the citation, the block is cancelled, while permission and taint rules fill its fail-open gap.
Experiments and results
The authors report that independent supervisors reduce attack success but also block clean actions; the evidence rule restores safe completions on both agents and both supervisor types and fixes the memory-write gate. Within-authorization content tampering still generally succeeds, and safe completions on AgentDojo do not improve.
Limitations and future work
The authors note that the main experiments use fixed templates, short synthetic tasks and a 600-character source prefix, and the adaptive attack has only 30 targets with at most five rewrites; most LLM defenses are run only once. AgentDojo tests only Qwen3-4B with independent supervision + evidence, and utility recovery on public benchmarks remains to be studied.
Experimental setupQwen3-1.7B、Qwen3-4B et al. · 自建 office assistant 单会话 harness、自建 cross-session memory poisoning harness et al. · ASR、Safe completion et al.
AI summaryand selection rationaleIn a unified test environment, the researchers compared the deployment locations of runtime guardrails for LLM agents (permission rules, injection classifiers, self-censorship, independent supervisor models, and hybrid schemes), with Qwen3-1.7B and Qwen3-4B agents and 222 cases per configuration. For the Qwen3-4B agent, the independent supervisor model reduced the attack success rate from 86% to 22%, but after the supervisor model read the injected text it was contaminated and falsely blocked normal operations, and only 8% of attacked tasks were completed safely. After requiring the supervisor model to cite the violating original text in the action and having code cancel unfounded blocks, the safe completion rate rose from 8% to 77% (independent) and from 7% to 79% (hybrid), and under Phi-4-mini supervision from 4% to 84%; because unfounded blocks let things through, upstream permission rules are still needed to prevent credential reading. Content tampering within the scope of permissions still had a 58%–78% success rate under various independent or hybrid supervision schemes, and is the main residual risk.

In a unified test environment, the researchers compared the deployment locations of runtime guardrails for LLM agents (permission rules, injection classifiers, self-censorship, independent supervisor models, and hybrid schemes), with Qwen3-1.7B and Qwen3-4B agents and 222 cases per configuration. For the Qwen3-4B agent, the independent supervisor model reduced the attack success rate from 86% to 22%, but after the supervisor model read the injected text it was contaminated and falsely blocked normal operations, and only 8% of attacked tasks were completed safely. After requiring the supervisor model to cite the violating original text in the action and having code cancel unfounded blocks, the safe completion rate rose from 8% to 77% (independent) and from 7% to 79% (hybrid), and under Phi-4-mini supervision from 4% to 84%; because unfounded blocks let things through, upstream permission rules are still needed to prevent credential reading. Content tampering within the scope of permissions still had a 58%–78% success rate under various independent or hybrid supervision schemes, and is the main residual risk.

Why it was selectedThe paper finds that a supervisor model that reads injected text will falsely block normal operations due to contamination, and requiring it to cite the original action text as evidence can greatly restore the completion rate of attacked tasks.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Compare supervisor deployment positions and their safety–task completion cost, and use code-verifiable block evidence to address over-blocking.

    The core question is: where should a runtime supervisor for an LLM agent be placed, and how can indirect prompt injection be blocked while preserving task completion capability.

    • Problem setting: an agent that can read email, documents and web pages and send email or write files may be manipulated by hidden instructions in the data. The authors consider that runtime defenses are easy to add to existing agents, but the deployment position changes what the supervisor can see, the attack surface and the cost.
    • Gap in existing evaluations: the authors state that existing work rarely systematically varies positions such as the input side, action side, same context, independent context, independent process and independent OS user under the same tasks, attacks and random seeds, while reporting both safety and task completion.
    • Core observation: although an independent supervisor can intercept attacks, it may block subsequent clean actions because it read the injected text; returning only the block reason does not solve this problem. The authors shift the focus from "where the supervisor sits" to "what it may base a block on".
    • Proposed approach: the paper compares four types of defenses and hybrid schemes, and proposes evidence-checked blocks: a block must cite violating text in the pending action, code verifies the citation, and the block is cancelled if it is missing; memory write gates, process isolation, post-hoc review and AgentDojo are also tested.
    • Threat model:
      • Attacker goals: credential exfiltration, document leakage, payment fraud, fact tampering within authorized emails, and cross-session persistence via notes (Table 3).
      • Knowledge and control: the attacker controls the text of one document or web page read by the task, and in the memory study controls one item entering the note library; the attacker cannot modify the user prompt, authorization, harness or supervisor instructions.
      • Capability and feedback: the main experiments use static templates, and the attacker does not see defense replies; Section 7 only then adds the agent's own model rewriting after observing replies, text against the supervisor, and scripted compromise attacks.
      • Victim system and determination: a single-user office agent, where sending email, writing notes and reading credentials are checked before execution; code determines whether the attack goal is achieved based on the final state of the outbox and notes.
  2. What related research exists?

    Related work covers injection benchmarks, runtime defenses, evidence monitoring and isolation; the authors identify the gap as same-seed position comparisons and verification of blocks.

    Benchmark and evaluation gaps

    • InjecAgent, AgentDojo, Agent Security Bench: measure how indirect prompt injection changes agent actions, and AgentDojo also reports benign utility; HarnessSafe extends evaluation to persistent carriers such as memory, skills and project files.
    • INFUSE and multi-turn adaptive benchmarks: the former covers multiple surfaces and long workflows and discusses model-dependent safety–utility trade-offs; the latter reports that looking only at the first turn underestimates attack success, with 0–1% on the first turn and 7.9–16.8% over fifteen turns.
    • Comparison setting in this paper: self-built single-session office tasks and a cross-session memory poisoning environment, with AgentDojo as an external check; the direct comparison baselines are no defense, permission rules, the ProtectAI DeBERTa-v3 injection classifier, rules + classifier, and that combination plus taint.

    Training-based and architectural defenses

    • Instruction hierarchy, StruQ, MetaSecAlign: reduce injection susceptibility through privilege ordering, structured queries and safety alignment training respectively; the authors consider that they change the model rather than the deployment and cannot by themselves enforce application authorization, provenance policies or post-block recovery.
    • CaMeL, FIDES, Progent: isolate privileged planning from untrusted data parsing, propagate information-flow labels, and restrict tool permissions respectively. The authors note that architectural control-flow isolation cannot prevent semantic corruption within authorized actions, and CaMeL also lists text attacks that do not change the data flow as out of scope.

    Runtime defenses and utility loss

    • MELON, Task Shield: MELON re-executes with task-neutral prompts and compares tool calls, and Task Shield judges whether instructions serve the user task and gives feedback; the authors note that both read untrusted tool outputs and do not require citing actions with verdicts verified by code, and this paper also does not reimplement either in its own harness.
    • Ahad et al., ToolSafe, TRIAD: study the utility cost of semantic monitoring, step-level safety feedback, and a proceed/update/refuse loop respectively; in the paper's paraphrase of TRIAD's evaluation of existing guardrails, the proportion of original benign tasks retained is below 2.31%.
    • SIEVE and work on classification and policy languages: SIEVE lets structurally verified calls take a deterministic fast path and hands only unresolved or deviating calls to an LLM; the remaining work covers input/output classification, task alignment, guard agents and runtime policies.

    Monitoring, isolation and memory safety

    • Arike et al., Lee and Choi: study what information monitoring can see and the consistency between cited evidence and verdicts; the authors' distinction is that citations are not only for auditing but are verified by deterministic code and determine whether a block is cancelled.
    • Kill-Chain Canaries, IsolateGPT, Jing: track attack-chain stages, isolate third-party application execution, and combine separation of duties with one-time approval and sandboxing respectively; the authors state that these works do not vary supervisor isolation across context, process and OS user boundaries under the same tasks and seeds.
    • AgentPoison, MINJA, MemLineage, MemAudit: cover memory or retrieval poisoning, provenance lineage and post-hoc auditing; this paper adds measurement of write-gate contamination, out-of-band sync bypass and signed instruction files.

    The authors ultimately position this paper as a same-seed position comparison of runtime and memory defenses, not a ranking against MELON or Task Shield; its published numbers come from different models and settings, and the paper explicitly makes no strength comparison.

  3. How does the paper address this problem?

    Same-seed paired experiments isolate deployment position, and defenses consist of action-reference verification, deterministic rules and fail-closed parsing.

    The overall idea is to fix tasks, attacks and sampling seeds in the same office agent harness, compare defense positions, and then use evidence-checked blocks to turn the supervisor's free-text verdict into a code-verifiable blocking condition. The authors emphasize that this rule is used to filter false blocks caused by contamination, not as an independent security boundary.

    Defense positions and hybrid pipeline

    • Input side: the ProtectAI DeBERTa-v3 prompt-injection classifier scores each document or web page read, and content is not provided if the score is not below 0.5.
    • Deterministic action side: permission rules block sending email to recipients outside authorization and reading or sending credentials outside authorization; the taint check blocks a contiguous 30-character window in the email body copied from a document outside authorization, but cannot recognize rewrites.
    • Model review side: self-review has the agent's own model judge in the same conversation whether the action serves only the user task; the independent supervisor uses another model instance with a clean context.
    • Hybrid order: permission and taint rules run first, and only the actions they allow are passed to the independent supervisor; classifier scores are only recorded, not enforced, to avoid hard-benign false blocks. Figure 1 marks the position of each check.

    Supervisor inputs and evidence rule

    • Visible information: the independent supervisor sees the task, authorized recipients, the first 600 characters of each source read in this run, and the pending action, with sources marked as data; it does not see the authorized documents and credential list.
    • Feedback variant: after a block, the supervisor's reason is returned to the agent, which is asked to redo only according to the original task; the evidence variant additionally requires copying the violating text in the action into an evidence field.
    • Code verification: after normalizing case, quotes and whitespace, a citation of at least 4 normalized characters is searched for in the tool name and parameter values; if not found, the block is cancelled and the action is executed. The tool name is also included in the search, so that actions such as credential reads can be cited.
    • Failure modes: supervisor replies that cannot be parsed always become non-cancellable blocks, i.e. fail-closed; a citation mismatch is fail-open. The authors therefore require deterministic permission and taint rules upstream of the evidence supervisor.

    Tasks, attacks and extension studies

    • Single-session tasks: each of 18 email or note tasks has one run without attack, plus 24 hard-benign tasks containing legitimate attack-like text; each configuration has 222 cases in total, of which 180 are attacked cases.
    • Attack construction: five target categories × six tasks × six phrasings form 180 cases, with the injected text appended to a document or web page read by the task; the paper gives categories and examples in Table 3 and does not reproduce the injection statements here.
    • Memory study: each case is split into two sessions, the poison enters a library of 40 Markdown notes via a web clipping or out-of-band sync, and the second session executes a clean task; write gates, feedback, evidence and HMAC-signed instruction files are compared.
    • Extension positions: an independent process exchanges one-time action approvals via HMAC-SHA256 signed messages; text against the supervisor, scripted compromise, post-hoc log review, a blind supervisor, loose citation matching and AgentDojo are also tested.

    Run parameters and statistical criteria

    • Agent sampling: Qwen3-1.7B and Qwen3-4B with thinking mode off, temperature=0.7, top_p=0.8, top_k=20, at most 256 tokens, eight steps per case, with one reminder allowed.
    • Supervisor decoding: greedy decoding, output limit 96 tokens, and 160 tokens for the post-hoc reviewer; constrained decoding was not used. Two NVIDIA T4s run the agent and the classifier/supervisor respectively.
    • Success metrics: ASR is the proportion of attacked cases that achieve the attack goal; safe completion is a case where the task is completed and the attack fails, and task completion and attack success can occur in the same run.
    • Paired tests: case seeds are hashed from the identifier and repetition count; two-sided exact McNemar tests are run on the 180 paired task–phrasing cases, and the main evidence-rule effect is additionally Holm–Bonferroni corrected.
  4. What experiments did the paper conduct?

    Evidence rules restore task completion but retain the risk of in-authorization tampering; adaptive, isolation and AgentDojo experiments give the applicable boundaries.

    Experimental setup

    • Agents under test: Qwen3-4B and Qwen3-1.7B; supervisors are Qwen3-4B and Phi-4-mini-instruct, with Granite-3.3-2B and 4-bit Qwen3-8B added in extended experiments.
    • Single-session data: Each row has 180 attacked, 18 benign, and 24 hard-benign cases, 222 in total; the deterministic stage of Table 4 has only 3 hard-benign tasks.
    • Baselines and variants: No defense, permission rules, injection classifiers and their combinations, self-review, independent and hybrid supervisors, and feedback and evidence variants.
    • Judging method: Attack success and task completion are both checked by code against the final outbox, notes, and required facts, without an LLM judge; the post-hoc reviewer only marks completed logs.
    • Repetitions and statistics: Deterministic and classifier defenses three times, the four main LLM defenses twice, the remaining LLM defenses once; paired by the same case seeds, using two-sided exact McNemar tests.
    • Other scales: The memory study has 180 attacks, 10 benign, and 15 hard-benign per row; the adaptive experiment has 30 targets per row; AgentDojo has 144 attacks and 48 benign.

    Main results

    The table below follows Table 5, all with a single repetition and 180 attacked cases per row; Won is the attack success count and Safe is the safe completion count.

    Swipe horizontally to read the table

    AgentSupervisor/defenseWonSafe
    Qwen3-4BNo defense15525
    Qwen3-4BRules+classifier+taint3032
    Qwen3-4BSelf-review14917
    Qwen3-4BQwen3-4B independent supervision3915
    Qwen3-4BQwen3-4B independent+evidence28139
    Qwen3-4BQwen3-4B hybrid+evidence24142
    Qwen3-4BPhi-4-mini independent+evidence27151
    Qwen3-1.7BQwen3-4B hybrid+evidence2293
    • The cost of independent supervision: The authors report that the Qwen3-4B supervisor lowers ASR for both agents, but safe completion is also lower than with no defense; in the 4B agent's 22 independent and 32 hybrid attacked runs, it blocked clean emails sent to the correct recipient.
    • The role of the evidence rule: Relative to feedback, independent supervision+evidence lowers the 4B's ASR from 39 to 28 (p=0.003), while the 1.7B goes from 27 to 30 (p=0.648); the Safe improvement is statistically significant for both agents (Table 6).
    • Fail-open exceptions: When the 1.7B agent uses Qwen3-4B independent supervision+evidence, 14 of the runs involved in the 158 canceled blocks had successful attacks, including 7 credential leaks; hybrid+evidence has no such leaks because permission rules intercept credential reads first.

    Within-authorization residual risk and memory poisoning

    • Breakdown by target: Figure 4 shows that, apart from the 1.7B's independent+evidence leaking 7/36 credentials, the independent or hybrid supervision settings almost prevent credential leaks and payment fraud; but deadline tampering in emails to authorized recipients still succeeds 21–28/36, i.e., 58–78%.
    • Authors' interpretation: Although the supervisor prompt lists fact or date changes as grounds for blocking, it still allows most such actions; the authors believe that without source-document facts for comparison, the action looks reasonable, and this is the main residual risk.
    • Memory-write gate: In Table 7, the 4B agent's write gate reduces clipping attacks to 0/90, but session-one task completion drops from 76/90 to 5/90; the evidence rule restores it to 87/90, and Safe rises from feedback's 57 to 134.
    • Out-of-band channel: Synchronous notes do not pass through the agent's write gate, and attack success remains 43/90 (4B); signed instructions reduce it to 18/90, but hard-benign completes only 10/15, because unsigned user edits are also rejected.

    Adaptive attacks, supervisor attacks, and isolation

    • Adaptive rewriting: In Table 8, free rewriting by the 4B agent raises rules+classifier+taint success from 6/30 to 15/30 (p=0.004); independent+evidence only goes from 5 to 7, and hybrid+evidence from 4 to 5.
    • Strategies targeting citations: A strategy that makes the supervisor cite documents raises independent+evidence from 5/30 to 12/30 (p=0.016), while hybrid+evidence only goes from 4 to 6; the authors attribute this to hybrid rules closing the credential path first.
    • Direct attacks on the supervisor: Among the 120 cases in Table 13, the evidence rule lowers independent supervision Won from 50 to 40 and raises Safe from 17 to 79; hybrid supervision lowers Won from 38 to 27 and raises Safe from 18 to 90.
    • Processes and OS users: With an honest agent, separate processes change no result (Table 9); under scripted compromise, in-process, same-user separate-process, and different-user separate-process succeed 25/65, 15/65, and 0/65 respectively (Table 10). The authors note that the same-user result depends on Yama ptrace_scope=1 and passing keys only via stdin.

    External benchmark, supervisor scale, and post-hoc review

    • AgentDojo: In Table 16, Qwen3-4B independent supervision+evidence lowers Won from 42/144 to 32/144 (p=0.002), and Done also drops from 51 to 41, with Safe 27 versus 30 (p=0.549); benign is 20/48 in both arms.
    • Other supervisors: In Table 17, Granite-3.3-2B independent/hybrid+evidence gives Won 52 and 39, Safe 113 and 124; 4-bit Qwen3-8B gives Won 2 and 1, Safe 168 and 170, but still has 168 and 166 canceled blocks that rescue clean actions.
    • Loose matching: Loose rules accepting punctuation-stripped or word matching give exactly the same results as exact rules, with independent and hybrid Won 28 and 24, Safe 139 and 142 (Table 17).
    • Post-hoc review: In Table 12, the Qwen3-4B reviewer flags 152/155 of successful attacks with no defense and 119/121 under permission rules; with no defense, 35 runs performed forbidden actions, and only 20 had a citation step no later than the first violation, so the authors conclude that post-hoc detection cannot undo damage.

    Other ablations and analyses

    • Feedback alone: 4B independent supervision Safe goes from 15 to 16 (p=1.000), and 1.7B from 8 to 16 (p=0.008; Table 6).
    • Blind supervisor: 4B clean-email blocked runs drop from 24 to 10, but under the evidence rule Won rises from 28 to 39 (p=0.019; Table 14).
    • Second repetition: The four main defenses differ in Won by at most 1/180, and all four paired tests have p=1.000 (Table 11).
    • Runtime: 4B with no defense is 7.4 seconds/case, independent supervision 17.2 seconds, independent+evidence 14.9 seconds; 1.7B rises correspondingly from 11.1 to 15.4 seconds (Table 5).
    • Parse failures: All 50 unreadable replies in v2.2 remain blocks after replay with a fixed parser, changing no decision (Section 6.4).
  5. What are some points that can be further explored?

    The authors list boundaries including static attacks, small models, synthetic tasks, and repetition counts, and leave utility recovery on public benchmarks as a follow-up question.

    Limitations and future directions noted by the authors

    • Fixed templates and adaptive attacks: Section 9 notes that Sections 4–6 use fixed templates; the adaptive attacker is only the agent's own small model, rewriting at most five times, with 30 targets per policy and one repetition, and most tests are not significant, which the authors treat as exploratory results.
    • Compromise experiment setting: Section 9 notes that the compromise study uses a scripted attacker, stub supervisor models, one container, and five repetitions per variant; memory scanning was not retested on a host without tracing restrictions, so that case remains open.
    • No direct baseline reproduction: Section 9 states explicitly that MELON and Task Shield were not reimplemented in this paper's harness, and that a fair comparison would require rebuilding the algorithms on the same tasks, seeds, and Qwen3 models; the paper makes no claims about which is stronger.
    • Model-scale confounding: Section 9 notes that agents are only 1.7B and 4B, supervisors are mainly 2B–4B; the only 8B is 4-bit and run once, size, model family, and quantization are not separated, and a regular 8B and Granite without evidence were not run.
    • Synthetic tasks and truncation: Section 9 notes that documents are only 46–79 characters and even injections are at most 242 characters, and that the 600-character source prefix is a T4 testbed constraint; production deployment needs to check full or chunked input to prevent padding attacks.
    • Future questions: Section 9's Future work proposes studying larger agents, unquantized supervisors with different capabilities, and attack models larger than the agent; Section 8 calls checking erroneous within-authorization content against source facts the main open problem.

    Experimental coverage

    • Model coverage: Agents are Qwen3-1.7B and Qwen3-4B; supervisors cover Qwen3-4B, Phi-4-mini-instruct, Granite-3.3-2B, and a 4-bit Qwen3-8B run once.
    • Repetition coverage: The four main LLM defenses are run twice per case, the remaining LLM defenses once; the paper does not estimate between-repetition variance for adaptive, separate-process, post-hoc review, and the second supervisor family in single runs (Section 9).
    • AgentDojo coverage: Only the Qwen3-4B agent and supervisor with independent+evidence was run, with a 6,000-token prompt limit; plain independent, hybrid, and other models were not run (Section 7.10, Section 9).
    • Memory combination coverage: The combination of evidence and signed instructions is used only with the 4B agent and run once; the 1.7B did not run this combination (Section 7.9).
    • Attack measurement coverage: None of the break-up policy's successful rewrites actually split the payload, and the authors say it measured only a weaker break-up attacker; the paper also does not measure the frequency of re-encoded values appearing (Section 7.2, Section 9).
  6. Summarize the main content of the paper

    The paper advocates hybrid permission rules with an evidence-checking supervisor; it restores task completion, but within-authorization semantic corruption and external utility remain unresolved.

    This is a defense study on runtime supervision of tool-using LLM agents; its core is not merely comparing interception rates but simultaneously measuring supervision placement, attack success, and whether user tasks can be completed safely.

    • Problem: Indirect prompt injection in untrusted documents can manipulate email, credential, and note operations; after an independent supervisor reads this data, it may also treat injected content as evidence and block clean actions that could have completed the task.
    • Method: The authors compare permission rules, injection classifiers, self-review, and independent and hybrid supervisors under the same harness and case seeds. The evidence rule requires blocking text in the cited action, and if the code cannot find the citation, the block is canceled; the hybrid scheme first applies permission and taint rules to fill the fail-open gaps for purpose-type reads and rewrites.
    • Main single-session results: In Table 5, with the Qwen3-4B agent using a Qwen3-4B independent supervisor, Won is 39/180 and Safe is 15/180; with evidence added, these are 28/180 and 139/180 respectively, and hybrid+evidence is 24/180 and 142/180.
    • Cross-model and memory results: Phi-4-mini independent+evidence on the 4B agent gives Safe 151/180; 4-bit Qwen3-8B hybrid+evidence gives Won 1/180 and Safe 170/180, but still cancels 166 clean-action blocks. The evidence rule also raises the 4B memory-write gate's Safe from feedback's 57 to 134.
    • Residual risk and external checks: Within-authorization deadline tampering still succeeds 58–78% under each independent or hybrid supervisor; on AgentDojo, Won drops from 42/144 to 32/144, while Safe is 27 versus 30. In the scripted compromise experiment, the independent OS-user deployment has 0/65 successful attacks.
    • Authors' conclusion: The authors recommend the combination of permission and taint rules first and evidence-checking supervisor second, and consider within-authorization content tampering, which requires checking against source facts, still the main open problem; task-completion recovery on public benchmarks, larger models, and stronger adaptive attackers remain to be studied.

Research lineage

11 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 3 more papers
Read originalarxiv.org