DP-Bits: Pricing-Guided Limiting of Untrusted Data's Influence on AI Agent PlannersDP-Bits: Bounding the Influence of Untrusted Data on AI Agent Planners with Priced Guidance
The authors propose DP-Bits, which limits the influence of untrusted documents on the agent planner according to a bit budget; the authors claim that it balances utility and a provable upper bound on AgentDyn.
The attacker controls documents in their source, knows the task, agent, defense and trust labels, and hijacks the model that reads their documents; they cannot modify the task, trusted data, source labels or defense randomness. The goal is to make the agent enter the set of transcripts targeted by the attack; DP-Bits relies on correct provenance, and unread values in handles are checked by other policies.
- Static approaches with an isolating planner struggle to complete tasks that depend on document content, while free-text hints can restore utility but have no provable upper bound on influence over the entire session, so the authors consider that they may still be subject to adaptive attacks.
- DP-Bits has the planner first give a multiple-choice question and an answer prediction, then prices the answer by its surprise, samples the reader reply by mixing it with the prediction, and charges the bit budget of the document source; the theorem gives an upper bound of 2^B times the muted session for any target probability.
- The authors compare static plans, hint baselines, and the undefended agent on AgentDyn and AgentDojo. The authors report that on Qwen3.6-27B, the most successful adaptive attack succeeds 30/120 against hint-200, and 2/120 and 0/120 against DP-Bits at 32 bits and 4 bits, respectively.
- The authors point out that values passed through handles are not within the upper bound, and that budget selection, source labels, and token probability access are also prerequisites; on AgentDyn, certificates for larger budgets are costly. The experiments use Qwen-series models, and 9/60 AgentDyn tasks cannot be completed as intended due to benchmark errors.
- Evaluated models
- Qwen3.8-27BQwen3.6-27BQwen3.5-9BQwen4 Max
- Metrics
- tasks solvedASRbits charged per sourcetokens to certifytokens per task
Researchers Nils Lukas and Tameem Bakr propose a defense method, DP-Bits, that sets a bit budget for each untrusted data source, provably limiting its influence on an AI agent's planner, addressing the risk that prompt injection uses hidden instructions in untrusted data to manipulate the agent. The method isolates the planner from untrusted data: the planner poses multiple-choice questions to a reader model and predicts each answer first, answers may deviate from the prediction only within a bounded range, and the lower the planner's expectation, the more bits the data source is charged. Evaluations on AgentDojo and AgentDyn show that DP-Bits with Qwen3.8-27B retains most of the utility of an undefended agent, that adaptive attacks break prompting schemes lacking provable bounds, and that stronger models complete more tasks under the same budget. The authors argue that pricing untrusted data in bits gives users of agent systems fine-grained control over the safety-utility trade-off along with provable guarantees.
Related events and news
1 events · 0 news mentions
- This event's paper
DP-Bits以比特预算限制不可信数据对规划器影响
Paper analysis
What problem does this paper attempt to solve?
The authors aim to restore document utility for the isolating planner while giving a provable upper bound on the influence of untrusted sources over the entire session.
Core question: How can untrusted documents help the agent plan while limiting the influence of a hijacked reader over the entire session.
- Scenario and importance: The authors discuss tool agents that read emails and web pages and perform actions such as payments; indirect prompt injection can use documents to manipulate tool calls. The authors cite real-world loss incidents and consider that a single protective measure is insufficient.
- Shortcomings of existing methods: The authors state that CaMeL-style static plans isolate the planner from documents but struggle to complete tasks that depend on document content; free-text hints in Twin Agent and typed answers such as FIDES can convey information but have no user-settable session-level influence upper bound.
- Core observation: The authors consider that charging should be based on how much an answer changes the planner's prediction, rather than on character count or answer type; surprising answers cost more, and the charges for multiple answers can accumulate into a source budget.
- Proposed approach: DP-Bits combines Priced Guidance, differential-privacy-style limits, and privacy filter accounting, and provides an influence upper bound theorem and a certificate cost analysis; the authors call it the first system-level defense in which a user budget constrains the influence of untrusted data on the planner.
- Threat model:
- Goal: The attacker wants the transcript to fall into the attack target set S, for example the agent making a call in the benchmark attack target; the user wants to increase the task solve rate and lower the attack success rate.
- Knowledge and control: The attacker knows the task, agent, defense, and trust labels, controls documents from its sources, and hijacks the models that read these documents.
- Limitations: It cannot modify the task, trusted data, document sources, or user controls, and does not know the defense's random numbers; timing channels are out of scope.
- Victim system and boundaries: An agent that uses tools to read untrusted documents; DP-Bits protects planning decisions, handle unread values require checks by other policies, and it depends on correct provenance.
What related research exists?
The authors organize related work according to four layers of prompt injection defense, and DP-Bits is located at L2, which controls information reaching the planner.
L1: Make the model read documents more robustly
- Meta-SecAlign (2025) and spotlighting (2024): The former trains the model to ignore injected instructions in documents; the latter marks which text comes from documents. The authors consider that they reduce the probability of the reader being hijacked, but do not bound the influence that can be caused after hijacking.
- AgentDojo (2024): Provides a prompt injection agent evaluation and tests document delimiters, repeated user requests, and tool filters; this paper reuses its benchmark attacks and these defenses for comparison.
L2: Isolate the planner and restrict the form of information
- CaMeL (2025) and Zingrillo et al. (2026): CaMeL writes a static program before reading documents; the authors use Zingrillo et al.'s branch steering work to illustrate that an attacker can still manipulate the selection of pre-written branches.
- FIDES (2025), Secure-CUA (2026), and SPIDES (2026): Have the reader return only typed values such as yes/no; SPIDES applies this idea to browser agents. The authors consider that they restrict the form of a single reply but do not restrict the influence of the same source over the entire session.
- Twin Agent (2026): Another model reads the document and gives the planner a short free-text hint; this paper's hint-n is the authors' reconstruction of it, because the authors state that the original code was not released.
L3/L4: Tool authorization and where values go
- FORGE, Progent, Conseca, MELON: Respectively check input provenance, grant permissions by task, generate context policies, or compare calls with and without the task; the authors regard them as pre-call checks complementary to DP-Bits.
- CaMeL, FIDES, and Prudentia (2026): Track value provenance or have the user confirm values in documents; the authors point out that such mechanisms can cover handle values that DP-Bits does not cover.
Measuring influence in bits and differential privacy
- Priced Guidance (2026): Uses the surprise of an answer relative to the model's prediction to measure guidance cost; DP-Bits adopts this pricing but changes the object to untrusted reader answers.
- Rogers et al. (2016) and private decoding work: The former provides privacy-filter-style composition accounting; the latter mixes the output distribution with a reference distribution. DP-Bits uses the planner's prediction as the reference distribution.
- Baselines and benchmarks: The main comparison is the undefended agent, the CaMeL static plan with the policy removed, hint-3/10/30/200, and AgentDojo's built-in defenses; the benchmarks are AgentDojo and AgentDyn.
The authors position this paper as an alternative at L2: it neither fixes all branches in advance like a static plan nor restricts only the text form like a hint, but accumulates a provable influence budget by source.
How does the paper address this problem?
DP-Bits first predicts, then prices and clips the extraction and deducts bits by source, giving a session-level upper bound with the muted session as reference.
The overall idea is to have the planner replan step by step, but it can obtain document information only through the DP-Bits multiple-choice interface; each answer is first priced, then its deviation from the prediction is limited, and finally the document source is charged.
Problem setup and security game
- The planner can see only the task, trusted data, previous answers, budget, document sources, and its own random numbers; the reader reads documents and returns probabilities for each answer or no reply.
- In the security game, the attacker places documents before the session starts; afterward, whenever a model or tool accesses these documents, the attacker can adaptively choose outputs, simulating a hijacked model.
- The only difference between the real session D and the muted session D∅ is that the latter sets the reader replies for attacker documents to empty; utility counts tasks solved when there is no attack, ASR is the worst case in which the attack target is satisfied, and experiments can give only a lower bound on it.
Pricing and limiting a single answer
- The planner first writes the question, the finite answer set, and the predicted distribution r, and only afterward does the reader read the document and give p; therefore the price is fixed before the reply.
- The answer price is c=min{ℓ,log2(1/r(a))}, where ℓ is the cap for this question; the meaning is that answers more surprising to the planner cost more, but the charge does not exceed the cap for this question.
- The actual answer is sampled from q=λ p+(1−λ)r, with λ computed from the maximum ratio p(a)/r(a) and 2^ℓ; Lemma 4.1 gives that for any reply, q(a) does not exceed 2^ℓr(a).
- If p equals r then λ=1; if there is no reply then λ=0; when the budget is exhausted the cap is zero, so sampling can follow only the prediction, and the paper's agent can also refuse questions for free.
Source budgets, theorem, and certificates
- Each document can be associated with multiple sources, and the cap for this question does not exceed the minimum remaining budget among these sources; after sampling an answer, each source is charged, and a shared budget is counted only once.
- Theorem 4.2 assumes that the number of session steps is finite, that attack documents carry attacker sources, and that the total budget of these sources does not exceed B; on this basis the authors prove that the probability of any transcript set in the real session is at most 2^B times that in the muted session.
- The authors interpret this as one-sided differential privacy on transcripts, ε=B ln 2; for example, a call with probability 0.1% in the muted session is at most 1.6% under 4 bits.
- The certificate of Proposition 4.3 expands only nodes in the muted tree with probability at least 2^-t, at most O(k2^t) of them; certifying a target probability α requires that the mass of unexpanded nodes plus target leaves satisfy the corresponding threshold.
Agent implementation and adaptive attack evaluation
- Whether a tool call succeeds is also priced as a status check, because a forged status may induce retries or abandonment; specific parameter values in documents are passed to tools via handles and are not read by the planner, so they are not within this upper bound.
- The main experiments compare 0, 4, 16, and 32 bits per source and no cap; all roles use fixed prompts that do not name benchmark tools or tasks, and the full prompts are in Appendix I.
- Adaptive attackers control the question reader, the status reader, or the Twin Agent's hint writer; they include hijacked, simulating, escalating, steering, cheap reader, as well as search, refined search, and split hints.
- Search-type attacks score candidates by simulating the planner's next step; Appendix H gives the settings for each type of attack. The main text does not evaluate hijacking the handle filler; Appendix H.1 reports it separately, because that channel requires policies at other layers.
What experiments did the paper conduct?
The experiments cover utility, adaptive attacks, certificate cost, and ablations; the authors report that the hint baseline is attacked more, and that DP-Bits retains a controllable upper bound.
Experimental setup
- Models tested: Qwen3.5-9B, Qwen3.6-27B, Qwen3.8-27B, and the API model Qwen4 Max; the main model is Qwen3.8-27B, and the safety comparison focuses on Qwen3.6-27B.
- Benchmark scale: AgentDyn has 60 tasks and 120 attack test cases; AgentDojo has 97 tasks, with Figure 26 using 200 test cases and Figure 29 using 86 single-source injection cases.
- Benchmark defects: 9/60 AgentDyn tasks cannot be completed as intended due to checker or environment errors, so any agent solves at most 51/60; all counts still retain 60 tasks (Appendix E.3, Table 3).
- Comparison methods: The undefended agent, the CaMeL static plan with the policy removed, the reconstructed hint-3/10/30/200, and AgentDojo's delimiters, repeated request, and tool filter.
- Metrics and criteria: Utility is the number of tasks that pass the benchmark checks when there is no attack; ASR is the number of test cases that pass the attack target check; per-source charges, certificate tokens, and tokens per task are also counted.
- Repetitions and auxiliary models: In Figure 16, the unmodified agent is run three times and the variant once; in Figure 9, Claude Opus 5.5 labels failure logs, three times for Qwen3.8-27B and once for Qwen3.6-27B.
Main results
The table below uses the most successful adaptive attack on AgentDyn; Qwen3.6-27B numbers are in the main text and Figure 10, Qwen3.8-27B numbers are in Figure 28, and utility is the annotation directly readable in Figure 10.
Swipe horizontally to read the table
Model Defense/budget Successful attacks (/120) Utility without attack Qwen3.6-27B hint-200 30 28% Qwen3.6-27B DP-Bits, 32 bits/source 2 23% Qwen3.6-27B DP-Bits, 4 bits 0 18% Qwen3.6-27B No defense, benchmark attack 28 Not reported Qwen3.8-27B hint-200 7 Not reported Qwen3.8-27B DP-Bits, 32 bits/source 2 Not reported Qwen3.8-27B DP-Bits, 4 bits 0 Not reported Qwen3.8-27B Static plan, benchmark attack 0 3% - Authors' safety interpretation: The authors state that adaptive attacks expose hint defenses, which lack a session-level upper bound, to risk, while DP-Bits' budget limits both attack influence and utility; the attacks found are only empirical results, and the theorem covers all attacks.
- Model differences: Without defense, benchmark injection succeeds 27/120 against Qwen3.6-27B and 0/120 against Qwen3.8-27B; the authors therefore use Qwen3.6-27B to lead the defense comparison and caution that safety results from a single model may not transfer.
- Data-dependent tasks: In Figure 8, among the 52 tasks involving data-dependent tool selection, the static plan solves 2 and DP-Bits at 32 bits solves 18; among the 8 tasks without such selection, the two solve 6 and 8, respectively.
Utility, model capability, and overhead
- Budget and models: Figures 7 and 21 show that stronger models solve more AgentDyn tasks under a limited budget; with no cap, Qwen4 Max and Qwen3.8-27B are on par, and the static plan reaches at most 17% on the models tested.
- Failure reasons: In the unlimited-budget failure logs of Figure 9, the largest category is questions being too narrow; for Qwen3.8-27B, three runs label this group at 61% (16 failed sessions), and for Qwen3.6-27B, one run labels it at 53% (11).
- Token cost: In Figure 15, 0 and 4 bits lie on the Pareto frontier; the authors state that at no more than 32 bits, DP-Bits solves more tasks than the static plan with fewer tokens, and the hint baseline has similar cost but no upper bound.
- Converting hint information content: Figure 14 estimates at 95 printable characters and 6.6 bits per character that the text capacity of hint-10 is about 8 times the actual charge of 32-bit DP-Bits, and hint-200 about 100 times; this is a uniform per-character pricing, not a measured influence upper bound.
Certificates, exact checks, and supplementary attacks
- Certificate cost: Figure 13 uses Qwen3.8-27B on one RTX PRO 6000; small-budget certificates take a median of several minutes; AgentDojo at 9 bits takes about 36 minutes, and AgentDyn at 3 bits about 39 minutes.
- Exact verification: Appendix D enumerates 2,000 random sessions with 4 targets each, 8,000 pairs in total; DP-Bits has no violations and the maximum ratio is exactly 1, while the three modified-rule variants produce 23, 22, and 1,227 violations, respectively (Table 2).
- Supplementary AgentDojo results: Figure 24 reports that under Qwen3.8-27B, DP-Bits at each budget solves 76–82/97 tasks, and the static plan solves 78; in Figure 26, DP-Bits at 16 bits for Qwen3.6-27B has 0/200 successful attacks.
- Handle attacks: The successful attacks in Appendix H.1 all pass values through handles; in Table 5, with 32 bits plus a 4-bit cap, the two types of attacks against Qwen3.8-27B still succeed 4/120 and 2/120, and the certificate upper bound is 100%, on which basis the authors emphasize that a value provenance policy is still needed.
Other ablations and analyses
- Component ablations: Figure 16 changes one component at a time; only removing planner reasoning, and limiting AgentDojo to 4 bits per question, decrease utility by more than the ±5-task range of repeated runs.
- Pricing method: In Figure 17, uniform pricing does not increase the number of solved tasks, but makes the median charge on AgentDojo reach 2.1 times and 3.0 times that of predictive pricing.
- Shared budget: Figure 19 compares per-source budgets with a budget shared across all sources; the authors state that the shared budget gives a tighter session upper bound when the number of tasks is similar.
- Environment-modified call cap: In Table 4, the utility of 32 bits plus a 4-bit cap is close to 4 bits/source, but the muted control already calls the target tool frequently, so the corresponding certificate upper bound reaches 100%.
- Attack budget consumption: Figure 11 shows that under the benchmark attack, at 16 and 32 bits the median session nearly exhausts one source's budget, and at 4 bits more than half do.
What are some points that can be further explored?
The authors explicitly discuss handles, budgets, labels, and model access limitations, and propose directions such as training the planner and setting budgets per task.
Limitations and future directions noted by the authors
- Handles are not covered by the guarantee: Section 6, Limitations (i), points out that unread values passed into tool calls require a complementary policy check; in the experiments, all successful attacks against DP-Bits with a budget went through handles.
- Budgets are hard to choose and certificates may become expensive: Limitations (ii) points out that small budgets give stronger guarantees and cheaper certificates, while large budgets improve utility but loosen the influence bound; on AgentDyn, certificate cost is high beyond a few bits, and the authors did not study how to choose the budget optimally.
- Depends on labels and user settings: Limitations (iii) points out that the upper bound depends on correct document source labels and on the budgets the user sets for each source and task.
- Requires token probabilities: Limitations (iv) points out that the reader's token probabilities are not provided by all model APIs; the experiments focus on the Qwen series, and utility and attack success will vary with the model.
- Training low-bit planners: Section 4.5 lists training planners that pose problems easier to certify as future work; Section 6 also looks forward to training planners for priced guidance.
- Task-specific budgets and deployment-level certificates: Section 6 states that setting budgets according to task requirements is a promising direction; Section 8 proposes studying strategies that set budgets per task and certificates for full deployments.
Scope of the experiments
- There are 4 models tested: Qwen3.5-9B, Qwen3.6-27B, Qwen3.8-27B, and Qwen4 Max; both the main text and the appendix use the Qwen series as experimental subjects (Section 5, Figure 21).
- The benchmarks are AgentDojo and AgentDyn; 9 of AgentDyn's 60 tasks cannot be completed as intended due to benchmark errors, and the related runs exceed 1,600 sessions (Appendix E.3).
- The safety evaluation in the main text includes benchmark attacks and multiple types of adaptive reader/hint attacks; attacks that hijack handle fillers are placed in Appendix H.1, and the main text explicitly does not include them in the main threat evaluation.
- The exact upper-bound check uses 8,000 random session–goal pairs and only verifies small enumerated sessions, without running the full agents of Section 5 (Appendix D).
- The paper does not report the consistency between automatic labeling of failure logs and human judgment; Figure 9 only states that classification was done by Claude Opus 5.5 and gives the corresponding run counts.
Summarize the main content of the paper
DP-Bits uses per-source bit budgets to connect document utility with provable safety, and provides evidence from attacks, certificates and ablations.
DP-Bits is a system-level prompt injection defense for tool agents, addressing the limited utility of static plans and the lack of a session-level influence upper bound for hints.
- Method highlights: The planner does not read untrusted documents; instead, it first writes multiple-choice questions and answer predictions; the system prices answers by surprise, samples the reader reply by mixing it with the prediction, and deducts bits from the document source. Theorem 4.2 gives an upper bound of at most a 2^B-fold increase in any target probability relative to the muted session.
- Adaptive attack results: On AgentDyn and Qwen3.6-27B, the most successful adaptive attack succeeds 30/120 against hint-200, and 2/120 and 0/120 against DP-Bits at 32 bits/source and 4 bits/source, respectively (Figure 10).
- Utility results: Among the 52 tasks in Figure 8 that involve data-dependent tool selection, the static plan solves 2 and DP-Bits at 32 bits solves 18; Section 6 reports a 27%–37% task solve rate on AgentDyn at 16–32 bits/source.
- AgentDojo results: Under Qwen3.8-27B, each budget solves 76–82/97 tasks, and the static plan solves 78 (Figure 24); on this basis the authors consider that on tasks where most answers are predictable, the budget does not bring a comparable utility gain.
- Certificates and exact checks: Small-budget certificates take a median of several minutes on the two benchmarks, but AgentDyn at 3 bits already takes about 39 minutes (Figure 13); among the 8,000 enumerated pairs in Appendix D, DP-Bits has no violations, while modified rules produce violations.
- Authors' conclusion: The authors state that stronger models can solve more tasks under the same budget, and that DP-Bits turns the safety–utility trade-off into a user-controllable budget; however, handle values still require a source policy, and budget selection, correct labels, and token probability access are also practical prerequisites.
Research lineage
12 foundations · 0 follow-ups in library- Evaluates On2026-02AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?§ Appendix B Ethical Considerations
No later in-library follow-ups recorded yet.
“Our experiments run in the simulated environments of two public benchmarks, AgentDojo [4] and AgentDyn [1], with three open-weight models that we host ourselves and one model that we call over its provider’s API, and Claude Opus 5.5 labels failed sessions from their logs.”