Manuscript Offprint
arXiv:2611.04673Right Tool, Wrong Parameters: Defending LLM Agents Against Parameter Poisoning
ABSTRACT
Indirect Prompt Injection (IPI) poses a critical threat to LLM agents. Existing defenses largely focus on whether an injection induces a new tool invocation or unintended action. In this paper, we study a different attack surface, parameter poisoning, where the attacker preserves the intended action but manipulates one or more tool arguments, such as a recipient or other task-critical value. Such attacks are difficult to detect because no new action is introduced, while parameter changes themselves are often legitimate parts of the user's request. Our key insight is that the legitimacy of a parameter change should be determined by the trust of the information flow that produces it under the user query. The query induces a task-specific trust hierarchy over available information fields: some are trusted to determine particular parameters, while others should have little or no influence. Based on this insight, we propose AuthorityFlow, a three-stage parameter-level defense. First, it interprets the user query to construct a task-specific trust hierarchy over the information fields available to the agent. Second, for each tool argument, it traces the information flow that produces its current value and attributes the value to its supporting field. Finally, it accepts the value only when that field is trusted to determine the parameter under the current task, allowing high-trust changes while flagging low-trust influence as potential parameter poisoning. We further introduce FactAuthBench for evaluating parameter poisoning in LLM agents. Without defense, the attack success rate reaches 93.06%. AuthorityFlow reduces it to 9.03%, while retaining 82.64% benign task utility compared with 90.28% without defense. Our results show that effective IPI defense requires reasoning not only about what action an agent takes, but also about which information is trusted to determine its parameters.
1 INTRODUCTION
Large Language Model (LLM)-based agents are evolving from conversational systems into action-oriented systems that can perceive external environments, invoke tools (Schick et al., 2023; Li et al., 2023; Qin et al., 2024), and complete complex tasks (Yao et al., 2022; Liu et al., 2024a). To perform real-world tasks such as travel planning, financial operations, and workplace collaboration, agents must process information from emails, webpages, documents, and external tool outputs, and use this information to guide subsequent decisions (Yao et al., 2024; Zhou et al., 2024; Drouin et al., 2024). This reliance on external content also creates a major security risk: attackers can manipulate content that the agent encounters during a legitimate task and thereby influence actions executed with the user's privileges (Greshake et al., 2023; Chen et al., 2024). Indirect Prompt Injection (IPI) exploits this attack surface.
Existing IPI defenses largely focus on instruction-level IPI, where untrusted external content induces a new tool invocation or causes the agent to deviate from the user's intended action (Jia et al., 2025; Zhu et al., 2025; Chen et al., 2025f). As illustrated in Figure 1(a), a typical attack embeds malicious instructions in emails, webpages, or other external content, causing the agent to deviate from the user task and execute attacker-specified actions. Accordingly, existing defenses mainly aim to detect, isolate, or suppress such injected instructions (Hines et al., 2024; Chen et al., 2025e; Zhang et al., 2025b). However, preserving the intended action does not guarantee safe execution. As shown in Figure 1(b), an attacker can leave the intended action unchanged while manipulating one or more

(a) Instruction-level IPI
(b) Parameter poisoning
Figure 1: Instruction-level IPI versus parameter poisoning. (a) An instruction-level defense blocks the injected instruction. (b) An attacker-supplied account becomes the transfer destination despite the unchanged protected payee record. Blocking injected instructions alone does not prevent unauthorized influence over tool parameters.
task-critical arguments through attacker-controlled external information. The agent may still follow the normal “retrieve information–interpret state–invoke tool” workflow and invoke the expected tool, yet use an attacker-influenced recipient, location, amount, or other argument. We refer to this attack surface as parameter poisoning. Such attacks are difficult to detect because they introduce no obviously malicious new action, while parameter changes are a normal and often necessary part of legitimate agent tasks. The key question is therefore not only what action should the agent take, but also which information should be trusted to determine the parameters of that action?
The key challenge is that trust in agentic tasks is neither static nor inherent to an information source. Whether a field should be allowed to determine a tool parameter depends on how that field is used under the current user request. The same external source may legitimately provide information required by one task, yet remain unauthorized to determine a different, security-sensitive argument. We therefore view parameter poisoning through the lens of query-conditioned trust flow: the user query induces a task-specific trust hierarchy over the information available to the agent, specifying which fields are sufficiently trusted to influence particular tool parameters. Parameter legitimacy should then be judged by tracing which information contributes to its value and whether that information carries sufficient trust for that use. Under this view, parameter poisoning occurs when low-trust information is allowed to influence a parameter that it is not authorized to determine.
Motivated by this observation, we propose AuthorityFlow, a task-aware parameter authorization framework for LLM agents. AuthorityFlow first interprets the trusted user request together with tool semantics and source provenance to establish task-specific authorization boundaries over the information available to the agent. It then traces each candidate tool argument to the evidence that supports its value. Finally, AuthorityFlow checks whether that evidence is authorized to determine the corresponding parameter in the current task. This verification combines two conditions: whether the evidence semantically supports the candidate value and whether its source is authorized for that use. In this way, AuthorityFlow permits legitimate parameter changes supported by appropriate evidence while preventing low-authority information from exerting unauthorized influence over tool arguments.
To evaluate the risk of parameter poisoning and the effectiveness of AuthorityFlow, we build FactAuthBench, an extended benchmark based on the widely used AgentDojo environment (Debenedetti et al., 2024). FactAuthBench covers four categories of tool-interaction scenarios and contains 144 paired benign–attack cases. Without defense, parameter poisoning achieves a 93.06% attack success rate, showing that attacker-controlled information can substantially influence task-critical tool arguments. AuthorityFlow reduces the attack success rate to 9.03%, while retaining 82.64% benign task utility, compared with 90.28% without defense. Several existing IPI defenses still exhibit substantially higher attack success rates on FactAuthBench. These results indicate that protecting instruction or action integrity alone does not fully prevent unauthorized influence over the parameters that determine tool execution.
The main contributions of this work are as follows:
-
Parameter Poisoning. We study a parameter-level attack surface in IPI, where attacker-controlled external information manipulates task-critical tool arguments without causing the agent to deviate from the intended action.
-
AuthorityFlow. We propose a task-aware parameter authorization framework that mitigates parameter poisoning by jointly verifying semantic support for candidate parameter values and use-specific authorization of their supporting sources.
-
FactAuthBench and Evaluation. We construct FactAuthBench with 144 paired cases for systematically evaluating parameter poisoning in LLM agents, and show through end-to-end experiments that AuthorityFlow substantially reduces attack success while preserving high utility on benign tasks.
2.1 FORMALIZATION
Agent workflow. We consider a language-model agent that receives a user task and interacts with an external environment through a set of tools . We denote the public tool specification by , which includes tool descriptions, parameter definitions, and return structures. At step , the agent selects its next action based on the task, the tool specification, and the interaction history:
where denotes the agent policy, is an action, and is the corresponding tool output or runtime feedback. An action may be a tool call , where and denotes its arguments, or a final response. The agent uses information from tool outputs to determine subsequent actions and their arguments. We focus on cases where attacker-controlled external information influences one or more task-critical arguments in without necessarily inducing a new tool invocation or changing the intended high-level action.
Parameter-relevant facts and authority. We denote by a task-relevant fact used to determine a tool argument, and by an information source or source region that provides evidence for that fact. A fact may directly determine an argument value or serve as an intermediate dependency in its derivation. We define source authority as whether a source is authorized, under the current task, to support a particular fact:
This relation depends on the user task, tool semantics, and the role of the source within the application. The same source may therefore have different authority across tasks or decision contexts. These relations define the task-specific authority structure governing parameter derivation.
2.2 THREAT MODEL
Attacker. We consider an attacker who can manipulate external content processed by the agent during legitimate task execution (Greshake et al., 2023; Zhan et al., 2024; Debenedetti et al., 2024). The attacker may modify or introduce information within their control, such as email bodies, reviews, or transaction notes, and cause this content to enter the agent context through normal tool invocations. The attacker may know the user task and public tool specification, but cannot modify the user's original request, system instructions, tool interfaces or implementations, or protected authoritative records outside their permission boundary.
Defender. The defender operates at the agent orchestration layer (Wu et al., 2024; An et al., 2025). It can observe the user task , the tool specification , the interaction history , and a pending tool call before execution. It can inspect, block, or repair the call's arguments without accessing model internals or modifying tool interfaces and data backends. This setting reflects practical deployment constraints, where existing tools and third-party services may be difficult to modify.

Figure 2: Overview of AuthorityFlow. The framework constructs task-specific authority boundaries, traces parameter provenance, and verifies semantic support and source authorization. In this example, review text supports the candidate location but is not authorized to determine it, so the tool call is blocked. Optional downstream purification proposes a revised candidate that must pass verification before execution.
Attack objective and success condition. We focus on parameter poisoning, where attacker-controlled external information influences one or more task-critical tool arguments despite lacking the authority to determine the corresponding facts under the current task. The attacker need not induce a new tool invocation or redirect the agent to a different high-level action. Instead, the attack changes values such as a recipient, amount, location, or another argument of an otherwise legitimate tool call. We consider an attack successful when attacker-controlled information causes an attacker-intended argument value to appear in an executed tool call.
3 AUTHORITYFLOW
3.1 OVERVIEW
AuthorityFlow verifies whether task-critical parameters are influenced by unauthorized external information before a tool call is executed. Its core premise is that parameter legitimacy depends not only on the candidate value itself, but crucially on the provenance of the information used to derive that value and whether the corresponding sources are authorized under the current task.
As illustrated in Figure 2, AuthorityFlow operates in three sequential stages. First, it performs task-aware authority construction, establishing authorization boundaries over information sources based on the trusted user task, tool specifications, and source properties. Next, it conducts parameter support tracing to recover the specific facts and underlying evidence chain that produced each candidate parameter. Finally, it executes parameter authorization verification by decoupling the check into semantic support and task-specific source authorization, ensuring that only fully verified parameters are dispatched for execution.
3.2 TASK-AWARE AUTHORITY CONSTRUCTION
The authority of an information source cannot be treated as static; it fundamentally depends on how the source is utilized within the current task. A source may legitimately provide information for entity identification while lacking the authority to determine task-critical values. Therefore, AuthorityFlow constructs task-aware authority boundaries prior to parameter verification, providing an immutable baseline for subsequent checks.
To handle heterogeneous tool outputs where system-maintained fields coexist with user-controlled text, AuthorityFlow first segments each observation into fine-grained, semantically consistent source spans:
where each denotes an information region sharing uniform provenance and mutability.
Based on tool specifications, field semantics, and structural provenance, AuthorityFlow assigns each source span an intrinsic base authority . Base authority captures the intrinsic trust boundary of a source independent of the specific task. Notably, self-declared claims in untrusted text do not elevate .
To determine which specific facts a source span may govern during execution, AuthorityFlow compiles the trusted user task , the tool specification , and the source spans into a task-specific source–fact authorization relation:
where denotes that source is authorized to support fact under task . Authorization for one fact does not grant authority over other facts derived from the same source.
Crucially, before candidate parameters are evaluated, AuthorityFlow freezes this relation:
Because is established strictly before parameter generation and verification, it cannot be tampered with by downstream candidate values, injected content, or post-hoc model justifications.
3.3 PARAMETER SUPPORT TRACING
Given a pending tool call generated by the agent, with parameters , AuthorityFlow traces the provenance of each candidate parameter under verification. Rather than merely matching surface strings, this stage recovers the semantic dependency chain that actually produced the value.
For each parameter , AuthorityFlow identifies the minimal set of prerequisite facts required for its derivation:
These facts encompass both terminal values and intermediate dependencies. Retaining intermediate dependencies prevents the agent from justifying an unauthorized parameter simply because its surface string incidentally appears in context.
For each fact , AuthorityFlow extracts a grounded evidence set from the task context and observed tool outputs, preserving each evidence token's original source span . The derivation flow is thus formally captured as:
By binding evidence directly to source spans, AuthorityFlow maintains end-to-end provenance from original sources to candidate parameters.
3.4 PARAMETER AUTHORIZATION VERIFICATION
Upon recovering the support chain, AuthorityFlow evaluates whether the candidate parameter adheres to task authority boundaries. Semantic validity and source authorization are distinct concerns: text can be supportive yet untrusted, or authorized yet insufficient. Consequently, AuthorityFlow decouples the verification into two separate criteria:
-
Semantic Support (): Assesses whether the cited evidence logically entails the prerequisite fact , independent of source trustworthiness.
-
Source Authorization (): Verifies whether the source spans grounding the evidence are authorized under the frozen policy , requiring that .
A prerequisite fact is accepted if and only if both semantic entailment and source authorization hold:
Accordingly, a candidate parameter passes verification only when all its prerequisite facts are valid, denoted as . The pending tool call is permitted to execute only if every task-critical parameter passes verification; otherwise, AuthorityFlow intercepts the call prior to execution. By enforcing explicit authorization over the parameter information flow, AuthorityFlow accommodates legitimate parameter derivations while blocking unauthorized parameter influence.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Models. We evaluate AuthorityFlow with multiple LLM agent configurations to examine its generality across different foundation models. Specifically, we use Qwen3.6-27B (Yang et al., 2025), Llama-3.3-70B (Grattafiori et al., 2024), and GPT-4o (Hurst et al., 2024) as agent models under the same tool environments. By default, Qwen3.6-27B is used as the auxiliary model for AuthorityFlow. We further evaluate alternative auxiliary models in Section 4.3.
Benchmark. To evaluate LLM agents against parameter poisoning attacks, we construct FactAuthBench, an extended benchmark based on AgentDojo (Debenedetti et al., 2024). FactAuthBench covers four tool-interaction scenarios, including Banking, Slack, Travel, and Workspace, and contains 144 paired cases.
Each paired case contains two execution settings with the same user task:
- Clean setting: No attacker-controlled information is present, and the agent completes the task under normal conditions.
- Attack setting: Attacker-controlled external content is introduced under the same task to evaluate its impact on parameter generation.
This paired design enables a controlled comparison between clean and attack settings while keeping the user objective unchanged.
Baselines. We compare AuthorityFlow with representative IPI defenses. Specifically, we include Sandwiching (Liu et al., 2024b) and Spotlighting as input-level defenses (Hines et al., 2024); IPI-Guard (An et al., 2025), CaMeL (Debenedetti et al., 2025), and DRIFT (Li et al., 2026) as system-level defenses; and MELON (Zhu et al., 2025) and AttriGuard (He et al., 2026) as runtime verification and attribution-based defenses. All baselines are evaluated using their official implementations or default configurations.
Metrics. We evaluate AuthorityFlow from two aspects: security and task utility.
Benign Utility (BU). BU measures the proportion of user tasks successfully completed in the absence of attacker-controlled information (clean setting). It evaluates whether a defense affects normal task execution.
Utility under Attack (UA). UA measures the proportion of original user tasks successfully completed when attacker-controlled information is present (attack setting). It evaluates whether a defense can maintain task completion ability while mitigating attacks.
Attack Success Rate (ASR). ASR measures the success rate of parameter poisoning attacks. Specifically, it is the proportion of cases where attacker-controlled information causes an attacker-intended parameter value to appear in the executed tool call under the attack setting.
End-to-End Evaluation Configuration. To evaluate whether AuthorityFlow's verification results can enable task recovery under attack conditions, we further introduce an end-to-end configuration,
Table 1: Overall effectiveness on FactAuthBench. BU: benign utility; UA: utility under attack; ASR: attack success rate. P denotes purification. Best results in each column are bolded.
| Method | Qwen3.6-27B | GPT-4o | ||||
|---|---|---|---|---|---|---|
| BU ↑ | UA ↑ | ASR ↓ | BU ↑ | UA ↑ | ASR ↓ | |
| No defense | 90.28% | 3.47% | 93.06% | 81.94% | 27.78% | 57.64% |
| Sandwiching | 91.67% | 20.83% | 72.22% | 83.33% | 34.72% | 52.08% |
| Spotlighting | 92.36% | 25.69% | 69.44% | 84.72% | 30.56% | 59.72% |
| IPIGuard | 70.83% | 16.67% | 47.92% | 81.94% | 20.14% | 67.36% |
| AttriGuard | 86.11% | 14.58% | 73.61% | 76.39% | 34.03% | 46.53% |
| CaMeL (policies) | 43.75% | 29.17% | 0.69% | 39.58% | 26.39% | 2.08% |
| DRIFT | 86.11% | 44.44% | 39.58% | 79.86% | 36.81% | 37.50% |
| MELON | 86.81% | 2.78% | 79.17% | 79.17% | 25.00% | 43.06% |
| AuthorityFlow | 82.64% | 27.08% | 9.03% | 73.61% | 20.83% | 5.56% |
| AuthorityFlow w/ P | 84.72% | 58.33% | 9.03% | 75.00% | 60.42% | 5.56% |
AuthorityFlow + Purification. In this setting, the verification results generated by AuthorityFlow are provided to a downstream purification strategy, allowing us to measure the combined effect of verification and recovery. We treat purification as a downstream application of AuthorityFlow rather than an integral component of the framework.
4.2 OVERALL EFFECTIVENESS
Table 1 compares AuthorityFlow with existing IPI defenses on Qwen3.6-27B and GPT-4o. We investigate three questions: whether parameter poisoning poses a practical threat to LLM agents, whether AuthorityFlow can effectively mitigate such attacks, and whether the security improvement can be achieved without substantial loss in benign task performance.
Parameter poisoning poses a practical threat. Without defense, ASR reaches 93.06% on Qwen3.6-27B and 57.64% on GPT-4o, showing that attacker-controlled information can substantially influence executed tool parameters. Since the intended action can remain unchanged, these results further show that preserving high-level task alignment is insufficient to guarantee parameter-level security.
Existing IPI defenses provide limited protection against parameter poisoning. On Qwen3.6-27B, Sandwiching, Spotlighting, and MELON achieve ASRs of 72.22%, 69.44%, and 79.17%, respectively. On GPT-4o, Spotlighting still achieves an ASR of 59.72%. Although these methods mitigate certain IPI attacks, they mainly focus on preventing injected content from affecting instruction following, tool invocation behavior, or execution trajectories. In contrast, AuthorityFlow analyzes the information sources that contribute to parameter values and verifies both semantic support and task-specific authorization. This design consistently reduces attack success across Qwen3.6-27B and GPT-4o. Figure 4 further evaluates AuthorityFlow in combination with existing IPI defenses. On instruction-level IPI, the combined defenses maintain low ASR, while under parameter poisoning, adding AuthorityFlow substantially reduces attack success. This result indicates that AuthorityFlow provides complementary parameter-level protection that is not fully covered by existing defenses.
AuthorityFlow achieves a better security–utility trade-off. Figure 3 illustrates the trade-off between BU and ASR across different defense methods. Some approaches preserve high BU but remain vulnerable to parameter poisoning, indicating limited impact on normal tasks but insufficient attack prevention. Other methods reduce ASR at the cost of larger degradation in task utility. In contrast, AuthorityFlow substantially lowers ASR while maintaining high BU. For example, on Qwen3.6-27B, AuthorityFlow achieves a BU close to 80% while reducing ASR to approximately 10%; a similar trend is observed on GPT-4o. These results demonstrate that task-aware parameter authorization provides a more favorable balance between security and benign task performance. Furthermore, AuthorityFlow's verification results can support downstream recovery strategies. Table 1 reports the end-to-end performance of combining AuthorityFlow with a purification strategy. With purification, UA reaches 58.33% on Qwen3.6-27B and 60.42% on GPT-4o. This result shows
Table 2: Ablation results on Qwen3.6-27B.
| Variant | BU | UA | ASR |
|---|---|---|---|
| w/o Task-use Authorization | 59.72% | 27.08% | 7.64% |
| w/o Parameter Support Tracing | 56.94% | 13.89% | 11.81% |
| w/o Source Authorization | 86.81% | 21.53% | 62.50% |
| w/o Semantic Support | 84.03% | 22.92% | 28.47% |
| AuthorityFlow | 82.64% | 27.08% | 9.03% |
Table 3: Auxiliary verifier results.
| Verifier | BU | UA | ASR |
|---|---|---|---|
| Llama-3.3-70B | 62.50% | 10.42% | 24.31% |
| GPT-4o | 75.69% | 22.92% | 15.28% |
| Qwen3.6-27B | 82.64% | 27.08% | 9.03% |

Figure 3: Security–utility trade-off on FactAuthBench. Higher BU and lower ASR indicate better performance.

Figure 4: Complementarity with IPI defenses. Panel (a) uses vertical offsets for readability.
that AuthorityFlow not only detects unauthorized parameter dependencies and prevents parameter poisoning, but also provides useful security signals for downstream recovery, enabling partial task restoration while preserving authorization constraints.
4.3 ABLATION STUDY
We conduct ablations on Qwen3.6-27B, modifying one design choice at a time while keeping the remaining verification pipeline unchanged. As shown in Table 2, Task-use Authorization mainly preserves utility: removing it reduces BU from 82.64% to 59.72% while leaving ASR nearly unchanged (7.64%), indicating that task-aware authority avoids over-filtering caused by fixed source-level trust. Removing Parameter Support Tracing reduces BU/UA to 56.94%/13.89% and increases ASR to 11.81%, showing that direct evidence alone cannot capture parameter dependencies mediated by intermediate facts. Source Authorization and Semantic Support are complementary: removing them increases ASR to 62.50% and 28.47%, respectively. Thus, parameter verification requires both determining who is authorized to influence a parameter and whether the resulting value is actually supported.
Table 3 further evaluates AuthorityFlow with different auxiliary models. AuthorityFlow remains effective with GPT-4o and Llama-3.3-70B as auxiliary models, although their performance degrades to different degrees compared with the default Qwen3.6-27B configuration. This degradation may partly reflect the mismatch between the auxiliary and agent models, together with differences in their reasoning capabilities.
5 RELATED WORK
5.1 INDIRECT PROMPT INJECTION ATTACKS
Indirect Prompt Injection (IPI) embeds malicious payloads into external sources accessed during task execution, allowing untrusted content to manipulate model behavior (Pasquini et al., 2024; Chen et al., 2025d). While early work established remote webpages and documents as attack vectors (Greshake et al., 2023), subsequent studies have expanded both evaluation settings and attack goals (Zhang et al., 2025a; Ye et al., 2024; Johnson et al., 2025): BIPIA evaluates instructions embedded in external content (Yi et al., 2025), InjecAgent targets tool-use agents (Zhan et al., 2024), and AgentDojo benchmarks dynamic multi-step environments (Debenedetti et al., 2024). Recent efforts further investigate adaptive payloads tailored against deployed defenses (Zhan et al., 2025; Wang et al., 2025; Nasr et al., 2026).
Despite these developments, parameter-level manipulation and the validity of evidence supporting critical arguments remain underexplored. To bridge this gap, we introduce FactAuthBench for systematic evaluation.
5.2 INDIRECT PROMPT INJECTION DEFENSES
Existing IPI defenses broadly include training-based robustness, injection detection, and runtime behavioral detection. Training-based methods modify model behavior to resist untrusted instructions (Chen et al., 2025b;c; Piet et al., 2024): Instruction Hierarchy teaches models to respect instruction privilege levels (Wallace et al., 2024; Wu et al., 2025), while StruQ separates instructions from data and trains models to ignore injected instructions in data regions (Chen et al., 2025a). Detector-based methods such as DataSentinel (Liu et al., 2025) and PIGuard (Li et al., 2025) instead identify potentially injected inputs before they influence downstream execution (Wen et al., 2025; Chen et al., 2025e; Shi et al., 2025b). Runtime defenses infer attacks from behavioral changes: Known-Answer Detection uses predefined probes (Liu et al., 2024b), MELON compares tool calls through masked re-execution (Zhu et al., 2025), and AttriGuard uses counterfactual replay to attribute tool behavior to untrusted observations (He et al., 2026).
A smaller group of system-level defenses explicitly considers execution and data constraints (Shi et al., 2025a; Wu et al., 2024). CaMeL extracts control and data flows from trusted user requests and applies capability-based policies (Debenedetti et al., 2025), while DRIFT constructs execution traces and parameter constraints and verifies deviations at runtime (Li et al., 2026). However, these approaches do not explicitly model task-specific authority between individual information sources and parameter-relevant facts. AuthorityFlow addresses this gap by constraining which sources may determine task-critical parameters while preserving legitimate multi-source information use.
6 LIMITATIONS AND FUTURE WORK
AuthorityFlow’s authority construction relies on contextual information, including user task specifications, tool interfaces, and source provenance. Highly ambiguous user inputs or incomplete tool metadata may therefore introduce uncertainty into the resulting authorization boundaries. At the architectural level, the current design uses an independent verifier model for dual verification. Improving the verifier’s robustness against complex adversarial reasoning and reducing its inference overhead remain important practical considerations. Finally, while AuthorityFlow focuses primarily on detecting and intercepting unauthorized parameter-level influence, extending this paradigm to adaptive authority inference and automated task recovery in dynamic environments presents a promising direction for future work.
7 CONCLUSION
In this work, we identify parameter poisoning as a distinct and underexplored attack surface in Indirect Prompt Injection (IPI), where adversaries manipulate task-critical tool arguments without requiring the agent to deviate from its intended actions. To address this threat, we propose AuthorityFlow, a task-aware parameter authorization framework that establishes task-specific authority boundaries, traces factual parameter dependencies, and jointly verifies semantic support and use-specific source authorization. We also introduce FactAuthBench to systematically evaluate agent vulnerability and defense effectiveness against parameter poisoning. Comprehensive experiments demonstrate that AuthorityFlow substantially reduces attack success rates while preserving benign task utility across diverse foundation models. Our findings demonstrate that securing LLM agents against indirect manipulation requires governing not only which instructions they execute, but also which information sources are authorized to determine task-critical parameters.
REFERENCES
Hengyu An, Jinghuai Zhang, Tianyu Du, Chunyi Zhou, Qingming Li, Tao Lin, and Shouling Ji. Ipiguard: A novel tool dependency graph-based defense against indirect prompt injection in llm agents. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 1023–1039, 2025.
Sizhe Chen, Julien Piet, Chawin Sitawarin, and David Wagner. StruQ: Defending against prompt injection with structured queries. In 34th USENIX Security Symposium (USENIX Security 25), pp. 2383–2400, 2025a.
Sizhe Chen, Arman Zharmagambetov, Saeed Mahloujifar, Kamalika Chaudhuri, David Wagner, and Chuan Guo. Secalign: Defending against prompt injection with preference optimization. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, pp. 2833–2847, 2025b.
Sizhe Chen, Arman Zharmagambetov, David Wagner, and Chuan Guo. Meta sealign: A secure foundation llm against prompt injection attacks. arXiv preprint arXiv:2507.02735, 2025c.
Yulin Chen, Haoran Li, Yuexin Li, Yue Liu, Yangqiu Song, and Bryan Hooi. Topicattack: An indirect prompt injection attack via topic transition. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 7338–7356, 2025d.
Yulin Chen, Haoran Li, Yuan Sui, Yufei He, Yue Liu, Yangqiu Song, and Bryan Hooi. Can indirect prompt injection attacks be detected and removed? In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 18189–18206, 2025e.
Yulin Chen, Haoran Li, Zihao Zheng, Dekai Wu, Yangqiu Song, and Bryan Hooi. Defense against prompt injection attack by leveraging attack techniques. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 18331–18347, 2025f.
Zhaorun Chen, Zhen Xiang, Chaowei Xiao, Dawn Song, and Bo Li. Agentpoison: Red-teaming llm agents via poisoning memory or knowledge bases. Advances in Neural Information Processing Systems, 37:130185–130213, 2024.
Edoardo Debenedetti, Jie Zhang, Mislav Balunovic, Luca Beurer-Kellner, Marc Fischer, and Florian Tramèr. Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses for llm agents. Advances in neural information processing systems, 37:82895–82920, 2024.
Edoardo Debenedetti, Ilia Shumailov, Tianqi Fan, Jamie Hayes, Nicholas Carlini, Daniel Fabian, Christoph Kern, Chongyang Shi, Andreas Terzis, and Florian Tramèr. Defeating prompt injections by design. arXiv preprint arXiv:2503.18813, 2025.
Alexandre Drouin, Maxime Gasse, Massimo Caccia, Issam H Laradji, Manuel Del Verme, Tom Marty, Léo Boisvert, Megh Thakkar, Quentin Cappart, David Vazquez, et al. Workarena: How capable are web agents at solving common knowledge work tasks? arXiv preprint arXiv:2403.07718, 2024.
Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, and Mario Fritz. Not what you've signed up for: Compromising real-world llm-integrated applications with indirect prompt injection. In Proceedings of the 16th ACM workshop on artificial intelligence and security, pp. 79–90, 2023.
Yu He, Haozhe Zhu, Yiming Li, Shuo Shao, Hongwei Yao, Zhihao Liu, and Zhan Qin. Attriguard: Defeating indirect prompt injection in llm agents via causal attribution of tool invocations. arXiv preprint arXiv:2603.10749, 2026.
Keegan Hines, Gary Lopez, Matthew Hall, Federico Zarfati, Yonatan Zunger, and Emre Kiciman. Defending against indirect prompt injection attacks with spotlighting. arXiv preprint arXiv:2403.14720, 2024.
Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. Gpt-4o system card. arXiv preprint arXiv:2410.21276, 2024.
Feiran Jia, Tong Wu, Xin Qin, and Anna Squicciarini. The task shield: Enforcing task alignment to defend against indirect prompt injection in llm agents. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 29680–29697, 2025.
Sam Johnson, Viet Pham, and Thai Le. The dangers of indirect prompt injection attacks on llm-based autonomous web navigation agents: A demonstration. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 729–738, 2025.
Hao Li, Xiaogeng Liu, Ning Zhang, and Chaowei Xiao. Piguard: Prompt injection guardrail via mitigating overdefense for free. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 30420–30437, 2025.
Hao Li, Xiaogeng Liu, CHIU Chun, Dianqi Li, Ning Zhang, and Chaowei Xiao. Drift: Dynamic rule-based defense with injection isolation for securing llm agents. Advances in Neural Information Processing Systems, 38:83262–83290, 2026.
Minghao Li, Yingxiu Zhao, Bowen Yu, Feifan Song, Hangyu Li, Haiyang Yu, Zhoujun Li, Fei Huang, and Yongbin Li. Api-bank: A comprehensive benchmark for tool-augmented llms. In Proceedings of the 2023 conference on empirical methods in natural language processing, pp. 3102–3116, 2023.
Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al. Agentbench: Evaluating llms as agents. In International Conference on Learning Representations, volume 2024, pp. 52989–53046, 2024a.
Yupei Liu, Yuqi Jia, Runpeng Geng, Jinyuan Jia, and Neil Zhenqiang Gong. Formalizing and benchmarking prompt injection attacks and defenses. In 33rd USENIX Security Symposium (USENIX Security 24), pp. 1831–1847, 2024b.
Yupei Liu, Yuqi Jia, Jinyuan Jia, Dawn Song, and Neil Zhenqiang Gong. Datasentinel: A game-theoretic detection of prompt injection attacks. In 2025 IEEE Symposium on Security and Privacy (SP), pp. 2190–2208. IEEE, 2025.
Milad Nasr, Nicholas Carlini, Chawin Sitawarin, Sander V Schulhoff, Jamie Hayes, Michael Ilie, Juliette Pluto, Shuang Song, Harsh Chaudhari, Ilia Shumailov, et al. The attacker moves second: Stronger adaptive attacks bypass defenses against {LLM} jailbreaks and prompt injections. In 35th USENIX Security Symposium (USENIX Security 26), pp. 1467–1486, 2026.
Dario Pasquini, Martin Strohmeier, and Carmela Troncoso. Neural exec: Learning (and learning from) execution triggers for prompt injection attacks. In Proceedings of the 2024 Workshop on Artificial Intelligence and Security, pp. 89–100, 2024.
Julien Piet, Maha Alrashed, Chawin Sitawarin, Sizhe Chen, Zeming Wei, Elizabeth Sun, Basel Alomair, and David Wagner. Jatmo: Prompt injection defense by task-specific finetuning. In European Symposium on Research in Computer Security, pp. 105–124. Springer, 2024.
Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al. Toolllm: Facilitating large language models to master 16000+ real-world apis. In International Conference on Learning Representations, volume 2024, pp. 9695–9717, 2024.
Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. Advances in neural information processing systems, 36:68539–68551, 2023.
Tianneng Shi, Jingxuan He, Zhun Wang, Hongwei Li, Linyu Wu, Wenbo Guo, and Dawn Song. Progent: Securing ai agents with privilege control. arXiv preprint arXiv:2504.11703, 2025a.
Tianneng Shi, Kaijie Zhu, Zhun Wang, Yuqi Jia, Will Cai, Weida Liang, Haonan Wang, Hend Alzahrani, Joshua Lu, Kenji Kawaguchi, et al. Promptarmor: Simple yet effective prompt injection defenses. arXiv preprint arXiv:2507.15219, 2025b.
Eric Wallace, Kai Xiao, Reimar Leike, Lilian Weng, Johannes Heidecke, and Alex Beutel. The instruction hierarchy: Training llms to prioritize privileged instructions. arXiv preprint arXiv:2404.13208, 2024.
Zhun Wang, Vincent Siu, Zhe Ye, Tianneng Shi, Yuzhou Nie, Xuandong Zhao, Chenguang Wang, Wenbo Guo, and Dawn Song. Agentvigil: Automatic black-box red-teaming for indirect prompt injection against llm agents. In EMNLP (Findings), pp. 23159–23172, 2025.
Tongyu Wen, Chenglong Wang, Xiyuan Yang, Haoyu Tang, Yueqi Xie, Lingjuan Lyu, Zhicheng Dou, and Fangzhao Wu. Defending against indirect prompt injection by instruction detection. In EMNLP (Findings), pp. 19472–19487, 2025.
Tong Wu, Shujian Zhang, Kaiqiang Song, Silei Xu, Sanqiang Zhao, Ravi Agrawal, Sathish Reddy Indurthi, Chong Xiang, Prateek Mittal, and Wexuan Zhou. Instructional segment embedding: Improving llm safety with instruction hierarchy. In International Conference on Learning Representations, volume 2025, pp. 93728–93758, 2025.
Yuhao Wu, Franziska Roesner, Tadayoshi Kohno, Ning Zhang, and Umar Iqbal. Isolategpt: An execution isolation architecture for llm-based agentic systems. arXiv preprint arXiv:2403.04960, 2024.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629, 2022.
Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan. -bench: A benchmark for tool-agent-user interaction in real-world domains. arXiv preprint arXiv:2406.12045, 2024.
Junjie Ye, Sixian Li, Guanyu Li, Caishuang Huang, Songyang Gao, Yilong Wu, Qi Zhang, Tao Gui, and Xuan-Jing Huang. Toolsword: Unveiling safety issues of large language models in tool learning across three stages. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2181–2211, 2024.
Jingwei Yi, Yueqi Xie, Bin Zhu, Emre Kiciman, Guangzhong Sun, Xing Xie, and Fangzhao Wu. Benchmarking and defending against indirect prompt injection attacks on large language models. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 1, pp. 1809–1820, 2025.
Qiusi Zhan, Zhixiang Liang, Zifan Ying, and Daniel Kang. Injecagent: Benchmarking indirect prompt injections in tool-integrated large language model agents. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 10471–10506, 2024.
Qiusi Zhan, Richard Fang, Henil Shalin Panchal, and Daniel Kang. Adaptive attacks break defenses against indirect prompt injection attacks on llm agents. In Findings of the Association for Computational Linguistics: NAACL 2025, pp. 7116–7132, 2025.
Hanrong Zhang, Jingyuan Huang, Kai Mei, Yifei Yao, Zhenting Wang, Chenlu Zhan, Hongwei Wang, and Yongfeng Zhang. Agent security bench (asb): Formalizing and benchmarking attacks and defenses in llm-based agents. In International Conference on Learning Representations, volume 2025, pp. 35331–35366, 2025a.
Ruiyi Zhang, David Sullivan, Kyle Jackson, Pengtao Xie, and Mei Chen. Defense against prompt injection attacks via mixture of encodings. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pp. 244–252, 2025b.
Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, et al. Webarena: A realistic web environment for building autonomous agents. In International Conference on Learning Representations, volume 2024, pp. 15585–15606, 2024.
Kaijie Zhu, Xianjun Yang, Jindong Wang, Wenbo Guo, and William Yang Wang. Melon: Provable defense against indirect prompt injection attacks in ai agents. arXiv preprint arXiv:2502.05174, 2025.