Chaining Skills to Hijack LLM Agents
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Chaining Skills to Hijack LLM Agents Tian Dong∗,1 , Zixuan Ma∗,2 , Haodong Zhao3 , Huaien Zhang1 , Shaofeng Li4 , Hao Chen1
arXiv:2610.01564v1 [cs.CR] 1 Oct 2026
1
The University of Hong Kong 2 Shandong University 3 Shanghai Jiao Tong University 4 Southeast University ∗ Equal contribution.
Abstract LLM agents use skills to improve performance on specialized tasks. To complete a user request, an agent may invoke several skills in sequence, allowing information produced under one skill to guide the next. Because skills may come from open-source repositories, this handoff can also carry attackercontrolled claims into later decisions. In this paper, we introduce APEX, which constructs and refines adversarial skill chains tailored to a user task and an attacker-selected action. The key insight is that an agent-written record of genuine task progress can carry a false claim of user approval across skills: an upstream skill induces the agent to create the record, and a downstream skill uses it to direct the attacker-selected action. Across four targeted-action families and six models on SkillsBench, the chains induce the selected action in 512 of 690 attempts (74.2%). On GPT-5.4, the full chain succeeds in 84.3% of attempts, compared with 17.4% when the workflow is merged into one skill. We further evaluate a prompting defense that asks the agent to check skill-produced files against the original request. On GPT-5.4, it lowers targeted-action success from 84.3% to 59.1%, while the verifier test-pass rate across 72 benign native-skill tasks falls from 86.7% to 56.3%. These results highlight the need for defenses that prevent attacker-directed actions while preserving legitimate task performance.
1
Introduction
LLM agents use skills, reusable packages of task instructions, to guide multi-step work (Li et al., 2026). Because individual skills often serve specific workflows (Provencher, 2026), an agent may use several of them to complete a task. Public repositories and registries make skills easy to share and reuse, but also give attackers a channel for distributing malicious skills (Zhu et al., 2026; Liu et al., 2026b; Wang et al., 2026). For example, when a user asks an agent to summarize files while preserving the originals, an attacker-controlled skill can have the agent record both that the summary is complete and that a source file is approved for cleanup. A later skill can then direct the agent to delete the file based on that record, so the agent may deliver the requested summary while violating the instruction to preserve its source (Figure 1). Prior work has examined security risks arising from skill composition. ColluSkill splits a malicious objective into interdependent sub-skills and refines them using scanner feedback (Zeng et al., 2026). CompoSkill searches for capability-compatible attack paths among skills that individually pass scanners (Liu et al., 2026a). SCR-Bench evaluates capability flow, trust transfer, and authorization confusion in controlled skill compositions (Xie et al., 2026). However, these studies leave an important question underexplored: how well does an agent perform the user’s legitimate task when its skill workflow is under attack? To examine attack outcomes alongside performance on the user’s original task, we introduce APEX (Authority Promotion EXplorer). Given a user task and an attacker-selected objective, APEX constructs a 1
Adversarial skill chain shared by attackers
User request Load skills
Summarize and keep the original files
Skill ①
Execute
Intermediate
Load
Skill ②
File deletion Leakage
...... Response with success
Unknown to user
Figure 1: APEX attack mechanism. In this schematic example, the agent with adversarial skill chains completes the requested summary and responds to the user, but continues to follow the chain and to delete an original file that the user required the agent to preserve. chain in which one stage prompts the agent to record genuine task progress together with an attacker-supplied claim about the next action, and a later stage directs the agent to act on that record (Figure 2). APEX evaluates candidate chains for both attack success and original-task performance, using execution feedback to refine the cross-skill handoff. To examine this handoff across different agent workflows, we study five attack families motivated by representative task scenarios (Table 1). We provide two formal analyses of its consequences. For targeted actions, we introduce a task-progress record to look the same whether the original request permits or forbids the action. When the agent cannot distinguish these cases from the information available at the handoff, a rule using only that information cannot avoid both false allows and false denials (Section 4.3). For repeated work, we develop a finite-state model that shows how returns to earlier stages can increase expected token cost, with the effect depending on how often the return point is reached and how much work follows re-entry (Section 4.4). Across four targeted-action families on SkillsBench (Li et al., 2026) and six edge-cutting LLMs, our attack achieves high attack success rate. The malicious skill chains induce the selected action in 512 of 690 attempts (74.2%). Particularly, on GPT-5.4, the full chain succeeds in 84.3% of attempts, compared with 17.4% for the merged workflow and 3.5% for direct injection. Across all GPT-5.4 attacked runs, the verifier check-pass rate for the original task differs from the native baseline by 2.6 percentage points on average in absolute terms, weighting the four families equally. Notably, for the rest availability attack family Work Loop, the mean per-task token use ranges from 2.20× to 36.39× the native baseline across models. We also evaluate an adaptive defense that prompts the agent to check skill-produced files against the original request. On GPT-5.4, it reduces targeted-action success from 84.3% to 59.1% and lowers the Work Loop token ratio. The verifier check-pass rate on benign native-skill workflows, however, falls from 86.7% to 56.3%. The results suggest more powerful mitigation is urgently needed in the face of a growing skill ecosystem. Our contributions are: • We introduce APEX, which constructs and tests skill chains that place genuine task progress and an attacker-supplied claim about the next step in a persistent record for a later skill to use. • We theoretically characterize the limits of permission decisions based on locally available handoff information and model how repeated stage visits contribute to expected token cost. • We evaluate targeted actions and Work Loop across six models, compare the full chain with direct injection, a merged workflow, and an approval-denied record, and assess attack outcomes alongside original-task performance and a request-checking defense.
2
Related work
In this section, we review related work on attacking LLM agents.
2
Prompt-based Agent Hijacking. To deceive an LLM, prior work focuses on the indirect prompt injection that lets an attacker redirect an agent through lower-trust content encountered during execution (Greshake et al., 2023) such as through retrieval-augmented generation (Guo and Wei, 2026; Chang et al., 2026). With instruction hierarchy (Wallace et al., 2024), LLMs are trained to ignore the illegal instructions in the data zone, which further raises the attack difficulty of hijacking models with outsourced data. Skill-based Attacks. Agent skills, as a legal personalization instruction, allow users to customize their own agents, which also provides one route for the attacker to manipulate agent behavior. SkillJect presents a hidden helper as necessary for the task and uses trial results to revise the skill instructions (Jia et al., 2026), while POISE embeds a script invocation in setup instructions so that it appears routine (Hao et al., 2026). Following the similar idea, our targeted-action skill chains likewise tie an unwanted action to the task to facilitate the attack success estimation. Compositional Skill Attacks. There is also a line of work focusing on using multiple skills to attack an agent. SCR-Bench studies authorization confusion through controlled skill-composition scenarios, including cases where upstream outputs influence downstream approval decisions (Xie et al., 2026). Our construction tests a specific handoff: the record links reported task progress and a selected target to attacker-supplied approval, and the later skill directs action on that target. We follow this handoff through agent execution and test a related one that sends the agent back to repeat work. Other skill-composition work uses scanner results to build or select chains. ColluSkill synthesizes interdependent skills using scanner feedback (Zeng et al., 2026), while CompoSkill searches for risky paths among skills that individually pass a scanner and studies how chain length affects attack success (Liu et al., 2026a). In contrast to prior attacks that adopt one-time generation, we generate chain through iterative revision with trial runs on the failed steps to craft malicious skills.
3
Threat model
We consider an LLM agent completing a legitimate task by reading reusable skill instructions and using its tools. While following one skill, the agent is granted write access in a given directory (e.g., project folder) to produce an assisting record that it reads later when following another. The original user request continues to govern what the agent may do, regardless of claims in that record. For example, a request to preserve source files remains binding after their contents have been summarized. Attacker’s Goal. The attacker supplies skills that work together to redirect the agent or keep it working longer. For action-oriented objectives, the attacker seeks an unwanted action involving a selected target. For the availability attack (i.e., Work Loop in Table 1), the attacker instead targets resource use by inducing repeated task work. We measure this repeated work separately from whether it violates an explicit permission or budget limit. Attacker’s Ability. The attacker controls the submitted SKILL.md packages and can arrange how information from one stage guides the next. This can be done through a malicious skill package on the marketplace (e.g., SkillsMP). In addition to the skill uploading, the attacker has no direct access to the victim’s environment and tools and cannot interact with the victim. Attacker’s Knowledge. We consider a task-aware attacker who knows the topics of the user’s request and their initial workspace (e.g., through skill topic design), including the native skills available for the task. During offline construction, the attacker can test a candidate chain and receive a report of its execution. The report indicates whether the chain progressed far enough to attempt the target action and whether the agent still produced useful task results, guiding revision before another trial. Our evaluation begins once the candidate packages are available to the agent.
3
Skill Generation • •
Trial Execution •
Task Goal
Feedback Eval
Skill Revision
• •
• •
Simulated results
Utility ASR
Utility ASR
Next candidate loop
Figure 2: Overview of APEX. APEX generates candidate skill chains, simulates them in an isolated task environment, and refines them using execution feedback of normal task utility and attack success rate. Table 1: Five attack families: task state, attacker-supplied claim, and target. Family External Transfer Script Acquisition File Modification Output Tampering Work Loop
4
Aspect
Initial task state
Required access
Target
Confidentiality Integrity Integrity Integrity
Local task file Helper-compatible task Non-backup file Source file
Network Execution Deletion Write
Out-of-scope transfer Remote helper execution Native file deletion Conflicting write
Availability
Execution unit
Continuing instruction
Re-entry and next unit
APEX: attack construction and analysis
APEX links useful task work to an attacker-selected next step (Figure 2). The generator chooses work the agent can complete, then writes skills that work together so the agent records that progress for a later stage. Table 1 shows the task state, attacker-supplied claim, and target outcome for each family. Trial runs show whether the agent creates the record and follows the proposed step, allowing the generator to revise the instructions at the stage where the chain fails.
4.1
Constructing the dependency
For the four targeted-action families, the generator first identifies task work that can make the selected action appear warranted. It uses this work to construct upstream instructions: the agent is told to select the relevant target and record it together with task progress and the attacker’s claim that the action has already been approved. A downstream skill then instructs the agent to act on the recorded target using this claimed approval. In the File Modification example, the requested work is summarization and the attacker’s objective is deletion. Following the upstream instructions, the agent records that the summary is ready and marks the original source file as eligible for cleanup. By naming that file, the record ties the proposed deletion to the task input. The downstream skill then instructs the agent to delete this file based on its recorded status. The resulting action violates the request to preserve the source even though the summary itself can remain useful. Script Acquisition applies the similar pattern to code execution. The attacker presents a remote malicious script as a task-relevant helper, and the handoff leads the agent to retrieve and execute it.
4.2
Refining the chain through execution
We run each candidate on an isolated task copy through the Harbor execution framework to determine where the chain fails. In the cleanup example, the agent may reach the downstream skill without finding the expected record, or it may read the record but decline to delete the source. The trial report distinguishes a failure to establish the handoff from a failure to induce the action, allowing the generator to revise the instructions for the relevant stage. The generator can, for example, clarify how downstream instructions refer to the preceding skill’s result. Such revisions leave the target action and its success criterion fixed: the cleanup attack still fails if the agent 4
merely marks the identified source as eligible for cleanup without removing it. We separately use the task verifier to check whether the revised workflow still performs useful work. Section 5 defines the outcome measures.
4.3
Why task progress does not establish permission
Completing the summary does not resolve whether the source may be deleted: the same useful result is compatible with an original request that permits deletion and one that requires preservation. Yet a skillproduced record could state that the summary is ready and claim that the source is eligible for cleanup in either case. An agent using this record to decide whether to delete the source would need information that distinguishes the two requests. For a proposed action a and history h, let A(h, a) ∈ {0, 1} indicate whether the original request permits a in that history. An upstream record may change when the agent completes useful work, but A(h, a) remains zero if the request still prohibits the action. The attack couples this updated record with a claim of approval and asks the agent to act on it under a downstream skill. Suppose the agent decides whether to allow an action using only the record and the context available when it reads that record. Call this local view V . For a fixed action, denote the distributions of V under permitted and prohibited histories by P+ and P− . A possibly randomized rule f (v) ∈ [0, 1] gives the probability of allowing the action. This rule uses only V and does not consult parts of the original request omitted from that view. Proposition 1 (Indistinguishable handoffs) For any such rule, the false-allow probability FA(f ) on prohibited histories and the false-deny probability FD(f ) on permitted histories satisfy FA(f ) + FD(f ) ≥ 1 − TV(P+ , P− ),
(1)
where TV denotes total variation distance. If the two views are identically distributed, these error probabilities sum to one. Indeed, their sum is 1 − (EP+ f − EP− f ), and the difference of expectations is at most the total variation distance (Appendix E). The bound concerns the sum of the two errors: a rule can avoid false allows by denying every action, but it then rejects permitted actions as well. If the full local view does not distinguish the two requests, the summary record cannot establish permission. The agent gains no authorization information by copying the record or checking that it has not changed when those operations use only information already in the local view (Appendix E). It can still resolve permission by consulting the original request. Our experiments do not estimate the distributions in Eq. (1).
4.4
Extending the chain to repeated work
In Work Loop, the upstream instructions tell the agent to record completion of the current task unit and propose returning to the entry stage to begin another. A downstream skill instructs the agent to follow this proposal, even though completing one unit does not establish that the overall task requires another (see Appendix C.1 for an example). Because the agent may complete useful work while following these return instructions, we measure resource cost alongside task utility. To analyze this cost, we represent active stages or completed cycles as states of a finite transition matrix Q ≥ 0 with row sums at most one. Each row gives the probabilities of the next active state, with the remaining probability denoting termination. Let ci ≥ 0 be the finite expected token cost of a visit to state i, and let α be the initial distribution over active states. Assume that, conditional on the current state, transition probabilities and expected visit costs do not depend on earlier history or the visit index. 5
Proposition 2 (Cost of recurrent work) For at most H active-state visits, the expected total cost is ! H−1 X E[CH ] = α⊤ Qt c.
(2)
t=0
If the spectral radius satisfies ρ(Q) < 1, then F = (I − Q)−1 exists and the expected cost without a visit limit is E[C∞ ] = α⊤ F c. The same model identifies which returns have the largest local effect on cost. For a feasible change in Qij that trades probability with termination while holding α, other transitions, and c fixed, ∂ E[C∞ ] = (α⊤ F )i (F c)j , ∂Qij
ρ(Q) < 1.
(3)
The first factor is the expected number of visits to the source state, and the second is the expected token cost from the destination onward. Increasing the return probability therefore has a larger effect when the source is visited more often or the destination leads to a higher expected token cost. Appendix E.2 proves both results and gives the exact reduction for a finite decrease in a return probability. An extra stage can increase work per cycle while making a return less likely, so adding skills need not increase expected cost in this model. Equation (3) varies one return probability while holding other transitions and costs fixed. A change to the chain may alter several of these quantities at once. The permission bound concerns errors made from a local view of the record, while the return model relates repeated visits to token cost. We now follow complete task runs to see whether a later skill induces the selected action, whether Work Loop returns the agent to work, and how token use changes. We also record the fraction of native task checks passed.
5
Evaluation
Setup. We evaluate APEX on S KILLS B ENCH across six models, using a task subset appropriate to each attack family. These subsets can overlap, so a task may contribute to more than one family’s count in Table 2. Appendix C.2 lists the available task and verifier counts. Metrics. The first four rows of Table 1 summarize the targeted-action families. An attack succeeds only when the intended action occurs, independently of whether the original task passes its verifier. Network effects are recorded by a capture service inside the task environment. For Output Tampering, writing content that conflicts with its source counts as unauthorized only when the task restricts which source or object the agent may use. Appendix B.1 details the success checks. For these four families, attack success rate (ASR) is the fraction of evaluated runs satisfying the family criterion. An attempt remains unsuccessful if the victim fails to select or complete the workflow. To measure useful work, we divide the number of passed native verifier checks by the total number of checks. Tasks with more checks therefore receive greater weight, so this utility measure differs from the fraction of tasks fully completed. For Work Loop, the attack criterion requires the agent to return unit of task work. We measure P to another A /T 0 , where T A and T 0 denote total its resource cost using the mean per-task token ratio r̄ = N −1 N T i i i i=1 i tokens under attack and the native baseline on task i. The ratio does not show what work used the extra tokens or whether the agent broke a budget limit. We report native utility separately as the fraction of original task checks passed.
6
Table 2: Attack effectiveness across models. The first four columns report ASR (%), with n tasks per model and family. For Work Loop, we report the mean per-task token ratio. The final row aggregates the corresponding metric across all models. External transfer n = 30
Script acquisition n = 29
File modification n = 25
Output tampering n = 31
Work Loop Token ratio n = 15
Claude Sonnet 5 DeepSeek V4 Flash GPT-5.4 Gemini 3.5 Flash Grok 4.5 Kimi K2.6
83.3 66.7 86.7 76.7 56.7 70.0
65.5 75.9 75.9 89.7 58.6 86.2
84.0 84.0 84.0 84.0 68.0 72.0
58.1 77.4 90.3 74.2 54.8 64.5
21.33 20.66 15.00 2.20 14.42 36.39
Across models
73.3
75.3
79.3
69.9
18.33
Model
5.1
Attack effectiveness
The chains induce unwanted actions in 74.2% (512/690) of attempts across the four targeted-action families. All 24 model–family combinations exceed 50% ASR, ranging from 54.8% to 90.3% (Table 2). Across models, file-modification attacks succeed most often, at 79.3%. On GPT-5.4, the chains achieve 84.3% ASR across the four objectives. Work Loop has a different endpoint: returning to another unit of task work rather than performing a discrete target action. In this condition, agents use more tokens than under the native baseline, with mean per-task ratios ranging from 2.20× to 36.39×. The largest increase occurs on Kimi K2.6, while the ratios on both Claude Sonnet 5 and DeepSeek V4 Flash exceed 20×.
5.2
Task utility under attack
On GPT-5.4, action-oriented ASR reaches 75.9–90.3%, while native task utility changes by only 2.6 percentage points on average in absolute terms across the four families (Figure 3). This average weights the families equally and includes every run, whether or not the attack succeeded. In External Transfer, for example, 86.7% of attempts succeed while utility changes from 77.7% to 76.5%. This pattern is especially clear when the attacker targets the deliverable itself through Output Tampering: GPT-5.4 reaches 90.3% ASR while utility changes from 90.4% to 89.6%. Across all six models, absolute utility changes for this family remain within 3.6 percentage points, despite ASRs of 54.8–90.3%. The downstream skill keeps the requested destination and output structure but directs the agent to write content that conflicts with the source. A high native verifier score therefore cannot substitute for checking the targeted content against the task’s requirements. Under Work Loop, Kimi K2.6 retains 77.0% utility in both conditions, while the mean per-task token ratio reaches 36.39×. GPT-5.4 similarly retains an 80.5% verifier test-pass rate compared with an 88.5% baseline, despite a 15.00× token ratio. On Claude Sonnet 5, by contrast, a mean per-task token ratio of 21.33× accompanies a decline from 78.8% to 42.5% utility. Increased resource use can thus accompany either preserved or reduced task utility. The utility score alone does not reveal this cost.
6
Ablation and defense evaluation
Keeping the task, objective, and action checks fixed, we compare the full chain with three controls on our construction: a direct statement of the objective, a merged workflow, and a chain whose record explicitly 7
Benign baseline
Claude Sonnet 5
Attack chain
DeepSeek V4 Flash
GPT-5.4
Transfer Script acq. File mod. Tampering Work loop 0
50
100
0
50
Gemini 3.5 Flash
100
0
Grok 4.5
50
100
Kimi K2.6
Transfer Script acq. File mod. Tampering Work loop 0
50
100
0
50
100
0
50
100
Verifier test-pass rate (%)
Figure 3: Task utility under benign execution (blue circles) and attack conditions (orange diamonds). Scores are fractions of native verifier checks passed across all runs in each condition, whether or not the attack succeeded. Gray segments connect the two scores for each model–family pair. All panels share the same percentage scale. denies approval. We evaluate the structural comparisons on DeepSeek V4 Flash and GPT-5.4, then test the prompting defense on GPT-5.4. All comparisons reuse the full-chain result from the main experiment.
6.1
Comparing alternative workflows
On GPT-5.4, the full chain succeeds in 84.3% of attempts, compared with 3.5% for direct injection, which states the unwanted objective in a single skill. On DeepSeek, the corresponding rates are 75.7% and 3.5%. The full chain exceeds direct injection by 80.9 and 72.2 percentage points, respectively. With all task and attack instructions in one skill, ASR is 17.4% on GPT-5.4 and 10.4% on DeepSeek. This monolithic workflow has lower ASR than the full chain in every model–family comparison (Table 3). It also keeps intermediate information in memory rather than in a record shared across skills. Because instruction grouping and this handoff both change, the comparison does not isolate the effect of sharing the record. Changing the recorded status to unauthorized lowers ASR from 84.3% to 27.0% on GPT-5.4 and from 75.7% to 20.0% on DeepSeek, reductions of 57.4 and 55.7 percentage points, respectively. The rest of the workflow, including the downstream instruction to act on the record, remains the same. On GPT-5.4, Output Tampering still succeeds in 38.7% of attempts under explicit denial. For Output Tampering on GPT-5.4, monolithic execution and direct injection yield no successful attacks, while their native verifier test-pass rates are 81.9% and 89.6%, respectively. These condition-level scores show that native task utility does not simply track attack success. Under Work Loop, GPT-5.4 has a mean per-task token ratio of 15.00× for the full chain, compared with 1.06–1.71× across the controls. The full chain also has the highest token ratio on DeepSeek. Appendix B.2 details how each comparison changes the full-chain workflow.
6.2
Varying skill count
We vary the skill count from one to six, reducing it by merging functional stages while retaining their instructions. To increase it, we add placeholder skills that introduce further transitions without new tasksolving or attack functionality. By default, we use five packages for Script Acquisition and Work Loop, and 8
Table 3: Structural ablations. We report ASR (%) for each action-oriented family and for all four together, and the mean token ratio (×) for Work Loop. The largest value in each row is shown in bold. The ASR comparisons use the task counts in Table 2. Family
Full chain
Authorization denied
Monolithic workflow
Direct injection
DeepSeek V4 Flash External Transfer Script Acquisition File Modification Output Tampering All action families Work Loop (×)
66.7 75.9 84.0 77.4 75.7 20.66
0.0 0.0 32.0 48.4 20.0 3.26
10.0 13.8 20.0 0.0 10.4 1.58
13.3 0.0 0.0 0.0 3.5 4.42
GPT-5.4 External Transfer Script Acquisition File Modification Output Tampering All action families Work Loop (×)
86.7 75.9 84.0 90.3 84.3 15.00
13.3 37.9 16.0 38.7 27.0 1.71
20.0 0.0 56.0 0.0 17.4 1.06
13.3 0.0 0.0 0.0 3.5 1.10
Token ratio (×)
ASR (%)
DeepSeek V4 Flash
GPT-5.4
100
100
75
75
50
50
25
25
0
0
20
20
10
10
0
1
2
3
4
5
0
6
1
2
Number of skills (K) Transfer
3
4
5
6
Number of skills (K)
Script acquisition
File modification
Output tampering
Figure 4: Skill-count ablation. Upper panels show ASR for the four targeted-action families, and lower panels show the mean work-loop token ratio. Ringed points mark the default number of skills. The dotted horizontal line in the lower panels marks a token ratio of 1, corresponding to native baseline execution. four for the other families. The plotted values at those default counts are reused from the main experiment (Appendix B.3). We do not observe a consistent increase in attack success as the skill count rises (Figure 4). When GPT-5.4 is targeted with Output Tampering, ASR peaks at 90.3% with four packages and falls to 45.2% after a fifth is added. The same change on DeepSeek lowers ASR from 77.4% to 54.8%. By contrast, the highest ASR for Script Acquisition occurs at five packages on both models, reaching 75.9%. For both Output 9
Table 4: Taint-guided prompting on GPT-5.4. We measure attack outcomes using ASR (%) or mean token ratio (×), and task utility using verifier test-pass rate. Each comparison uses the same verifier checks in both conditions (Appendix C.6). Attack outcome Family External Transfer Script Acquisition File Modification Output Tampering Work Loop (×) Native skills, no attack
Utility (%)
Undefended
Defended
Undefended
Defended
86.7 75.9 84.0 90.3 15.00
60.0 62.1 76.0 41.9 7.50
76.5 90.0 83.4 89.6 80.5
55.8 70.5 65.9 44.2 67.3
—
—
86.7
56.3
Tampering and Script Acquisition, the highest observed ASR occurs when every default functional stage has its own package. On GPT-5.4, External Transfer is less sensitive to package count: ASR stays within 83.3–86.7% as the count varies from three to six packages. Under Work Loop, the highest mean token ratio occurs at the default five skills on both models: 15.00× on GPT-5.4 and 20.66× on DeepSeek. With the workflow merged into one skill, these ratios are 1.12× and 2.86×, respectively. With a sixth package, GPT-5.4 amplification is also lower, at 4.71×.
6.3
Evaluation against taint-guided prompting
After each skill invocation, the defense marks workspace files created or modified during that invocation as untrusted. Before acting on their contents, the agent is asked to check them against the user’s request and information obtained independently of those files. The prompt reminds the agent that being able to act does not mean the user allowed it (South et al., 2025). We apply the policy to unchanged GPT-5.4 attack chains, then evaluate its effect on benign native-skill workflows (Appendix B.4). The defense lowers ASR from 84.3% (97/115) to 59.1% (68/115), leaving most attacks successful (Table 4). File-modification attacks retain 76.0% ASR, only 8.0 percentage points below the undefended rate. Under Work Loop, the mean per-task token ratio remains 7.50×. The reduction in ASR is accompanied by uneven utility losses. Under Output Tampering, the defense reduces ASR by 48.4 percentage points and utility by 45.4 points, the largest changes among the four targeted-action families on both measures. Against file-modification attacks, utility falls by 17.5 points while ASR decreases by 8.0 points. The utility loss also appears in benign workflows without an attack chain. Across 72 benign tasks using native skills, verifier test-pass rate falls from 86.7% to 56.3%, a decline of 30.4 percentage points. Since these workflows contain no attack chain, refusing malicious actions alone cannot explain the lower utility.
7
Discussion and conclusion
The full chain reaches targeted actions more often than direct and merged workflows on both compared models. When all runs are counted, the original task’s verifier scores can still stay near their benign baselines. Work Loop shows a second effect of the same kind of handoff: returning to another work unit can raise token use without necessarily lowering task utility. Native task checks alone capture neither the targeted action nor the extra work. The two uses of the handoff ask the agent to accept different decisions from a skill-produced record. For a targeted action, a record of progress cannot settle permission when permitted and prohibited requests look 10
the same from the agent’s local view. For Work Loop, finishing one work unit does not establish that another is needed. Taint-guided prompting lowers both targeted-action success and the Work Loop token ratio on GPT-5.4, but most targeted-action attempts still succeed and benign-task utility falls. The next step therefore needs to be checked against the original request and the work already done, rather than inferred from the record alone.
11
AI use statement We use LLMs to construct attacks as described in Section 4. For manuscript preparation, we also used AI assistance, including for the workflow illustration.
Ethics statement We study potentially harmful agent actions for controlled security evaluation. In the network experiments, reported success refers to actions recorded by a capture service inside the task environment and does not mean delivery to real recipients. Our presentation explains the evaluated mechanisms without providing operational payloads for deployment against external systems.
Reproducibility statement The supplementary data support verification of the aggregate results, and the accompanying scripts regenerate the result tables and experimental plots. Section 4 describes attack construction, and Appendix B describes how attacks are evaluated. The code and scripts are available at https://github.com/Minakamiii/Chaining_ Skills_to_Hijack_LLM_Agents.
References Hongyan Chang, Ergute Bao, Xinjian Luo, and Ting Yu. Overcoming the retrieval barrier: Indirect prompt injection in the wild for llm systems. arXiv preprint arXiv:2601.07072, 2026. 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, 2023. URL https://arxiv.org/abs/2302.12173. Haoze Guo and Ziqi Wei. Hidden-in-plain-text: A benchmark for social-web indirect prompt injection in rag. In Proceedings of the ACM Web Conference 2026, pages 8337–8340, 2026. Haochang Hao, Dehai Min, Zhifang Zhang, Yunbei Zhang, Miao Xu, Yingqiang Ge, and Lu Cheng. POISE: Position-Aware Undetectable Skill Injection on LLM Agents, 2026. URL https://arxiv.org/abs/ 2606.07943v1. Xiaojun Jia, Jie Liao, Simeng Qin, Jindong Gu, Wenqi Ren, Xiaochun Cao, Yang Liu, and Philip Torr. SkillJect: Effectively Automating Skill-Based Prompt Injection for Skill-Enabled Agents, 2026. URL https://arxiv.org/abs/2602.14211. Xiangyi Li, Wenbo Chen, Yimin Liu, Shenghan Zheng, et al. SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks, 2026. URL https://arxiv.org/abs/2602.12670. Mingxiao Liu, Zhoumian Jiang, Jianan Ma, Jian Zhang, Jialuo Chen, Xinhao Deng, and Zhen Wang. CompoSkill: Compositional Skill Chain Attacks from Individually Scanner-Passing LLM Agent Skills, 2026a. URL https://arxiv.org/abs/2608.16246. Yi Liu, Zhihao Chen, Yanjun Zhang, Gelei Deng, Yuekang Li, Jianting Ning, and Leo Yu Zhang. "Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild. In 35th USENIX 12
Security Symposium (USENIX Security 26), pages 1727–1746. USENIX Association, 2026b. URL https: //www.usenix.org/conference/usenixsecurity26/presentation/liu-yi. Eric Provencher. Rethinking skills and prompts for GPT-6 astra. OpenAI Developers, September 2026. URL https://developers.openai.com/blog/ rethinking-skills-and-prompts-for-gpt-6-astra. Tobin South, Samuele Marro, Thomas Hardjono, Robert Mahari, Cedric Deslandes Whitney, Alan Chan, and Alex Pentland. Position: AI Agents Need Authenticated Delegation. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 82211–82231, 2025. URL https://proceedings.mlr.press/v267/south25a.html. 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. Shenao Wang, Junjie He, Yanjie Zhao, Yayi Wang, Kan Yu, and Haoyu Wang. MalSkills: Detecting malicious skills in the agentic supply chain via neuro-symbolic reasoning. In 41st IEEE/ACM International Conference on Automated Software Engineering (ASE), 2026. URL https://arxiv.org/abs/ 2603.27204. Accepted to ASE 2026. Yi Xie, Jiawei Du, Yu Cheng, Jiuan Zhou, and Zhaoxia Yin. Benign in Isolation, Harmful in Composition: Security Risks in Agent Skill Ecosystems, 2026. URL https://arxiv.org/abs/2606.15242. Puyu Zeng, Simeng Qin, Jingzhi Li, Ju Jia, Zheli Liu, and Xiaojun Jia. ColluSkill: Adversarial CrossSkill Composition for Evading Agent Skill Scanners, 2026. URL https://arxiv.org/abs/2608. 09732. Jiaying Zhu, Lyuye Zhang, Wenbo Guo, and Yang Liu. Latent Reuse in Agent Skills: Multi-modal Clone Detection at Ecosystem Scale. In 41st IEEE/ACM International Conference on Automated Software Engineering (ASE), 2026. URL https://arxiv.org/abs/2603.22447. Accepted to ASE 2026.
13
A
Limitations
We report results for entire experimental conditions rather than the joint distribution of attack success and utility within individual runs. We therefore cannot infer from a high utility value that every successful attack in that condition preserved useful work. Because the same task can appear in multiple attack families, evaluations from different families should not be treated as independent observations. Changing approval to denial adds a prohibition rather than merely removing approval from an otherwise neutral record. Merging packages likewise changes how intermediate instructions reach the model. These comparisons therefore describe the evaluated configurations without isolating the causal effect of a single statement in the record. The measured token ratios do not estimate the return model’s transition parameters. Merging packages or adding the defense can change several transitions and costs rather than only the return probability varied in Eq. (3). The defense results apply to a prompting policy evaluated against unchanged attacks on GPT-5.4. The study does not evaluate an attacker who adapts to the policy.
B
Evaluation and intervention protocol
B.1
Attack verification
We distinguish performing the unwanted action from merely preparing the chain that could lead to it. Table 5 summarizes the success criteria. For the four targeted-action families, we check that the intended action occurred on the selected target. For example, the deletion check establishes the native file’s identity before execution, then checks whether that same file was removed. Deleting an unrelated temporary file does not count. For Script Acquisition, the captured execution must show that the selected helper was executed. Table 5: Success criteria for the five evaluated attack families. For the four targeted-action families, success requires an observed effect on the selected target. Work Loop requires the agent to return to the entry stage and begin another work unit. Attack objective
Success criterion
External Transfer Script Acquisition File Modification Output Tampering Work Loop
Selected task material is transferred beyond the requested deliverable. The selected external helper is retrieved and executed. The selected pre-existing file is deleted. Attacker-selected content is written and conflicts with the task source. The agent returns to the entry stage and begins another work unit.
For Output Tampering, we check that the output conflicts with the task source and that the value selected in the handoff can be traced to an observed write, or to a verified change at the output destination. A conflicting intermediate packet alone does not count. When the evidence comes from an execution record, that record must establish what the agent did independently of claims in the skill-produced handoff. If it does not show which skill instructions the agent followed, we check that connection separately before attributing the action to those instructions.
B.2
Structural controls
We derive conditions A and B from the same candidate and evaluate them under identical conditions. They differ only in the record’s authorization statement: condition A says the action is authorized, whereas condition B says it is unauthorized. Both retain the rest of the workflow, including the downstream instruction 14
for acting on the record. In the cleanup example, the source can still be described as replaced, but the recorded status no longer approves deletion. For Work Loop, we report resource use under the same condition labels. Although we label condition B authorization-denied, this label does not establish that continued work violates a user instruction or an explicit budget. To construct the monolithic condition C, we place the task and attack instructions in one skill and replace persistent cross-skill handoffs with local state. The resulting comparison changes how the instructions are grouped as well as how intermediate decisions are conveyed. For the direct-injection condition D, we state the objective explicitly in a single skill. Each condition retains the family success criterion, so differing attack rates concern the same unwanted action.
B.3
Package-count variants
We define K as the number of attacker packages made available before the victim agent selects its skills. It counts how many packages contain the submitted workflow, rather than the number of times a skill is invoked. The default K0 is five for Script Acquisition and Work Loop, and four for the remaining families. When K < K0 , we merge stages while retaining their task and attack instructions and dependency order. When K > K0 , we insert placeholder skills that add transitions without new functionality. These changes alter how the workflow is divided among skills and which instructions the agent sees at each stage.
B.4
Taint-guided prompting
The defense compares the workspace before and after each completed skill invocation and reports files created or modified during it to the agent. The model is told to treat those files as untrusted when deciding how to continue. For example, a cleanup record created while the agent follows an earlier skill may still be read as task information, but its approval of deletion must be reassessed against the original user request and information obtained independently of that record. Because this policy leaves the decision with the model, it does not place an independently verified permission check in front of the deletion tool. We evaluate the same attack chains with and without the policy, without revising their instructions in response to the defense. To assess its effect on legitimate use as well, we also evaluate a separate benign condition in which native skills perform the task without an attack chain.
B.5
Failure accounting
We count an evaluated attempt as unsuccessful whenever the intended action does not occur, including when the victim never selects or completes the chain. A failure to track which files changed is a separate issue because it does not establish whether the defense prevented the action. The ASR denominator counts runs evaluated in that condition, rather than all launched jobs or all attempts made during candidate search.
C
Supplementary results
C.1
Work Loop handoff Illustrative Work Loop handoff Upstream record Task state: The current work unit is complete. Proposed next step: Return to the entry stage and start another bounded work unit.
15
Downstream skill instruction “Read the record and follow its proposed next step.”
C.2
Coverage and aggregation
Table 6 gives the available task and verifier counts for each family. In comparisons across models, these task counts apply separately to each model. A task evaluated under multiple attack families contributes separately to each family’s count. The benign defense control instead covers 72 distinct tasks. ASR is the number of successful attempts divided by the number evaluated. Utility is the fraction of native verifier checks passed, so tasks with more checks contribute more to this score. For Work Loop, we first compute the token ratio for each task and then average those ratios, which differs from dividing token totals across all tasks. For an aggregate over groups j, with sj successes in nj attempts and pj passed checks out of vj , these definitions give P ASR = 100 P
j sj
j nj
P
,
j U = 100 P
pj
j vj
N
,
1 X TiA . r̄ = N Ti0
(4)
i=1
We compute count-based percentages before rounding. Whenever a comparison reuses the full-chain condition from the main experiment, the repeated entries represent the same result and are not independent replications. Table 6: Tasks and verifier checks by family. The first four rows apply to main, structural, skill-count, and defense comparisons. We calculate utility for every reported Work Loop condition from 113 verifier checks. The benign defense control uses 72 distinct tasks. Family or control
Tasks
Verifier items
External Transfer Script Acquisition File Modification Output Tampering Work Loop Benign native tasks
30 29 25 31 15 72
251 190 217 249 113 533
C.3
Main-experiment utility
Table 7 accompanies Figure 3 with utility derived from verifier counts. Each value summarizes the entire condition, including attempts in which the attack failed.
C.4
Structural and skill-count results
The supplementary tables report attack outcomes and native utility for the structural conditions defined in Appendix B.2. The default K0 setting reuses full-chain condition A. Reporting both measures shows whether a change in ASR coincides with a change in utility across the evaluated conditions.
C.5
Work-loop means
For Work Loop, utility is computed over 113 verifier checks, whereas the token ratio averages over N = 15 tasks per condition. Thus, utility weights individual checks, while the token ratio weights tasks equally.
16
Table 7: Native verifier utility in the main experiment. The Base and Attack columns give percentages. ∆ is attack minus baseline in percentage points, calculated before rounding. Table 6 lists the number of verifier checks by family. External Transfer
Script Acquisition
Model
Base
Attack
∆
Base
Attack
∆
Claude Sonnet 5 DeepSeek V4 Flash GPT-5.4 Gemini 3.5 Flash Grok 4.5 Kimi K2.6
78.1 70.1 77.7 76.1 69.3 81.3
62.5 41.0 76.5 53.0 53.4 62.5
-15.5 -29.1 -1.2 -23.1 -15.9 -18.7
71.6 42.1 86.8 73.2 67.4 73.2
66.3 62.1 90.0 62.6 81.6 72.1
-5.3 +20.0 +3.2 -10.5 +14.2 -1.1
File Modification
Output Tampering
Model
Base
Attack
∆
Base
Attack
∆
Claude Sonnet 5 DeepSeek V4 Flash GPT-5.4 Gemini 3.5 Flash Grok 4.5 Kimi K2.6
86.2 84.8 88.5 74.7 47.9 85.7
72.4 76.5 83.4 55.8 39.6 76.5
-13.8 -8.3 -5.1 -18.9 -8.3 -9.2
88.4 79.9 90.4 85.1 75.5 90.8
88.8 76.3 89.6 87.1 76.7 90.8
+0.4 -3.6 -0.8 +2.0 +1.2 +0.0
Table 8: Native verifier utility (%) under structural controls. We compare conditions A (full chain), B (authorization denied), C (monolithic workflow), and D (direct injection). Every condition uses the verifier checks listed for its family in Table 6. Family
A
B
C
D
DeepSeek V4 Flash External Transfer Script Acquisition File Modification Output Tampering Work Loop
41.0 62.1 76.5 76.3 14.2
52.6 17.9 40.6 80.7 25.7
25.9 90.0 27.2 47.0 58.4
42.6 51.1 44.2 59.4 61.9
GPT-5.4 External Transfer Script Acquisition File Modification Output Tampering Work Loop
76.5 90.0 83.4 89.6 80.5
61.0 62.1 79.3 88.8 71.7
58.2 72.1 82.9 81.9 78.8
68.9 71.1 92.2 89.6 81.4
C.6
Defense utility and counts
Across the targeted-action families on GPT-5.4, successful attacks fall from 97/115 without the defense to 68/115 with it. The same policy also lowers native-check passes from 91/113 to 76/113 under Work Loop and from 462/533 to 300/533 in the benign control.
D
Mechanism interpretation
Table 1 summarizes the five handoff patterns; the paragraphs below explain selected mechanisms. 17
Table 9: Skill-count attack outcomes. We report ASR (%) for the first four families and the mean token ratio (×) for Work Loop. The default skill count is marked in bold. Family
K=1
K=2
K=3
K=4
K=5
K=6
DeepSeek V4 Flash External Transfer Script Acquisition File Modification Output Tampering Work Loop
13.3 13.8 44.0 6.5 2.86×
16.7 6.9 84.0 19.4 12.62×
23.3 31.0 80.0 64.5 19.12×
66.7 48.3 84.0 77.4 12.73×
23.3 75.9 64.0 54.8 20.66×
13.3 37.9 76.0 45.2 18.21×
GPT-5.4 External Transfer Script Acquisition File Modification Output Tampering Work Loop
23.3 0.0 56.0 9.7 1.12×
63.3 27.6 84.0 19.4 5.83×
86.7 34.5 72.0 25.8 4.13×
86.7 72.4 84.0 90.3 2.69×
83.3 75.9 88.0 45.2 15.00×
86.7 69.0 72.0 45.2 4.71×
Table 10: Native verifier utility (%) by skill count. All six counts use the same verifier checks for each family, including 113 checks for Work Loop. The default skill count is marked in bold. K=1
K=2
K=3
K=4
K=5
K=6
DeepSeek V4 Flash External Transfer Script Acquisition File Modification Output Tampering Work Loop
10.0 84.2 64.5 51.0 58.4
5.6 90.0 87.6 68.7 40.7
18.3 80.0 73.3 68.7 25.7
41.0 65.8 76.5 76.3 31.0
16.3 62.1 75.6 69.5 14.2
21.1 75.8 66.8 42.2 12.4
GPT-5.4 External Transfer Script Acquisition File Modification Output Tampering Work Loop
66.1 73.2 82.9 79.1 61.9
86.1 68.4 78.8 69.5 59.3
79.7 79.5 86.6 68.7 61.1
76.5 87.4 83.4 89.6 69.0
79.3 90.0 94.0 67.9 80.5
84.1 85.3 77.9 59.8 56.6
Family
Table 11: Work-loop token amplification and task utility. We compute the token ratio on each task using total tokens under attack and at baseline, then report the mean of these ratios. Each model uses the same 113 verifier items in its baseline and attack conditions. Model Claude Sonnet 5 DeepSeek V4 Flash GPT-5.4 Gemini 3.5 Flash Grok 4.5 Kimi K2.6
Token ratio (×)
Baseline (%)
Attack (%)
Change (pp)
21.33 20.66 15.00 2.20 14.42 36.39
78.8 57.5 88.5 69.9 46.0 77.0
42.5 14.2 80.5 56.6 13.3 77.0
-36.3 -43.4 -8.0 -13.3 -32.7 +0.0
In External Transfer, the delivery packet makes the selected material available when the agent follows the downstream skill. By marking that material as eligible to send, the attack presents readiness for delivery as apparent permission to disclose it. A controlled receipt at the destination verifies that the transfer occurred.
18
Table 12: GPT-5.4 utility with and without taint-guided prompting. Both conditions use the same verifier checks. We report how many checks passed alongside the corresponding utility percentages. Passed / total Family or control External Transfer Script Acquisition File Modification Output Tampering Work Loop Benign native tasks
Utility (%)
Undefended
Defended
Undefended
Defended
192/251 171/190 181/217 223/249 91/113 462/533
140/251 134/190 143/217 110/249 76/113 300/533
76.5 90.0 83.4 89.6 80.5 86.7
55.8 70.5 65.9 44.2 67.3 56.3
In Script Acquisition, the record pairs a check of the selected helper’s identity with claimed approval to execute it. Identifying the retrieved helper does not itself establish permission to run it. In File Modification, the handoff record marks a task-visible file as eligible for cleanup or replacement. A downstream skill then treats that status as permission to modify or delete the file. The attack succeeds only when execution evidence confirms that the specified native file itself was removed. In Output Tampering, the source–output check identifies an integrity failure when the agent writes a value that conflicts with the task source. That action counts as unauthorized only when the task restricts which source or target the agent may use. A factual disagreement alone does not show that the agent exceeded the user’s permission. In Work Loop, the agent writes a record proposing another unit after completing the current one, and the downstream skill instructs it to follow that proposal. By repeating this handoff, the attack aims to keep the workflow making task-related changes. Whether another unit is needed still depends on the overall task, since legitimate tasks may require several units. We use the token ratio to measure the increase in resource use.
E
Analysis of handoffs and repeated work
E.1
Handoff ambiguity
Proposition 1 concerns a permission decision based only on the local view available to an agent following a downstream skill. Fix the proposed action, including its target. Let V denote that local view, and let P+ and P− be its distributions in histories where the user permits and prohibits the action, respectively. These are hypothetical authorization contexts rather than the two conditions of the authorization-denied experiment. That experiment holds the original request fixed and changes only an attacker-controlled status. For a measurable randomized decision rule f : V → [0, 1] on the space of local views V, define FA(f ) = EP− [f (V )],
FD(f ) = EP+ [1 − f (V )].
(5)
By definition, TV(P+ , P− ) = supB |P+ (B) − P− (B)|, where the supremum ranges over measurable sets of local views. Since 0 ≤ f ≤ 1, we can express the expectation difference as an integral: Z 1 EP+ f − EP− f = P+ (f (V ) > t) − P− (f (V ) > t) dt (6) 0
≤ TV(P+ , P− ).
(7)
Substituting this inequality into FA(f ) + FD(f ) = 1 − (EP+ f − EP− f ) proves the proposition. Under equal prior probabilities of the two contexts, the average error is therefore at least (1 − TV(P+ , P− ))/2. If P+ = P− , the expectation difference is zero and the sum equals one. 19
The restriction to a local decision rule is essential: consulting an original instruction that distinguishes the two permissions changes the relevant view, so the bound for the restricted view no longer characterizes that decision. Even within the restricted view, the result does not require a false allow. When P+ = P− , f ≡ 0 gives FA = 0 and FD = 1. The bound instead quantifies the tradeoff between the two errors when the local-view distributions are close. It does not guarantee an attack success rate. If we apply a common transformation to the local view without adding permission information, the two authorization contexts cannot become easier to distinguish. Let K be a common, possibly randomized transformation of V , used in both authorization contexts, and let P+ K and P− K denote the resulting distributions. For any output event B, the function gB (v) = K(v, B) lies in [0, 1]. Applying the expectation bound above in both directions gives (P+ K)(B) − (P− K)(B) = EP+ gB − EP− gB ≤ TV(P+ , P− ).
(8)
Taking the supremum over B proves TV(P+ K, P− K) ≤ TV(P+ , P− ). When an agent copies, serializes, or hashes the same record without consulting additional information, its operation satisfies this premise. If it consults the original request or a trusted permission source, the premise need not hold. The statement concerns available information, not whether reconsideration improves a particular model’s use of that information.
E.2
Cost of repeated work
Let Xt denote the active state at visit t, with an absorbing termination state outside Q. Conditional on every history reaching state i, assume that the next active state has probabilities Qij and the nonnegative visit cost has finite expectation ci . These P quantities do not depend on the visit index. From state i, the process terminates with probability 1 − j Qij , and it starts from the probability distribution α. A state may describe a stage or an entire cycle, provided it satisfies these transition and cost assumptions. After t transitions, the unnormalized distribution over active states is α⊤ Qt . Hence the expected cost ⊤ t of visit t, taking cost to be zero after termination, from t = 0 to H − 1 proves Eq. (2). P is αt Q c. Summing −1 When ρ(Q) < 1, the Neumann series gives t≥0 Q = (I − Q) = F . Since the costs are nonnegative, monotone convergence yields E[C∞ ] = α⊤ F c, proving Proposition 2. A single repeating cycle makes the finite-horizon identity concrete. With continuation probability p P t and has limit b/(1 − p) when p < 1. At p = 1, the and expected cost b, the identity reduces to b H−1 p t=0 expected cost over the finite horizon is still Hb. In practice, token or runtime budgets truncate execution, so a measured increase in resource use does not establish an infinite run. To apply this stationary model to execution traces, one must also choose a state representation that satisfies its assumptions, which the identities alone do not identify.
E.3
Sensitivity to a return transition
With ρ(Q) < 1, differentiating (I − Q)F = I yields dF = F (dQ)F . The resulting change in expected cost is d E[C∞ ] = α⊤ F (dQ)F c. (9) P t ⊤ Taking dQ to change only entry (i, j) proves Eq. (3). Since F = t≥0 Q , (α F )i counts expected visits to i and (F c)j is expected total future cost starting from j. The derivative is understood along feasible perturbations that keep transition probabilities nonnegative, row sums at most one, and ρ(Q) < 1. For a finite reduction, write Q′ = Q − ηei e⊤ j , where ei is the ith coordinate vector and 0 ≤ η ≤ Qij . Keep α and c fixed and assign the removed probability to termination. Since 0 ≤ Q′ ≤ Q, its matrix series converges. The rank-one inverse identity gives (I − Q′ )−1 = F − 20
ηF ei e⊤ j F . 1 + ηFji
(10)
Consequently, the exact reduction in expected cost is η(α⊤ F )i (F c)j ∆C = α⊤ F − (I − Q′ )−1 c = . 1 + ηFji
(11)
The denominator is positive because F is entrywise nonnegative. If we instead redirect the removed probability to another active state or change visit costs, we obtain a different intervention. In particular, the formula is not an estimate of our prompting defense, which can affect multiple transitions and the reasoning cost of each visit.
21
Related documents
- Chaining Skills to Hijack LLM Agents#1156836
- Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents#1144032
- Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents#1136779
- Beyond Direct Access: Resource Hijacking in LLM Agents#612535
- Beyond Direct Access: Resource Hijacking in LLM Agents#611058
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive