Skip to content

AgentFlow: A Flow-Centric Policy Language and Runtime Guard Framework for LLM Agent SystemsAgentFlow: A Flow-Centric Policy Language and Framework for Securing LLM Agent Systems

Paper Tracker· arXiv:2608.22868· Basavesh Ammanaghatta Shivakumar, Swarn Priya, Peng Gao·Indexed by this site · 2026-10-04· Originally publishedDefenses

Quick read

Defenses

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

AgentFlow constrains agent data flow with labeled flow and path policies; on AgentDojo, confirmed compromise dropped from 33.0% to 0.0%.

Threat modelThe runtime is assumed trusted and correctly implemented, mediating tool calls, delegation, and modeled response sinks. Attackers may be indirect prompt injectors, malicious tool providers, or compromised sub-agents, and cannot modify the runtime, loaded policies, or reviewed tools, or bypass the mediation path. The goal is to prevent policy-visible flows that violate configured policies. Jailbreaks, hallucinations, unmodeled covert channels, and paths that bypass the monitor are out of scope.

Questions
Harm from agents often comes from how data flows through a chain of seemingly legitimate actions, not just a single dangerous call. Request-level authorization does not remember sources, transformations, and downstream effects, and indirect prompt injection can connect reads and external writes into exfiltration.
Methods
AgentFlow writes policies on sensitivity, category, and trust labels, uses flow rules to constrain single hops, path rules to constrain multi-step, and a reference monitor returns Allow, Deny, or Pause for tool calls and modeled response returns. Before deployment, bounded SMT checks structured fragments.
Experiments and results
On 949 AgentDojo injection cases, confirmed compromise drops from 33.0% to 0.0%, and total utility rises from 46.7% to 63.3%. On 200 AgentDyn Dailylife cases, compromise drops from 73.5% to 0.0%, and utility from 44.5% to 43.5%.
Limitations and future work
The authors state in §8.9 that message flows over-taint and do not infer releases the operator intends to allow. The SMT guarantee is limited to bounded structured abstractions. The evaluation does not name the frontier LLM; except for ASB upstream DPI, breadth checks are deterministic policy-gate replays.
Experimental setupQwen、Hermes et al. · AgentDojo、AgentDyn Dailylife et al. · utility、confirmed compromise et al.
Evaluated models
QwenHermesSonnet 5.5Haiku 5.5
Benchmarks
AgentDojoAgentDyn DailylifeASBInjecAgentBIPIAAgentHarmMCPTox
Metrics
utilityconfirmed compromiseattack successSMT verification resultper-intercept latency
AI summaryThe researchers propose AgentFlow, a data-flow-centric policy language and runtime enforcement model for specifying where sensitive data may flow in LLM agent systems. Policies are defined on labeled runtime edges, constraining which tools may receive sensitive fields, which sinks may receive released data, and which permissions may cross delegation boundaries; the language supports flow rules and path rules, task-scoped capabilities, controlled release, and stateful taint semantics. A runtime reference monitor mediates agent actions, and a verifier based on bounded SMT checks safety properties over structured policy fragments. In the prototype, each of seven safety properties completes verification within 0.5 seconds, and the verifier catches all unsafe policy variants planted in the study. On the 949 injection cases across the four AgentDojo suites, confirmed compromise dropped from 33.0% to 0.0%, and overall utility rose from 46.7% to 63.3%; on the 200-case AgentDyn Dailylife benchmark, confirmed compromise dropped from 73.5% to 0.0%, with utility roughly flat (44.5% to 43.5%).

The researchers propose AgentFlow, a data-flow-centric policy language and runtime enforcement model for specifying where sensitive data may flow in LLM agent systems. Policies are defined on labeled runtime edges, constraining which tools may receive sensitive fields, which sinks may receive released data, and which permissions may cross delegation boundaries; the language supports flow rules and path rules, task-scoped capabilities, controlled release, and stateful taint semantics. A runtime reference monitor mediates agent actions, and a verifier based on bounded SMT checks safety properties over structured policy fragments. In the prototype, each of seven safety properties completes verification within 0.5 seconds, and the verifier catches all unsafe policy variants planted in the study. On the 949 injection cases across the four AgentDojo suites, confirmed compromise dropped from 33.0% to 0.0%, and overall utility rose from 46.7% to 63.3%; on the 200-case AgentDyn Dailylife benchmark, confirmed compromise dropped from 73.5% to 0.0%, with utility roughly flat (44.5% to 43.5%).

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Request-level authorization cannot see the paths along which confidential data flows out through legitimate steps.

    How to write executable policies for cross-step flows of sensitive or untrusted data in LLM agents.

    • Scenario: The authors argue that harm often comes from a chain of individually seemingly legitimate actions, not just a single dangerous call. Reading a record and sending confidential fields via a summary to an external mailbox, treating web text as internal instructions, or carrying out excessive data when delegating are failure modes in the paper.
    • Existing limitations: The authors argue that request-level authorization such as Cedar does not provide end-to-end dataflow state. The authors state that recent defenses improve safety, but the policy location and checking method differ; operators may not control the architecture, and tools can be dynamically registered.
    • This paper's approach: AgentFlow describes constraints with flow rules and path rules on labeled runtime edges, enforced by a reference monitor at execution time, with bounded SMT checking on structured fragments. The authors state the scope is limited to policy-visible mediation behavior.
    • Threat model
      • Goal: Cause policy-visible flows that violate the configured policy, i.e., mediated tool calls, delegation, data release, or modeled response sink outputs.
      • Attacker: Indirect prompt injectors control external content; malicious tool providers control tool metadata or outputs; compromised sub-agents attempt privilege escalation, influencing other parties, or exfiltration. They cannot modify the runtime, loaded policies, or reviewed tools, nor bypass the mediation path.
      • System: Users, agents, tools, data sources, data sinks, and optional sub-agents. The runtime is assumed trusted and correctly implemented. Trust boundaries are user–agent, agent–tool, agent–sub-agent, agent–external system, and agent–tool registry.
      • Non-goals: Jailbreaks, hallucinations, incorrect advice, and misleading answers are out of scope unless they cause mediation violations or reach protected sinks. It does not judge the task semantics of allowed calls. Covert channels not represented as sinks, trusted component flaws, and paths bypassing the monitor are not covered. Given a trusted runtime and correct policy, the authors want to enforce the five properties in §3.
  2. What related research exists?

    Related work is divided into attacks, defenses, authorization and information flow, and runtime monitoring.

    Tool-based agent attacks

    • Indirect injection: Greshake et al. (2023) proposed indirect prompt injection against LLM-integrated applications. AgentDojo and InjecAgent study the same failure mode in tool-based agents.
    • Subsequent benchmarks: BIPIA focuses on final-answer manipulation; AgentDyn uses dynamically generated tasks; AgentHarm studies harmful tool requests; ASB expands the task and tool surface; MCPTox targets poisoned MCP metadata.
    • Other entry points: The paper also writes about tool selection, memory, logs, web content, and multi-agent communication. The authors state that these attacks motivate tracking the subsequent use of untrusted or sensitive content, rather than only filtering suspicious prompts.

    Agent defenses

    • Different positions on the stack: Progent controls tool permissions; SEAgent applies mandatory access control to delegation; Conseca generates task policies; AgentArmor analyzes runtime trajectories. The paper also mentions isolation or integrity guardrails, guard agents, prompt sanitization, and permission prediction. The authors state that this paper's addition is making lineage, labels, and path constraints into explicit policy objects.
    • Recent enforcement systems: FORGE uses Datalog on a dependency graph; FIDES embeds taint tracking into the planner; CaMeL separates privileged planning from isolated data processing; SAMOS wraps an information-flow gateway outside MCP workflows. The authors state that this paper's interface differs: labeled runtime edges, path rules, task-scoped capabilities, and a bounded SMT fragment.

    Authorization and information flow

    • Request-level authorization: Cedar, XACML, Zanzibar, and Datalog-based languages decide whether a principal can act on a resource; Zelkova uses SMT to analyze such policies. The authors state that AgentFlow must record how what is obtained in one step affects later actions or sinks.
    • Classic information flow: Denning's lattice, Myers and Liskov's decentralized labels, and Jif, Flume, Asbestos, and LIO enforce labels in ordinary programs. Declassification and dynamic taint analysis influence propagation models. The authors state that agents expose tool and model calls, not transparent program dependencies, so they treat calls as monitored data-flow steps and add path rules.

    Verification and reference monitoring

    • Pre-deployment analysis: The verifier uses Z3. Margrave analyzes access control policies, FIREMAN checks firewall rules, and cloud policy verification looks for misconfigurations before deployment. The authors state that they apply this kind of checking to bounded label propagation, graph reachability, and path patterns.
    • Execution monitoring: Schneider characterizes the policies that execution monitors can enforce; Ligatti et al. study edit automata; SASI does inline reference monitoring. The authors state that this paper mediates tool calls and modeled response sinks, and reasons about labels, provenance, capabilities, and paths, rather than underlying system calls.

    Baselines and benchmarks: The main baseline is a system with no defenses, and the public manual policy path of Progent is reproduced. The public CaMeL artifact is used only for an artifact-level comparison, which the authors state is not a security ranking. The benchmarks are AgentDojo, AgentDyn, ASB, InjecAgent, BIPIA, AgentHarm, and MCPTox.

    The authors state that the goal is not to claim that information flow control or reference monitoring is new, but rather, when operators may not control the architecture and tools can be registered dynamically, to make these checks into an explicit policy layer written on labeled runtime edges, checked at execution time and before deployment.

  3. How does the paper address this problem?

    Constrains mediated actions with multi-dimensional labels, flow rules, and path rules, and performs pre-deployment checking with bounded SMT.

    AgentFlow writes checks as declarative rules on labeled execution edges: a runtime reference monitor returns Allow, Deny, or Pause on tool calls and modeled response sinks; before deployment, it performs SMT checking over bounded structured fragments (Figure 1).

    Labels, nodes, and agents

    • Three-dimensional labels: A label is L=⟨s, C, t⟩, namely sensitivity, category set, and trust bit. Sensitivity has five levels from Public to TopSecret. Categories are hierarchical paths. Trust is boolean, with untrusted sources such as web scraping being false. The order is ℓ1 ⊑ ℓ2 ⟺ s1 ⪯s s2 ∧ C1 ⊆ C2 ∧ (t1 ∨ ¬t2), and the authors use the trust constraint in it to prevent untrusted data from flowing into trusted destinations. Join takes the higher sensitivity, the union of categories, and the conjunction of trust.
    • Flow graph: The schema declares only the types of nodes and edges, not a control-flow graph. Permitted operations append trace events and allocate new data objects; lineage is append-only and remains acyclic. Nodes carry a kind, label, metadata, and optional field labels; edges carry a propagation mode.
    • Propagation: Inheritance does not change the label; transformation may remove categories, lower sensitivity, or change trust, which the authors map to controlled declassification; opaque propagation outputs ⟨high, ∅, false⟩, used for black boxes such as LLMCall and CodeExecute; constant labels ignore inputs. In Figure 3, LLMCall also flows to a provider sink.
    • Principals and scopes: Agents have a sensitivity ceiling, callable edges, delegable objects, and an optional parent agent. In Figure 4, main has a ceiling of Confidential, and researcher has a ceiling of Internal and cannot delegate further. Task scopes temporarily specify allowed edges and forbidden edges for a single task.

    Flow rules and path rules

    • Single hop: Flow rules are allow or deny. Clauses may constrain source, destination, edge, post-propagation label, agent, and runtime context; allow may also require an authorization predicate to be true. Default is deny; when both match, deny takes precedence, which the authors state follows Cedar's conflict resolution.
    • Flow rule examples: Figure 5 includes that identity-type data must not enter external sinks, credentials must not leave, data sensitivity must not exceed the agent ceiling, and untrusted data that may contain instructions must not enter the planner.
    • Multi-step: Path rules are require or forbid, with scope lineage or session. Expressions include single-step matching, sequence, eventually-followed-by, immediately-followed-by with the next step not matching, choice, and bounded repetition.
    • Path examples: Figure 6 requires that paths of identity-type data to external sinks contain sanitization, redaction, or encryption; forbids reaching an external sink after trust elevation; forbids 4 or more consecutive Delegate; and forbids a confidential query eventually followed by an external write unless the path contains sanitization, redaction, or human review.

    Runtime semantics

    • State and request: State contains the taint map, trace, lineage, current task scope, approved requirements, and active capabilities. A request contains agent, edge, source, destination, input data identifiers, accessed fields, release context, and optional capability. The decision is allow, deny, or pause.
    • Label computation: A whole-source read uses the source label; when fields are specified, only those fields are joined; lineage objects join parent labels. The output label is then obtained according to the edge's propagation mode, forming a candidate step.
    • Commit conditions: allow requires that no deny flow clause matches, required flow conditions are satisfied, the extended trace does not match a forbid path, require paths are satisfied, and referenced requirements and capabilities succeed. If a deny clause matches, deny; if an authorization requirement is false, pause. Only allow updates taint, lineage, and trace.

    Pre-deployment checking and theorems

    • Verifier: First a schema well-formedness check is performed (Appendix A). The verifier translates the policy and bound k into Z3 constraints, symbolizing edges, nodes, agents, labels, lineage, and path matching. SAT gives a counterexample trace; UNSAT means there is no violating bounded trace under that abstraction. The authors state that this is not a guarantee about arbitrary unbounded LLM behavior. Each check rebuilds the encoding from scratch.
    • Theorems: The paper gives Theorem 1–6: the runtime remains well-formed; steps in reachable traces are appended only after allow and satisfy the applicable flow and path constraints. Delegation safety, trust preservation, and external disclosure all carry policy assumptions, such as the existence of a delegation permission rule, no explicit trust reclassification, and sensitive flows to external sinks being rejected unless approved. Theorem 7 in the proofs states that if a policy contains a forbid path, reachable traces do not satisfy that expression.

    Prototype

    • Components: A Python policy engine containing a compiler, a runtime monitor, and an SMT verifier. The compiler performs syntax and schema checks; unknown agents, edges, nodes, capabilities, or task scopes are rejected at interception. The implementation and verifier also handle release rules; the policy object in Figure 2 consists of flow rules and path rules.
    • Integration: Middleware wraps tool functions. The LangChain wrapper keeps the original interface and, before execution, maps tool names and arguments to edges, sources, destinations, fields, and capabilities. When deny or pause, the tool is not called. The AgentDojo and AgentDyn adapters perform suite-specific mappings.
    • Fields and scanning: When fields are specified, the input label is the join of those fields, not the whole-node label. Edges with runtime_scan can use a callback to raise the output label. The authors state that the scanner is a conservative label upgrader, not a semantic safety classifier; false negatives are not within the formal guarantees unless the corresponding sink or release has been modeled by the policy.
  4. What experiments did the paper conduct?

    Confirmed compromise was 0.0% across all four suites, and aggregate utility rose from 46.7% to 63.3%.

    Experimental Setup

    • Model configuration: Frozen AgentDojo, AgentDyn, and denominator-aligned Progent comparisons use a fixed frontier LLM; the paper does not specify the model. ASB upstream DPI uses the artifact's model configuration. The remaining breadth checks are deterministic replays.
    • Scale: AgentDojo has 949 injection cases, each pairing a benign task with an injection attack: Banking 144, Travel 140, Workspace 560, Slack 105. AgentDyn's Dailylife has 200 cases. ASB has 10 scenarios, 51 benign tasks, 20 normal tools, and 400 attacker tools.
    • Baselines: The main baseline is a system without defenses. Progent follows the public hand-written policy path and uses the same model family. CaMeL's public artifacts are used only for artifact-level utility comparison.
    • Metrics: Utility is the benign task completion rate on injection cases; confirmed compromise counts only confirmed attack success. The authors do not use AgentDojo's original security bit but four post-processing categories: compromise_confirmed, blocked_terminal, benign_failure_or_task_drop, ambiguous.
    • Policies: One policy is written per suite, not specialized per task or attack instance. Table 1 summarizes sensitive or untrusted inputs, protected sinks, and representative rules, e.g., money movement scoping, task-scoped booking capabilities, typed releases, and separating channel, DM, and web sinks.
    • Adjudication and repetition: Classification is done by the artifact's classification script. The paper does not state whether the script is an LLM, does not report agreement with humans, and does not report the number of repetitions. The verifier uses Z3 with bound k=10.

    Main Results

    Per Table 2. Columns are Util.% and Comp.%. The paper does not name the frontier LLM.

    Swipe horizontally to read the table

    SuiteBaseline UtilityBaseline CompromiseAgentFlow UtilityAgentFlow Compromise
    Banking75.7%66.0%81.9%0.0%
    Travel44.3%25.7%60.7%0.0%
    Workspace36.1%16.6%57.3%0.0%
    Slack66.7%84.8%73.3%0.0%
    Total46.7%33.0%63.3%0.0%
    • Authors' interpretation: The authors state that confirmed compromise is zero in the table for all four suites and argue that partial blocking prevents the agent from following injection interference. The authors attribute the utility cost to Travel gating, Slack message and web restrictions, Banking money controls, and Workspace external email controls.
    • Progent: The authors state that in the denominator-aligned public hand-written policy comparison, the Slack comparison is utility 55.2%, compromise 5.7%, and the Banking comparison is 72.2% and 0.0%, and state that AgentFlow is higher than that comparison. Progent workloads for Travel and Workspace are smaller, and the main text gives no numbers.
    • Reading the table conditions: Utility is task completion on injection cases, not standalone no-attack utility. The compromise column does not include cases that are merely blocked, task failures, or unevaluable cases.

    Mechanism Ablation

    Table 3 is 12 diagnostic slices on the latest code, not the frozen full set of Table 2. A0 is no defense, A2 is flow rules only, A3 adds paths, A4 adds lineage, and A6 is the full configuration with task-scoped capabilities and release context.

    Swipe horizontally to read the table

    SliceMetricA0A2A3A4A6
    TravelUtility4/123/123/123/1211/12
    TravelCompromise7/120/120/120/120/12
    SlackUtility11/123/123/123/1211/12
    SlackCompromise11/123/124/124/120/12
    BankingUtility9/123/123/123/128/12
    BankingCompromise12/120/120/120/120/12
    • Authors' interpretation: The authors state that early structural defenses reduce compromise but are overly conservative on utility; A2–A4 cannot distinguish attacker-induced side effects from task-authorized side effects. A6 restores benign completion on these slices and keeps confirmed compromise at zero.
    • Exceptions: The authors do not explain the change in A3 and A4 relative to A2 in the Slack compromise column. The authors state that the full policy fills gaps in channel, DM, web, and final answer sinks and makes the slice utility equal to A0.

    AgentDyn and Breadth Replays

    • Dynamic tasks: On AgentDyn's 200 Dailylife cases, confirmed compromise goes from 147/200 (73.5%) to 0/200 (0.0%), and utility from 89/200 (44.5%) to 87/200 (43.5%). Runtime blocking occurs 319 times across 143 cases, of which 138 are terminating policy blocks. The authors believe the mechanism transfers to a more open task distribution, while the initial policy still lacks release context and capability grants for dynamic task families.
    • Breadth: Except for ASB upstream DPI, these are deterministic policy-gate replays. The authors state this tests policy-gate coverage, not end-to-end utility; the benign side is the number of policy-gate passes. ASB's 2/1,200 is original task success under attacked prompts, not benign policy-gate pass rate. The abstract states the harness has 0/1,200 attack success.

    Swipe horizontally to read the table

    BenchmarkModeCasesBlockedBenign Side
    ASB MatrixDeterministic gate2,1422,040/2,040102/102
    ASB Upstream DPIPlanner plus gate1,2001,200/1,2002/1,200
    InjecAgentJSON replay2,1082,108/2,1082,108/2,108
    BIPIAResponse sink replay41,25041,250/41,25041,250/41,250
    AgentHarmTool target replay416208/208208/208
    MCPToxMetadata flow replay485485/485485/485
    • Authors' interpretation: The authors state that the configured policy blocks the policy-visible attacker flows specified by these benchmarks, including tool registration, indirect injection tool calls, response sinks, harmful tool target sequences, and poisoned MCP metadata.

    Verifier, Overhead, and Comparison

    • Seeded errors: All 12 unsafe policy variants were detected. 5 were found structurally by the over-broad release checker, and 7 by semantic properties, covering over-broad release, missing identity guards, credential escape or exfiltration sequences, third-party sharing, trust laundering, over-authorization, and field-level leakage. Of these, 6 have runtime witnesses that can be replayed when verification is bypassed.
    • Verification time: The seven properties in Table 5 are all UNSAT at k=10 with single-core wall time, each <0.5 seconds: non_leakage_pii, no_credential_escape, no_privilege_escalation, no_sensitive_to_third_party, no_credential_exfil_sequence, no_trust_laundering, taint_monotonicity.
    • Overhead and CaMeL: On the modes used in scenario testing, the policy evaluation path averages 6.4 µs per interception (P50 6.0, P95 8.7, P99 9.7). The authors state this is negligible relative to roughly 1–10 seconds of LLM inference and state that core decisions are not a bottleneck in their measurements. CaMeL's public artifact runs all 949 AgentDojo cases in the same configuration with utility 60.1%; the authors state this is only an artifact-level utility comparison, not a positive safety ranking. The paper does not report confirmed compromise for that CaMeL run.

    Other Ablations and Analysis

    • The largest checked-in AgentDojo/AgentDyn policy: 28 edges, 17 nodes, 30 flow/path/release rules; k=10 (§8.6).
    • The verification prototype rebuilds the SMT encoding from scratch each time; the authors state these full reruns take under 0.5 seconds on the checked properties (§6.2, §8.6).
    • The sources of AgentDyn terminating rejections are named by the authors as dynamic task families lacking scoped capabilities for inbox reading, web scraping, money transfers, calendar changes, and graph or file changes (§8.4).
    • Table 6 compares whether policy-side mechanisms are first-class; the authors state this is not overall security strength; AgentFlow is marked as having an independent declarative policy layer, explicit path constraints, and bounded SMT checking all first-class.
    • Wrapper, logging, and scanner costs vary with integration; the paper gives no numbers for these peripheral costs (§8.7).
    • Field-level labels and optional scanners have no separate utility or false-negative numbers (§7.2).
  5. What are some points that can be further explored?

    The authors note over-tainting, no inference of intended releases, and SMT covering only bounded abstractions.

    Limitations and future directions noted by the authors

    • Over-tainting: §8.9 states that the main limitation is over-tainting in message-intensive workflows. When an LLM processes tainted tool results, the runtime may conservatively propagate taint because it cannot recover exact token-level dependencies. When task boundaries are clear, resetting per task helps; tasks that mix trusted and untrusted content still require careful release rules.
    • Does not infer intent: §8.9 states that the system enforces configured policies and does not infer which releases the application owner wants to permit. Intentionally routing untrusted web pages to external sinks, combining private records with attacker-controlled instructions, or sharing sensitive fields with third parties all require explicit release context, otherwise benign tasks may be blocked.
    • Capability gap for dynamic tasks: §8.9 states that on AgentDyn the initial Dailylife policy blocked all confirmed compromises in that run, but missing scoped capabilities explain many of the terminating denials.
    • Verification scope: §8.9 states that SMT provides a priori guarantees over a bounded, structured abstraction of the verifier, not over arbitrary LLM behavior beyond the modeled tool and response sink interfaces.
    • Future work: §10 states that the current results are preliminary evaluation evidence, and states that this motivates further application-oriented development and verification.

    Experimental coverage

    • Benchmark scale: The agent runs in §8.1 include 949 AgentDojo injection cases (144, 140, 560, 105 across the four suites) and 200 AgentDyn Dailylife cases. ASB contains 10 scenarios, 51 benign tasks, 20 normal tools, 400 attacker tools, and 1,200 upstream DPI cases.
    • Model description: §8.1 states that the AgentDojo, AgentDyn, and denominator-aligned Progent comparisons use a fixed frontier LLM, without giving the model name; the ASB upstream DPI uses that artifact's model configuration. One policy per suite, not specialized per task or attack instance.
    • Decision protocol: The utility and confirmed compromise in §8.2 come from four trajectory categories and a classification script. The paper does not report the agreement between this classification and human judgment, nor the number of repetitions.
    • Replay and comparison: §8.5, except for the ASB upstream DPI, is a deterministic policy-gate replay, and the benign side is not final-answer utility. The Progent main-text numbers in §8.2 are limited to Slack and Banking; Travel and Workspace are smaller supplementary loads, and the main text gives no numbers. The CaMeL comparison in §8.8 reports 949-case utility and does not report confirmed compromise.
    • Verification setup: §8.6 checks seven properties with k=10 and seeds 12 unsafe policy variants. The latency in §8.7 measures the policy evaluation path on the schema used by the scenario tests.
  6. Summarize the main content of the paper

    Flow policies reduce confirmed compromise to 0.0% on AgentDojo and AgentDyn.

    AgentFlow is a flow-centric policy language and runtime monitor for tool-based LLM agents. It addresses the problem that confidential or untrusted data can flow along a chain of individually legitimate reads, transformations, delegations, and external writes, while looking only at single subject–action–resource authorizations does not remember this chain.

    • Mechanism: Data carries sensitivity, category, and trust. Propagation on edges can inherit, transform, approximate opaquely, or replace with constants. Flow rules govern single hops, default-deny with deny precedence; path rules require sanitization, restrict delegation, or forbid specified multi-step patterns on lineage or session history. The reference monitor gives allow, deny, or pause before tool execution. Before deployment, Z3 checks structured fragments on symbolic traces of length at most k. The paper gives theorems for runtime well-formedness and mediated trace enforcement, and states that several goals depend on corresponding rules already present in the policy.
    • AgentDojo: On an unnamed fixed frontier LLM, confirmed compromise across 949 injection cases goes from 33.0% to 0.0%, and total utility from 46.7% to 63.3% (Table 2). Utility is computed as benign task completion on injection cases.
    • Other runs: On AgentDyn's 200 Dailylife cases, confirmed compromise goes from 73.5% to 0.0%, and utility from 44.5% to 43.5%. ASB upstream direct prompt injection harness attack success is 0/1,200; original task success in the same run is 2/1,200. Seven properties are UNSAT within 0.5 seconds at k=10, and all 12 seeded unsafe policy variants were detected.
    • Authors' conclusion: The authors state that under the configured policy, runtime enforcement plus bounded checking blocks policy-visible attacks in the examined benchmarks and preserves usable task completion. The authors also qualify the results to the modeled mediation interfaces and evaluated benchmarks, and note that over-tainting, unwritten release context, and LLM behavior beyond the bounded abstraction remain outside the guarantee.

Related papers

Both use: AgentDyn Dailylife
Show 3 more papers
Read originalarxiv.org