Skip to content

Least-privilege auditing of agent tool calls based on intent graphs and reasoning-guided escalationLeast-Privilege Auditing of Agent Tool Calls with Intent Graphs and Reasoning-Guided Escalation

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2611.11305· Doron Shavit·Indexed by this site · 13 days ago· Originally publishedDefenses

Quick read

Defenses

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

The authors propose an intent-graph audit defense against indirect prompt injection: in AgentDojo replay, the full audit reduces trace-level ASR from 45.7% to 3.3%, but flags 40% of benign tasks.

Threat modelThe user goal and the deployed tool catalog are trusted; the attacker controls the content returned by tools (documents, web pages, messages) and can induce the agent to make arbitrary calls, but cannot modify the goal, the catalog, the extracted graph or the audit loop; call arguments are untrusted. Indirect prompt injection and three identity attacks are evaluated; adaptive attacks against the audit or the guardian are not evaluated.

Questions
LLM agents that call tools face indirect prompt injection: instructions hidden in tool output can drive the agent to make calls the user did not authorize. The authors argue that defenses that inspect text may be bypassed by persuasive payloads, and that what the agent can do needs to be constrained.
Methods
For each task, one LLM call extracts an executable intent graph from the user goal and tool catalog, then deterministic code audits each call (median 5.7 µs); local read-only calls bypass the audit, and calls still flagged are passed to a reasoning guardian with a restricted Python expression tool for review.
Experiments and results
In AgentDojo replay, the full audit reduces trace-level ASR from 45.7% to 3.3%, but flags 40% of benign tasks; read bypass and the guardian reduce benign flags with harmful-step ASR unchanged; the built-in LLM tool filter reaches 6.5% ASR with no utility loss; alignment-score coupling does not help identity drift detection.
Limitations and future work
Limitations listed by the authors include: only one benchmark and one agent model, the trace-level ASR assumption that the agent does not replan after being blocked, no testing of adaptive attacks, the guardian cannot see tool output, and the read-only policy relies on manual tool classification; in the real-time pilot the current agent had no baseline attack successes, and end-to-end validation is still incomplete.
Experimental setupgpt-4o-2024-05-13、gpt-5.2 · AgentDojo(97 个任务、629 个注入场景,workspace/slack/travel/banking 四套件) · ASR (first)、ASR (harmful) et al.
Evaluated models
gpt-4o-2024-05-13gpt-5.2
Benchmarks
AgentDojo(97 个任务、629 个注入场景,workspace/slack/travel/banking 四套件)
Metrics
ASR (first)ASR (harmful)benign calls flaggedbenign tasks flagged/blockedTPR at 5% FPRAUROC
AI summaryResearchers propose a runtime auditing method for agent tool calls that checks tool calls one by one via an executable intent graph to defend against indirect prompt injection. The method uses one LLM call per task to generate an intent graph from the user goal and the deployed tool catalog, then checks each call with a deterministic loop that does not call an LLM, with a median overhead of 5.7 microseconds per check. To restore usability, queries about the user's own state bypass auditing, because the harm of an attack lies in the write or exfiltration step; calls that are still flagged are escalated to a reasoning guardian, whose approach is similar to tool-integrated reasoning models such as START, which can only see the goal, the plan, the call history without tool outputs, and the flagged call, and can verify facts using a restricted Python expression tool. The authors state that a current agent had no successful attacks under baseline attacks, and end-to-end validation remains to be completed.

Researchers propose a runtime auditing method for agent tool calls that checks tool calls one by one via an executable intent graph to defend against indirect prompt injection. The method uses one LLM call per task to generate an intent graph from the user goal and the deployed tool catalog, then checks each call with a deterministic loop that does not call an LLM, with a median overhead of 5.7 microseconds per check. To restore usability, queries about the user's own state bypass auditing, because the harm of an attack lies in the write or exfiltration step; calls that are still flagged are escalated to a reasoning guardian, whose approach is similar to tool-integrated reasoning models such as START, which can only see the goal, the plan, the call history without tool outputs, and the flagged call, and can verify facts using a restricted Python expression tool. The authors state that a current agent had no successful attacks under baseline attacks, and end-to-end validation remains to be completed.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Defending against indirect prompt injection: using intent graphs for least-privilege runtime auditing, constraining what agents can do rather than what they can read.

    Core problem: LLM agents that call tools are exposed to indirect prompt injection—instructions hidden in tool outputs can drive the agent to make calls the user never authorized.

    • Setting and importance: agents built on function-calling interfaces such as MCP act on the user's behalf through email, calendar, files, banking, and messaging APIs, and anything they read may carry instructions; the authors state that defenses that inspect text or reasoning may be bypassed by sufficiently persuasive payloads, so what is needed is to constrain what the agent can do rather than what it reads.
    • Shortcomings of existing methods: the authors consider that existing runtime policy work (AgentSpec, Progent, IPIGuard, etc.) has or may have evaluation shortcuts—calibrating policies with attack labels, giving the extractor the tool list observed in the session, and overlap between calibration and evaluation data; this paper positions its contribution in leak-free evaluation, measured trade-offs, and reasoning escalation, rather than a new policy language.
    • Core observation: the user goal itself already determines most of what a legitimate run needs—the tools involved, some parameter values (recipients, files, dates), and sometimes the order; a graph generated from a trusted goal and a static tool catalog cannot be expanded by injected instructions.
    • The paper proposes: a runtime audit system (intent graph + deterministic audit loop + read-only bypass + START-style reasoning guardian), a leak-free evaluation protocol on AgentDojo, and a negative trial of alignment-score-coupled identity detection.
    • Threat model (copied from Section 3):
      • Goal: evaluate indirect prompt injection, and separately test three identity attacks (splice, drift, hijack).
      • Knowledge/capability: the attacker controls the content returned by tools (documents, web pages, messages) and can induce the agent to make arbitrary calls.
      • Boundaries: the attacker cannot modify the goal, the catalog, the extracted graph, or the audit loop; call parameters are untrusted.
      • Victim system: MCP-like tool-calling agents; adaptive attacks against the audit or the guardian were not evaluated.
  2. What related research exists?

    Related work falls into four groups: policy enforcement, planning and data flow, code reasoning, and scanning and guardrails; the baselines are AgentDojo's four built-in defenses.

    Policy enforcement category

    • AgentSpec [3]: enforces rules written by users in a domain-specific language at runtime.
    • ProbGuard (originally named Pro2Guard) [10]: learns a Markov abstraction of agent behavior and intervenes when a high-risk unsafe state is predicted; agent behavioral contracts [11] add preconditions, invariants and drift bounds.
    • Progent [5]: enforces programmable permission policies on tool calls, and can use an LLM to draft policies from user queries. The authors say this paper shares its least-privilege goal, and its contributions are leak-free evaluation, measured trade-offs and reasoning escalation, rather than a new policy language.

    Planning and data-flow category

    • IPIGuard [6]: has the agent plan a tool dependency graph before execution and restricts subsequent calls; CaMeL [4]: uses a custom interpreter and capability mechanism to separate control flow from untrusted data.
    • AgentArmor [12]: builds a program dependency graph from runtime traces and enforces policies; ARM [13]: adds provenance edges to denied actions. The authors state that their ablation variants only approximate these defense families and are not reimplementations.

    Code reasoning category

    • START [7]: trains a long chain-of-thought model to call a Python interpreter during reasoning. The authors' guardian is START-style: a general reasoning model calls tools during reasoning, but uses a hardened Python expression evaluator instead of an interpreter, and an off-the-shelf model instead of START's trained model.

    Scanning and guardrail category

    • MCP-Scan [14]: inspects tool descriptions and provides a runtime proxy; LlamaFirewall [15]: combines classifiers with an AlignmentCheck module that uses a secondary LLM to audit agent reasoning. The authors say this paper differs in checking calls against a structured plan using code, which is deterministic and cheap per call path, and in invoking the reasoning model only on calls already flagged by the plan.

    Baselines and benchmarks: AgentDojo [2]'s four built-in defenses—spotlighting (delimiting), repeat user prompt, PI detector (classifier), tool filter (LLM)—recomputed from public logs on the same 76 test tasks (Table 2). The authors' positioning: this paper belongs to the "constrain what can be done" line, does not claim to beat the tool filter, but quantifies the security/utility trade-offs of each component.

  3. How does the paper address this problem?

    Three stages: an LLM extracts the intent graph once, deterministic code audits each call, and flagged calls are passed to a reasoning guardian for review; an optional identity fingerprint is also tested.

    Overall approach: turn the user goal into an executable intent graph (Intent DAG), generated with one LLM call per task, then audit each tool call with deterministic code; recover utility with two mechanisms: read-only bypass and a reasoning guardian.

    Problem formalization

    • The intent graph is defined as G = (V, E, Λ, Π, R): goal nodes, prerequisite edges (u→v means v must wait until u is satisfied), a mapping from nodes to authorized tool sets, a mapping from nodes to scope predicates, and repeatable/one-time markers.
    • Alignment score γ(e): 1.0 or 0.6 for ALLOW, 0.2 for FLAG, 0.0 for BLOCK; a verdict of FLAG or BLOCK counts as flagged.

    Phase 1: Leak-free extraction

    • The extractor receives only the system message, the user goal, and the full tool catalog (names, parameter names, one-line descriptions); it receives no conversation-derived information; it outputs a JSON graph.
    • Three rules: list only tools the goal reasonably needs; constrain parameters only to values determined by the goal itself; add an edge only when B cannot proceed without A's result or the goal specifies the order. By default, treat every node as repeatable.

    Scope language and Phase 2 deterministic audit

    • Scope predicates are Python expressions over params, parsed via ast, validated against node/function/method allowlists, and evaluated with empty builtins; compile or runtime failures can be configured as fail-open or fail-closed (0 of 340 generated predicates were rejected, so the choice has no effect). The authors note that restricted eval is not a strong isolation boundary and that production deployments should use a dedicated interpreter.
    • Algorithm 1 has four checks: Check 1 blocks tools that are unplanned or not on the frontier; Check 2 evaluates scope predicates (violations are FLAG); Check 3 simulates nodes unlocked by the call, and the SEVERITY heuristic at θs=0.99 blocks only administrative escalations (it never triggered on malicious calls in the evaluation); Check 4 records taint, and subsequent calls with overlapping string parameters within 30 seconds are flagged but still authorized. This path does not call an LLM.

    Read-only bypass and reasoning guardian

    • Manually, once, the 69 tools across the four suites are divided into 44 local reads, 1 external read (get webpage), and 24 write/outbound actions; local reads bypass Checks 1–4 but still satisfy plan steps. Rationale: an injected read is itself harmless; the harm lies in write or send steps, which remain audited.
    • The guardian (Azure OpenAI gpt-5.2) re-reviews only flagged calls; its input is the goal, the plan, the call history with parameters, the flagged call, and the audit reason; it does not see tool outputs, is told that parameters are untrusted, and keeps the flag if parsing fails; it can use an eval expr tool (the same allowlist evaluator) up to three times. The prompt was written once before evaluation and was not tuned.

    Phase 3 and evaluation protocol

    • Optional identity fingerprint: compute φ over a sliding window of w=20 (tool frequency, parameter entropy, call-interval statistics, mean/trend/variance of γ), judge anomalies by Mahalanobis distance, and compare two baselines: online per-session and cross-session per-subject; adding φ4 means "alignment-score coupling".
    • The evaluation protocol avoids three shortcuts: it does not calibrate the policy using attack labels, does not give the extractor the session tool list, and separates the development set (21 tasks) from the test set (76 tasks); each task runs graph extraction 3 times and results are averaged, with intervals from 2,000 cluster-bootstrap resamples.
  4. What experiments did the paper conduct?

    AgentDojo replay: full audit ASR 45.7%→3.3% but flags 40% of benign tasks; read bypass and guardian recover utility; coupled identity detection is ineffective.

    Experimental setup

    • Target of evaluation: run logs of gpt-4o-2024-05-13 in AgentDojo logs (repository state 2026-06-02), 97 user tasks (workspace 40, slack 21, travel 20, banking 16), 629 important instructions attack runs, of which 300 (47.7%) compromised the agent.
    • Auxiliary model: Azure OpenAI gpt-5.2 serves as the Phase 1 extractor (3 times per task, 291+45 extractions) and as the guardian.
    • Split: 1 of every 5 tasks per suite is the development set (21), the remaining 76 are the test set; results are reported on the 76 held-out tasks.
    • Metrics: ASR (first) (proportion of first malicious calls not flagged, a trace-level estimate assuming a flag means interception and that the agent does not seek another path), ASR (harmful) (first malicious call that is not a local read), proportion of benign calls/tasks flagged and blocked; 95% percentile bootstrap (2,000 resamples, clustered by task).
    • Variants: allowlist, scope-only, ordering-only, full Phase 2, each with/without read-only bypass, plus a sensitivity variant in which get webpage also bypasses.
    • Identity benchmark: the 40 workspace suite tasks are synthesized into sessions, 12 subjects, each with 24 training/8 validation/20 test benign sessions plus 20 test sessions per attack; TPR at 5% FPR and AUROC are reported.

    Main results

    According to Table 1 (76 test tasks, averaged over 3 graph extractions):

    Swipe horizontally to read the table

    PolicyASR (first)ASR (harmful)Benign tasks flaggedBenign tasks blocked
    No defense0.4570.457––
    Tool allowlist0.1020.0960.1620.162
    Scope-only0.0550.0430.3290.162
    Ordering-only0.0810.0730.2850.285
    Full Phase 20.0330.0200.4040.311
    Allowlist + read bypass0.1780.0960.0880.088
    Scope-only + read bypass0.1340.0430.2540.088
    Full + read bypass0.1140.0200.3160.232
    Full + read bypass + get webpage0.1490.0580.2680.175
    • The authors state that most of the protection comes from least privilege: of 1,776 malicious-call evaluations, 80.6% were blocked as unplanned or out of order, 7.1% were scope violations, 1.7% were taint-flagged, and 10.6% were allowed.
    • Component cost: relative to scope-only, ordering edges lower ASR by a further 2.2 percentage points but flag 7.5 more percentage points of benign tasks, and the block rate rises from 16.2% to 31.1%; the authors state that ordering is the weakest component per unit of utility loss.
    • Read bypass has no effect on harmful-step ASR for allowlist, scope-only, and the full design (paired difference 0.0 percentage points); but letting get webpage also bypass raises harmful-step ASR by 3.7 percentage points to 5.8%, and the authors state that URL fetching can exfiltrate data and must remain audited.

    Comparison with built-in defenses

    According to Table 2 (same 76 tasks; built-in defenses are recomputed end-to-end, this paper's variants are replayed): spotlighting ASR 40.2%, repeat user prompt 25.4% (benign utility 82.9%), PI detector 7.9% (benign utility drops to 42.1%), LLM tool filter 6.5% [4.0, 9.3] with benign utility unchanged at 69.7%. This paper's allowlist has harmful-step ASR 9.6% [5.9, 13.5], an interval overlapping that of the tool filter; the full audit is 2.0% [0.7, 3.6], lower than all built-in defenses, but the utility proxy is only 42–61%. The authors explicitly do not claim to beat the tool filter, and note that replay overestimates security (assuming the agent does not bypass a block) and underestimates utility.

    Reasoning guardian

    • According to Table 3 (graph repetition 0, full Phase 2): the guardian overturns 1 of 238 flagged malicious first calls (0.4%), and ASR stays unchanged at 4.1%; it allows 23 of 73 flagged benign calls (31.5%). Under the state-update simulation, benign task flags drop from 40.8% to 34.2% and blocks from 32.9% to 26.3%.
    • Combined with read bypass (Table 4): it overturns 22% (full design, 9/41) and 25% (scope-only, 7/28) of the remaining flagged benign calls, and 0/242 and 0/226 harmful calls are overturned; scope-only + bypass + guardian flags 21.1% and blocks 7.9% of benign tasks, with harmful-step ASR 5.3%.
    • Cost: 311 decisions used 715 API calls, median latency 3.6 s; the guardian acts on only 26.5% of benign calls. The authors state that the gain is real but limited, and about one third of benign tasks are still flagged.

    Identity coupling experiment

    • According to Table 5: on splice and drift, the Phase 2 verdict itself is close to random (AUROC 0.48), and the cross-session detector TPR is 0.242/0.128; adding φ4 lowers cross-session detection by 4.7 (splice) and 3.6 (drift) percentage points, with intervals far from zero.
    • On hijack, the Phase 2 verdict itself has TPR 0.762 (AUROC 0.906), while the behavior detector is only 0.072–0.121; the +4.9 percentage point gain of φ4 on the lean design is considered by the authors to merely re-encode the verdict, and its effect on residual events allowed by Phase 2 is 0.0 percentage points (59 events).
    • Authors' conclusion: alignment scores carry no information about account takeover or drift, and the coupling hypothesis is rejected.

    Other ablations and analyses

    • Plan size: on average 3.5 nodes, 4.1 tools (catalog 11–28), 82.5% have at least one edge, 61.2% of nodes do not constrain parameters.
    • Coverage: plans cover 91.5% of calls in attack-free runs, and 84.9% of runs are fully covered; at least 15% of benign tasks need unplanned tools, and the allowlist blocks 16.2%, close to this lower bound.
    • Sources of development-set false positives: of 35 flagged benign calls, 26 had unsatisfied ordering prerequisites, 2 were scope violations, and 7 were missing tools.
    • Cost: Phase 1 median 3.6 s/task (p95 5.7 s); Phase 2 median 5.7 µs/call (p99 14 µs).
    • Live pilot: gpt-5.2, benchmark v1, 10 tasks × 2 injections; without defense, 0/20 followed the injection (injected text reached 20/20), so no defense configuration was run, and the security numbers remain replay results.
  5. What are some points that can be further explored?

    The authors list 12 limitations, including a single benchmark, no testing of adaptive attacks, and the replay assumption; open questions include end-to-end validation and role-bound intent.

    Limitations and future directions noted by the authors

    • Only one benchmark and one agent model; trace-level ASR assumes no replanning after a block (Section 10, Limitations (1)).
    • The extractor and guardian are LLMs: three graph repetitions cover only sampling variance, the prompt rules were tuned on 4 development tasks, and the guardian was run only once on a single graph repetition (Limitations (2)).
    • Scope is limited to what the goal determines: 61% of nodes do not constrain parameters, and 10.6% of malicious-call evaluations were allowed (Limitations (3)).
    • Adaptive attacks against the audit or the guardian were not tested; call parameters are influenced by the attacker, and targeted payloads may try to persuade the guardian (Limitations (4)).
    • The guardian cannot see tool outputs and cannot verify parameter provenance (Limitations (5)); some flagged malicious calls share a function with the user task, so the overturn rate for malicious calls may be overestimated (Limitations (6)).
    • The read-only policy relies on manual tool classification and on the assumption that "harm occurs in write or external steps"; attacks that exfiltrate data through reads alone can bypass it (Limitations (7)).
    • The identity benchmark is synthetic: one suite, 12 subjects, and the detector is generally mediocre; it was not evaluated on production MCP logs; the scope compiler relies on restricted eval; the comparison with built-in defenses mixes end-to-end and replay measurements (Limitations (9)(10)(11)(12)).
    • Open questions in the conclusion: further reduce benign flags without weakening the allowlist, harden the guardian against adaptive payloads, conduct end-to-end validation on agents susceptible to injection, and bind intent to persistent roles so that account-level attacks become visible.

    Scope of the experiments

    • The evaluated agent is a replay of gpt-4o-2024-05-13 AgentDojo logs, 97 tasks, 629 attack runs, a single attack type (important instructions).
    • The defense evaluation includes 4 ablation variants × read-only bypass on/off, plus recomputation of AgentDojo's four built-in defenses; the guardian uses gpt-5.2 and was evaluated only on graph repetition 0.
    • The identity benchmark covers three attacks—splice, drift, hijack—only the workspace suite, sessions of 20–30 tasks (about 51 calls), plus a sensitivity analysis with 8–12 tasks.
    • The paper does not report the guardian's variance across models or prompts, nor a human evaluation; the live pilot has only 10 tasks and no baseline attack success, and no defense configuration was run.
  6. Summarize the main content of the paper

    Intent-graph least-privilege audit: in replay, ASR 45.7%→3.3%, read bypass and guardian recover utility, alignment-score-coupled identity detection is ineffective.

    A defense paper: for indirect prompt injection against MCP-like tool-calling agents, it proposes runtime least-privilege auditing.

    • Problem: instructions hidden in tool outputs can drive the agent to make unauthorized calls; the authors argue that defenses that inspect text may be bypassed by persuasive payloads, and that what the agent can do should be constrained.
    • Method: one LLM call per task extracts an executable intent graph from the trusted goal and the static tool catalog; a deterministic Python loop audits each call (median 5.7 µs); local read-only calls bypass; calls still flagged are re-reviewed by a START-style reasoning guardian (gpt-5.2, which cannot see tool outputs and can use a restricted expression tool). The evaluation protocol avoids three kinds of leakage: label calibration, session tool lists, and data overlap.
    • Main results: in replay on 76 held-out AgentDojo tasks, the full audit reduces trace-level ASR from 45.7% to 3.3%, but flags 40.4% of benign tasks; the allowlist alone reaches 10.2%, and the authors state that ordering constraints are the weakest component per unit of utility.
    • Utility recovery: local read bypass does not raise harmful-step ASR; scope-only + bypass blocks 8.8% of benign tasks, with harmful-step ASR 4.3%; the guardian overturns 22–25% of remaining flagged benign calls and 0/242 and 0/226 harmful calls.
    • Comparison and negative results: the built-in LLM tool filter has end-to-end ASR 6.5% with no utility loss, and the authors do not claim to beat it; alignment-score-coupled identity drift detection is ineffective, and in hijack detection the audit's own verdict is far stronger than the behavior detector (TPR 0.762 vs. 0.072–0.121).
    • Authors' conclusion: least-privilege auditing is effective on this benchmark but at a utility cost; open problems include reducing false positives, hardening the guardian, end-to-end validation (in the live pilot the current agent had no baseline attack success), and binding intent to roles.

Related papers

Show 3 more papers
Read originalarxiv.org