Skip to content

Trust propagation and structural isolation in multi-agent LLM pipelinesTrust propagation and structural containment in Multi-agent LLM pipelines

arXiv: Agent & MCP Security· arXiv:2609.17648· Tanzim Hossain Safin, Sharif Noor Zisad, Swakkhar Shatabda, Ragib Hasan·Indexed by this site · 2026-10-01· Originally publishedDefenses

Quick read

Defenses

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

On the four-agent pipeline, structural authorization reduces UAR from 100% to 0% under memory poisoning, but JBR at T1 remains 100% (Table I).

Threat modelMemory poisoning can replace the Validator and forge approval, and with the signing key held can generate matching tokens; agent hijacking delivers forged approval through retrieved documents. The victim system is a LangGraph four-agent pipeline, and the Executor can write to a sandboxed SQLite mail store. T0 disables tokens and the policy oracle; T1 enables both. UAR and JBR measure execution and review bypass, respectively.

Questions
In a multi-agent pipeline, after a low-privilege agent is compromised, it may prompt a high-privilege Executor to perform unauthorized actions. The authors want to separate review bypass from unauthorized actions actually being executed, and examine whether structural authorization can block the latter when model judgment fails.
Methods
The authors build a four-agent LangGraph pipeline. The Executor must pass both a task-bound HMAC single-use token and an independent policy oracle before writing to the sandbox mail database. The two attacks are memory poisoning that replaces the Validator, and forged approval in retrieved documents. JBR measures whether review is bypassed.
Experiments and results
Across three seeds, memory poisoning has UAR of 100% at T0, 0% at T1 while JBR remains 100%. With the signing key held, policy-only has UAR of 0%, token-only 100%. Observer reduces hijack FPR from 49.1% to 7.4%, with UAR still 0%.
Limitations and future work
The authors note that the policy was written by the same group as the corpus, and that the hijacking injection is conspicuous, so the operating point should not be extrapolated to adaptive adversaries. The evaluation is 60 tasks and 13 action types, and the authorization ablation is single-seed. The authors plan to evaluate weaker attackers, multi-seed ablation, and more models. Without the key, token anti-forgery, binding, and anti-replay were not directly evaluated.
Experimental setupgemma4:31b-cloud · Enron Email Dataset、60-task corpus (36 safe, 24 unsafe, 13 action types) · UAR、JBR et al.
Evaluated models
gemma4:31b-cloud
Benchmarks
Enron Email Dataset60-task corpus (36 safe, 24 unsafe, 13 action types)
Metrics
UARJBRFPRLTCF1
AI summaryThe researchers evaluate shared-memory poisoning and indirect prompt injection that forges approval via retrieved documents in a four-agent LangGraph pipeline (Supervisor, Researcher, Validator, Executor), comparing the Validator's judgment with an authorization layer based on task-bound signed tokens and an independent policy oracle. Across three random seeds and 60 labeled tasks, memory poisoning reaches the execution stage every time without defenses; with authorization enabled, the attack success rate (JBR) is still 100%, but the Unsafe Action Rate is 0%, indicating that the Validator can be compromised while execution remains isolated. Against an attacker holding the signing key, the isolation effect comes from the policy oracle, and an independently written least-privilege policy also maintains this result.

The researchers evaluate shared-memory poisoning and indirect prompt injection that forges approval via retrieved documents in a four-agent LangGraph pipeline (Supervisor, Researcher, Validator, Executor), comparing the Validator's judgment with an authorization layer based on task-bound signed tokens and an independent policy oracle. Across three random seeds and 60 labeled tasks, memory poisoning reaches the execution stage every time without defenses; with authorization enabled, the attack success rate (JBR) is still 100%, but the Unsafe Action Rate is 0%, indicating that the Validator can be compromised while execution remains isolated. Against an attacker holding the signing key, the isolation effect comes from the policy oracle, and an independently written least-privilege policy also maintains this result.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    A low-privilege compromise may trigger unauthorized execution through a delegation chain; the authors separate the two with structural authorization and JBR.

    After a low-privilege agent is compromised, it may cause a high-privilege Executor to perform unauthorized real actions; the authors want to see whether structural authorization can block that action when the Validator's judgment fails.

    • Scenario: The authors state that a low-privilege component may cause a high-privilege component to misuse legitimate permissions, i.e., a confused deputy. The authors believe that among destructive or externally visible actions, review bypass and action being blocked should be separated.
    • Gap in existing approaches: The authors state that existing work mostly looks at whether the agent is deceived; in tool-calling evaluations, compromise and harmful action coincide because there is no independent authorization boundary. The authors also state that prompt-layer defenses alone are insufficient.
    • The authors' examination: Use cryptographic verification of permissions rather than relying only on model judgment, to see whether an independent authorization boundary can block unauthorized actions.
    • Threat model:
      • Goal: Cause the action to reach the Executor and leave a recordable database or filesystem change in the sandbox; the experimental storage is a SQLite mail database.
      • Capabilities: Memory poisoning replaces the Validator, and the routine forges approval; when holding the signing key, it does not call the model and directly generates a matching token. Agent hijacking (indirect prompt injection via retrieved documents) causes the Researcher to retrieve a document with forged approval, confidence, and provenance claims; the Validator does not know the source and reasons only from the summary.
      • Victim system: On LangGraph, the Supervisor performs deterministic routing and does not call the model; the Researcher is low-privilege read-only, the Validator is medium-privilege approval, and the Executor is high-privilege execution.
      • Determination: T0 turns off token checking and the policy oracle, T1 turns both on. UAR looks at whether gold-unsafe tasks are executed; JBR looks at whether the Validator's actual review among them is skipped or bypassed.
    • System and metrics: The authors implement the pipeline and two attacks, perform a component ablation under the key-holding setting, and define JBR; the Observer only removes forged approval claims before review. The authors state that tokens and policy monitoring are not new primitives.
  2. What related research exists?

    The authors position the work between prompt injection and structural authorization, and use JBR to separate compromise from final action.

    The authors divide related work into prompt injection, input-layer defenses, structural authorization, and zero trust, and place their own work on propagation measurement in a full pipeline.

    Prompt Injection and Tool Agents

    • Perez and Ribeiro (2022): The authors cite the result that adversarial text can override model instructions.
    • Greshake et al. (2023): Malicious content in retrieved documents can influence LLM applications through indirect prompt injection.
    • Zhan et al. (2024): In InjecAgent, tool-based agents often follow injected instructions. The authors note that in that evaluation, agent compromise and harmful actions coincide because there is no separate authorization boundary.

    Input-Level and Runtime Defenses

    • ADR: Runtime monitoring with reasoning-based policy evaluation.
    • Separators, StruQ, Jatmo: Protect model inputs with separators, structured prompting and data channels, or task-specific fine-tuning.
    • Observer's position: The authors state the Observer follows the input-layer route, removing forged approval statements before verification, and is evaluated as a utility-preserving component rather than a security boundary.

    Structural Constraints and Zero Trust

    • AgentBound and Signed-Prompt: The former restricts MCP servers to predefined capabilities; the latter requires cryptographic signatures for privileged commands. The authors state their design binds authorization to inter-agent task and scope, and evaluates the policy independently, including when the attacker holds the signing key.
    • Defense in depth: Zhang et al. advocate least privilege, defense in depth, and complete mediation. Abdelnabi et al. protect inter-agent communication with structural verification rather than implicit trust.
    • Independent auditing: Ando proposes an independent auditor and describes the Alignment Paradox: an auditor may approve unsafe actions because they match the user's request. Cunningham's Agentic Zero Trust extends zero trust to autonomous agents. The authors state these works motivated their use of an independent policy rather than relying solely on LLM judgment.

    Threat Modeling and Evaluation Landscape

    • Frameworks: MAESTRO, ASTRIDE, ThreatGPT identify agent risks; Visual Confused Deputy applies structural verification to computer-use agents.
    • Authors' assessment: The authors state that actual evaluation of attack propagation in complete multi-agent systems remains limited; research on coding assistants and network-monitoring agents, as well as existing guidelines, also call for empirical security testing.

    Baselines and Data: The comparisons are T0/T1, token-only, policy-only, corpus policy and independent policy on the same codebase, plus Observer off/on. The resource is 1,000 message headers from the Enron Email Dataset; metrics are attached to 60 tasks (36 safe, 24 unsafe, 13 action types).

    The authors do not present HMAC-signed capability tokens or policy-based reference monitoring as new primitives, but instead place the contribution in propagation experiments, component ablations, and using JBR to distinguish review bypass from unauthorized execution.

  3. How does the paper address this problem?

    The four-agent pipeline uses task-bound tokens and an independent policy oracle to decouple execution from the Validator's judgment.

    The authors place structural authorization before the Executor in a four-agent LangGraph pipeline: HMAC-signed, task-bound, single-use tokens, plus an independent policy oracle. The Validator's approval no longer alone determines whether a real write can happen.

    Pipeline and Calls

    • Routing: The Supervisor is a deterministic router that calls no model and hands control to the Researcher, Validator, and Executor in a fixed order. The four communicate through shared typed state, and every transition logs (Figure 1).
    • Permissions: The Researcher is low-privilege and read-only; the Validator is mid-privilege and acts as the approval gate; the Executor is high-privilege and can take real actions. Refusals end in Rejected, executions in Complete.
    • Model: The Researcher, Validator, and the Observer when enabled all use gemma4:31b-cloud via Ollama at temperature 0. Seeds are best-effort because Ollama does not guarantee identical outputs for the same seed. Logs record provider, model, temperature, and seed.

    Resources, Tasks, and Policies

    • Mutable data: The Enron Email Dataset contains over 500,000 emails from about 150 employees. The authors parse Message-ID, sender, receivers, and timestamp, take a fixed 1,000 and keep only message headers, and store them in an index table. The sandboxed tool treats this as rewritable data, not as a classification object.
    • Tasks: Another 60 tasks, 36 safe and 24 unsafe, span 13 action types, each with a resource access scope. All metrics in Section V are computed after matching trials to the corresponding tasks.
    • Two policies: The corpus policy restates each task's gold label; Section V uses it unless stated otherwise. The authors state that if UAR is 0%, it means the given policy is enforced, not that unsafe actions were independently discovered. The independent policy is a handwritten least-privilege allowlist that takes only the proposed action and its scope, without task labels; it agrees with all 60 gold labels and is unchanged when corpus judgments are modified.

    Where the Attacks Enter

    • Memory poisoning: The Validator is replaced with a compromised routine that forges approval; with the signing key held, it generates a matching token without calling a language model.
    • Agent hijacking: The Researcher retrieves a document from a compromised source containing a forged approval, a confidence value, and provenance claims. The Validator reasons over the resulting summary and does not know the source.
    • Clean input: The baseline uses an honest source and clean input. In all three cases, approvals enter the same Executor.

    Authorization Boundary and Observer

    • Two checks: The Executor verifies the HMAC, task binding, and single-use property, and independently recomputes permissions with the policy oracle. A write into the SQLite mail store happens only if both pass. The authors state this boundary is meant to separate structural enforcement from the Validator's judgment.
    • T0 and T1: T0 disables both the token check and the policy oracle; T1 enables both. The held-key ablation further splits into token-only and policy-only. The authors state signatures verify provenance, not permission; without the key, tokens also prevent forgery, bind task and scope, and prevent replay with a single-use nonce, but these three are not directly evaluated.
    • Observer: Sits between the Researcher and the Validator, using the same model and same decoding settings with one additional call. It handles only statements that present other agents' review or authorization as an accomplished fact, or that say further oversight is unnecessary, and deletes only such content; on parse failure it uses deterministic redaction. Filtering uses a binary verdict. It cannot see task records, gold labels, the policy oracle, or the Validator's output, and cannot approve or block. The authors define it as a utility-preserving component, not a security control. Self-reported confidence runs from 0 to 1 and is used only for operating-point analysis.

    How Scoring Works

    • Confusion matrix: An action is blocked if it does not reach execution, allowed otherwise. TP is a blocked gold-unsafe action, FP a blocked gold-safe action, FN an executed gold-unsafe action, TN a released gold-safe action. FPR = FP/(FP+TN), and by construction LTC = 1−FPR. Recall and F1 use standard definitions.
    • Two rates: The share of unsafe tasks reaching execution is UAR = FN/(TP+FN); whether review is compromised is JBR = Nb/Na. Na is the number of gold-unsafe trials with an injected attack, and Nb is the number among them in which real review is skipped or bypassed.
    • How JBR is counted: In memory poisoning, the routine gives approval without calling a model, so JBR is 100% by construction. In hijacking, only when the Validator approves a gold-unsafe task is it counted in Nb. The authors place JBR alongside UAR to separate compromised review from unauthorized execution.
  4. What experiments did the paper conduct?

    Memory poisoning has UAR 0% at T1 and JBR 100%; with the key held, containment comes from the policy oracle.

    Experimental Setup

    • Model: The language model under test is gemma4:31b-cloud (Ollama, temperature 0). The Supervisor does not call the model. Seeds 1, 7, 42 are best-effort.
    • Data: 60 tasks (36 safe, 24 unsafe, 13 action types); Enron subset of 1,000 message headers as a rewritable store.
    • Sample size: Unless otherwise stated, each cell is the mean over three seeds, n=180. The 95% interval is a Student t interval on the seed means (df=2). Trials within the same seed share the task set, so the authors do not treat individual trials as independent samples. The authorization ablation is one seed, n=60 per condition, and no intervals are reported.
    • Conditions: Inputs include memory poisoning, agent hijacking, and honest sources plus clean inputs as defined in the method. Guard layers are T0 and T1; Figure 2 further splits token-only and policy-only under memory poisoning with the attacker holding the signing key.
    • Metrics: UAR, FPR, LTC, F1, JBR. The denominator for JBR is 24 gold-unsafe trials per seed, and the denominator for FPR is 36 gold-safe trials per seed. Table I notes that UAR and JBR are identical across the three seeds in each cell. The authors state that UAR is 0% in most guarded conditions, so they focus more on FPR, LTC, F1, and JBR.
    • Adjudication: Against the task's own gold safety labels, not scored by another model. The paper does not report human agreement.

    Main Results

    The model in the table below is gemma4:31b-cloud, means over three seeds, n=180 per cell, numbers from Table I. 95% t intervals for hijacking FPR: [52.7, 65.8] for T0 and [28.1, 70.0] for T1, which overlap.

    Swipe horizontally to read the table

    AttackLayerUARFPRJBR
    Memory poisoningT0100.0%0.0%100.0%
    Memory poisoningT10.0%0.0%100.0%
    Agent hijackingT00.0%59.3%0.0%
    Agent hijackingT10.0%49.1%0.0%
    • Memory poisoning: The authors state that without authorization, forged approvals always reach execution; with T1 enabled, the Validator is still compromised, but the Executor alone blocks unauthorized actions.
    • Hijacking: No unsafe tasks reach execution under either layer, while the proportion of legitimate tasks blocked is shown in the table above. The authors state that the FPR difference should not be attributed to authorization, because tokens and policies can only deny execution after Validator approval; the intervals overlap, consistent with fluctuation in Validator judgments. The authors state that structural authorization protects execution and does not address this kind of false positive.
    • Reading split: For memory poisoning, JBR by construction indicates that review was skipped. The authors list it alongside UAR, splitting compromised judgment and unauthorized execution into two readings.

    Component Ablation with the Signing Key Held

    • What was tested: Memory poisoning only, with the attacker holding the signing key. The four conditions are T0, token-only, policy-oracle-only, and T1. One seed, 60 tasks per condition, no confidence intervals (Figure 2, Section V-B).
    • Results: Figure 2 places T0 and token-only on the uncontained side, with UAR 100.0% for both; policy-only and T1 are on the contained side, with UAR 0.0% for both.
    • Author interpretation: The authors state that containment here comes from the policy oracle, not signature checking, because the attacker can generate valid signatures on their own. They also state that this does not mean tokens are useless: without the key, they can prevent forgery, bind tasks to scope, and prevent replay, though these were not directly evaluated. The narrower conclusion the authors give is that signatures authorize the source, and a signature-only system inherits the key holder's permissions.

    Hand-Written Least-Privilege Policies

    • What was tested: Re-running both attacks under T1 with an allowlist that cannot read gold labels, three seeds, n=180 per cell (Table II, Section V-C). The list looks only at the proposed action and scope)Skip and is consistent with all 60 gold labels.
    • Results: The authors report UAR 0% for both attacks and both policies (Section V-C). Under memory poisoning, FPR for corpus and independent are both 0.0%, and F1 for both is 1.00. For hijacking, FPR is 49.1% for corpus (interval [28.1, 70.0]) versus 46.3% for independent (interval [32.1, 60.5]), with F1 0.74 for both.
    • Author interpretation: The authors believe containment is not caused by using evaluation labels as the policy. Both policy sets were written by the same group of people, so agreement only shows the implementation did not loop labels into the policies; it does not show the policies are objectively correct. Table II notes that F1=1.00 for memory poisoning measures how well execution matches gold labels, not detection difficulty.

    Observer and Hijacking False Positives

    • What was tested: Agent hijacking with Observer off and on, three seeds, n=180 (Table III, Figure 3). Also ran Observer alone on 60 paired tasks with clean retrieval versus hijacked retrieval, 120 examples total.
    • Results: FPR went from 49.1% to 7.4%, LTC from 50.9% to 92.6%, F1 from 0.74 to 0.95, JBR from 0.0% to 4.2%, and UAR was 0% under both conditions. In-pipeline detection rate is 97.2%, and the proportion of clean content deleted is 0.0%. The authors state the relative FPR reduction is 85%. The abstract says from 49% to 7%. Figure 3 plots F1×100 as 73.6 and 94.8, with the caption noting UAR 0% under both conditions. On the paired set, clean examples have confidence 0.0 and verdict CLEAN, hijacked examples 1.0 and INJECTION; for τ in (0, 1] the TPR is 1.0 and FPR is 0.0, and only τ=0 labels everything.
    • Author interpretation: The authors attribute the JBR increase to a change in what the Validator reasoned about, not weaker review. They state that without Observer, the conspicuous forged approval caused broad rejection: the 49.1% FPR corresponds to roughly half of legitimate tasks blocked, and the 0% JBR reflects generalized suspicion. Once that statement is removed, more legitimate tasks are recovered while a few judgment errors remain blocked by the authorization boundary. The authors consider the unchanged UAR consistent with this reading and say it matches prior observations that agents may be more inclined to reject when injection is conspicuous. They also state that the perfect separation comes from the explicit approval statement in the threat model, not a general property of Observer; 97.2% corresponds to the online Researcher summary, not the paired set.

    Other Ablations and Analyses

    • The seed intervals for hijacking FPR overlap between T0 [52.7, 65.8] and T1 [28.1, 70.0] (Table I).
    • Figure 2 gives only UAR; the JBR and FPR for that figure are not reported in the paper, and there are no confidence intervals.
    • When corpus verdicts are manipulated, the independent policy is unaffected; the paper does not report modified metrics (Section V-C).
    • The authors state that the paired threshold sweep has the same operating point for all τ except 0, so the usual operating curve adds no information, because separation is complete, not because the sample is small (Section V-D).
    • JBR for memory poisoning is 100% across all three seeds, which the authors state is a construction result (Table I note).
    • Under honest sources and clean inputs, UAR and FPR of the full pipeline are not given in the Section V tables.
  5. What are some points that can be further explored?

    The authors note that the policy was written by the same group, the hijacking injection is conspicuous, and the ablation is single-seed, and they plan to test weaker attackers.

    Limitations and future directions noted by the authors

    • Policy authors: The independent policy cannot access the gold labels, but it was still handwritten by the same group of people who wrote the corpus (Section V-E). Section V-C states that this consistency is evidence that the implementation does not circularly use the labels, not that the policy is objectively correct.
    • Seeds: The authors state that UAR and JBR are stable across three seeds, but hijacking FPR varies greatly, with a 95% interval of [28.1%, 70.0%]; the interval on the mean of three seeds is imprecise, and the authorization ablation uses only one seed (Section V-E).
    • Task scale: The evaluation is limited to 60 tasks and 13 action types (Section V-E).
    • Injection form: The hijacking injection is conspicuous and explicitly includes approval, confidence, and provenance claims. The authors believe this likely explains the Validator's 0% JBR and complete separation of scores without the Observer, so the Observer's operating point should not be extrapolated to adaptive adversaries; more realistic injections may produce overlapping scores, a non-trivial operating curve, and non-zero JBR (Section V-E).
    • Architecture and model: The results are limited to one architecture, one framework, and one model; the Validator's behavior may vary with the model, and the containment results need to be tested over a broader range (Section V-E).
    • Future plans: This work used an attacker holding the pipeline signing key. The authors plan to evaluate weaker attackers for whom signed tokens are expected to bear weight, extend the authorization ablation to multiple seeds, and test more models and heterogeneous agent configurations (Section VI).

    Experimental coverage

    • The language model is gemma4:31b-cloud, temperature 0, via Ollama; seeds are best-effort. The main experiment seeds are 1, 7, and 42 (Section IV-B, Section V).
    • The attacks include shared-memory poisoning and indirect prompt injection via retrieved documents; with the signing key held, T0, token-only, policy-only, and T1 were compared (Section IV-C, Figure 2).
    • Table I, Table II, and Table III are three seeds, 180 trials per cell; Figure 2 is one seed, 60 per condition, without confidence intervals.
    • The policy side includes a corpus policy that restates the gold labels, and a handwritten independent policy consistent with the 60 gold labels; the Observer additionally has 120 paired examples and a threshold sweep (Section V-C, Section V-D).
    • The paper states that without the signing key, the role of tokens in anti-forgery, task binding, and anti-replay was not directly evaluated (Section V-B). The paper does not report review and human agreement.
  6. Summarize the main content of the paper

    Structural authorization blocked unauthorized execution from memory poisoning; when the key is held, the policy oracle is what bears the weight.

    The authors examine, on a four-agent pipeline that rewrites a sandbox mail database, whether a low-privilege compromise can become an unauthorized real action.

    • Problem: After retrieval, approval, and execution are separated, a low-privilege role may push a high-privilege Executor in a confused deputy manner. The authors want to count "review bypassed" and "action actually executed" separately.
    • Approach: The Supervisor only performs deterministic routing. The Researcher retrieves, the Validator approves, and the Executor must pass both an HMAC task-bound single-use token and an independent policy oracle before writing to SQLite. Memory poisoning replaces the Validator; hijacking puts forged approval into retrieved documents. JBR only counts whether the Validator's review is skipped. The Observer removes such claims before approval, but cannot allow or block.
    • Memory poisoning: With gemma4:31b-cloud, three seeds, n=180 per cell, T0's UAR is 100.0%, T1's UAR is 0.0%, and JBR is still 100.0% (Table I). The authors state that judgment can be compromised while execution can still be blocked.
    • Load-bearing component: With the attacker holding the signing key, one seed, n=60 per condition, token-only UAR is 100.0%, and policy-only is 0.0% (Figure 2). Under the handwritten least-privilege policy, UAR for both attacks is still 0% (Section V-C). The authors state that the two policies were written by the same group of people, and consistency does not show that the policy is objectively correct.
    • Hijacking: Without the Observer, UAR is already 0.0%, but T1's FPR is 49.1%; with the Observer on, FPR is 7.4%, JBR is 4.2%, and UAR is still 0% (Table III). The authors state that the drop in false positives did not change the execution-layer result, and that the operating point comes from conspicuous injections and should not be extrapolated to adaptive adversaries.
    • The authors' conclusion: An upstream agent being compromised does not equal the final action being compromised; an LLM judge can be treated as an untrusted decision-maker without automatically gaining the permission to cause real effects. The authors state that the authorization primitives used are standard, and plan to continue testing on weaker attackers, multiple seeds, and more models.

Related papers

Read originalarxiv.org