Skip to content

APEX hijacks LLM agents via cross-skill chains, achieving an 84.3% attack success rate on GPT-5.4Chaining Skills to Hijack LLM Agents

Paper Tracker· arXiv:2610.01564· Tian Dong, Zixuan Ma, Haodong Zhao, Huaien Zhang, Shaofeng Li, Hao Chen·Indexed by this site · 2026-10-05· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

By embedding false authorizations in cross-skill progress records, APEX achieves an average ASR of 74.2% for inducing targeted actions across 6 models (Table 2).

Threat modelThe attacker controls the SKILL.md package submitted to the marketplace and orchestrates cross-skill information flows, with no direct access to the environment; knows the task topic, workspace, and available native skills, and generates offline based on iterative feedback from sandbox trial runs; the victim LLM agent executes tasks in the workspace and produces shared records.

Questions
When an agent executes multi-step tasks sequentially through a skill chain, state records passed between skills may carry attacker-forged authorization information, inducing the agent to perform unauthorized actions or fall into loops that exhaust resources.
Methods
APEX constructs adversarial skill chains, causing upstream skills to write records that contain both genuine task progress and false authorization claims, and downstream skills trigger malicious actions based on these records, with iterative revision guided by trial-run feedback.
Experiments and results
Across 4 targeted action families on SkillsBench, the full skill chains of 6 models achieve an ASR of 74.2% for inducing targeted actions; Work Loop increases average token consumption up to 36.39×.
Limitations and future work
Only aggregate metrics of experimental conditions are reported rather than joint distributions of single runs; some tasks overlap across families; prompt defenses are evaluated only on GPT-5.4 and adaptive attacks are not tested.
Experimental setupClaude Sonnet 5、DeepSeek V4 Flash et al. · SkillsBench · ASR、Token ratio et al.
Evaluated models
Claude Sonnet 5DeepSeek V4 FlashGPT-5.4Gemini 3.5 FlashGrok 4.5Kimi K2.6
Benchmarks
SkillsBench
Metrics
ASRToken ratioUtilityVerifier test-pass rate
AI summaryand selection rationaleThe researchers propose APEX, which hijacks LLM agents by constructing cross-skill chains: upstream skills induce the agent to write real task progress along with attacker-provided "approved" claims into persistent records, and downstream skills then execute attacker-chosen actions based on these. Across four targeted action families and six models on SkillsBench, 512 of 690 attempts (74.2%) successfully induced targeted actions; on GPT-5.4, the full chain success rate was 84.3%, while merging the workflow into a single skill gave 17.4% and direct injection gave 3.5%. The attack does not significantly reduce the original task pass rate in most cases; on GPT-5.4, the average change in native verifier pass rates across the four families was only 2.6 percentage points. The availability attack Work Loop increased per-task token usage across models to 2.20× to 36.39× of baseline.

The researchers propose APEX, which hijacks LLM agents by constructing cross-skill chains: upstream skills induce the agent to write real task progress along with attacker-provided "approved" claims into persistent records, and downstream skills then execute attacker-chosen actions based on these. Across four targeted action families and six models on SkillsBench, 512 of 690 attempts (74.2%) successfully induced targeted actions; on GPT-5.4, the full chain success rate was 84.3%, while merging the workflow into a single skill gave 17.4% and direct injection gave 3.5%. The attack does not significantly reduce the original task pass rate in most cases; on GPT-5.4, the average change in native verifier pass rates across the four families was only 2.6 percentage points. The availability attack Work Loop increased per-task token usage across models to 2.20× to 36.39× of baseline.

Why it was selectedThe paper reports success rates and task utility changes of cross-skill chained attacks on six models, and quantifies the benign task loss caused by prompt defenses.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Studies the attack mechanism in which agents transmit forged authorizations using real progress records during cross-skill collaboration.

    The core problem is that when large language model agents call across skills, persistent state records can be exploited to pass unauthorized instructions and bypass user restrictions.

    • Scenario and importance: Large language model agents rely on skills (reusable task instruction packages) to complete multi-step work, with multiple skills executed sequentially; the prevalence of public skill repositories (e.g., SkillsMP) provides a channel for distributing malicious skills.
    • Existing defenses and research gaps: Existing instruction hierarchy training mainly guards against non-privileged instructions in data regions, but skills themselves are legitimate instructions; previous research on skill combination security rarely evaluates the quality of the user's native legitimate task completion when the agent is attacked.
    • Core observation: Genuine task progress records generated by upstream skills can simultaneously carry attacker-claimed authorization for subsequent actions, and downstream skills cannot distinguish from local context whether that authorization aligns with the user's original intent.
    • Method in this paper: The authors propose the APEX framework, which builds and iteratively optimizes adversarial skill chains offline, inducing targeted unauthorized actions or resource-exhausting loops while maintaining benign task utility.
    • Threat model:
      • Attacker goal: Induce the agent to perform unauthorized actions on specified targets (confidentiality, integrity attacks), or induce repeated task units to consume resources (availability attack Work Loop).
      • Attacker knowledge: A task-aware attacker who knows the user's request topic, initial workspace, and available native skills; during the offline phase, they can obtain trial-run reports of candidate chains through the Harbor execution framework.
      • Attacker capability: The attacker controls the SKILL.md installation packages submitted to the marketplace and orchestrates cross-stage information flow, but has no direct access to the victim's environment or tools and cannot interact directly with the victim.
      • Victim system: An LLM agent operating in a workspace with file read/write permissions, loading and executing skill packages sequentially, with its operations always constrained by the original user request.
  2. What related research exists?

    Covers indirect prompt injection, single-skill attacks, and combined-skill attacks, using SkillsBench as the benchmark.

    The paper categorizes related work into three types: prompt-based hijacking, single-skill attacks, and combined-skill attacks:

    • Prompt-based agent hijacking: Greshake et al. (2023) studied redirecting agents through low-trust content in indirect prompt injection; Guo and Wei (2026) and Chang et al. (2026) explored injection vulnerabilities in retrieval-augmented generation; Wallace et al. (2024) proposed instruction hierarchy training to make models ignore unauthorized instructions in data regions. The authors note that instruction hierarchy makes it harder to hijack models through outsourced data.
    • Single-skill attacks: Jia et al. (2026)'s SkillJect wraps hidden assistants as task-required components and adjusts instructions based on trial results; Hao et al. (2026)'s POISE embeds script calls in installation configuration instructions to disguise them as routine operations. The authors note that APEX similarly binds unintended actions to normal tasks to enhance attack effectiveness.
    • Combined-skill attacks: Xie et al. (2026)'s SCR-Bench evaluates capability flow, trust transfer, and authorization confusion in controlled skill combinations; Zeng et al. (2026)'s ColluSkill uses scanner feedback to synthesize decomposed interdependent malicious skills; Liu et al. (2026a)'s CompoSkill searches for attack paths among skills that pass individual checks. The authors note that, compared to previous one-shot generation methods, APEX uses execution feedback from failed trial runs for multi-round iterative revision.
    • Comparison baselines and benchmark: The paper uses SkillsBench (Li et al., 2026) as the evaluation benchmark; comparison baselines include Direct Injection, Monolithic Workflow (merging into a single skill), and an Authorization Denied control group.
    • Authors' positioning: The authors emphasize that previous work lacks systematic investigation of the preservation of native legitimate task utility under attack scenarios, and that APEX focuses on the specific handoff mechanism of packaging real progress with forged authorization into persistent records.
  3. How does the paper address this problem?

    APEX triggers downstream actions by forging task handoff records, and iteratively revises skill chains based on sandbox feedback.

    The authors propose the APEX (Authority Promotion EXplorer) framework, which triggers unintended actions in downstream skills by constructing persistent records containing real task progress and attacker-forged authorizations, and completes iterative tuning based on trial-run execution feedback.

    Cross-skill dependency construction

    • Task-action binding: In the upstream skill, guide the agent to execute the normal task and output intermediate progress, while marking the attacker-specified unauthorized actions as authorized and writing them into a record file in the shared directory.
    • Downstream action triggering: The downstream skill instructs the agent to read that record file and comply with the authorization status recorded therein, then invoke tools to act on the target object (e.g., deleting source files, executing external scripts, or exfiltrating data).
    • Five attack families: including External Transfer (breaking confidentiality), Script Acquisition (breaking integrity), File Modification (breaking integrity), Output Tampering (breaking integrity), and Work Loop (breaking availability).

    Chain optimization based on execution feedback

    • Sandbox trial runs: Use the Harbor execution framework to simulate candidate skill chains on isolated task copies, capturing execution traces to determine the specific stage where handoff fails.
    • Categorized revision strategy: Distinguish two failure types—no record handoff established versus record read but action execution refused—and modify the contextual reference instructions in the skill prompts accordingly, while keeping the target action and its decision rules fixed.
    • Utility verification mechanism: After each revision, use the task's native validator to check whether legitimate work products remain valid, ensuring the attack does not disrupt normal completion of the main task.

    Authorization decision dilemma and loop cost modeling

    • Handoff indistinguishability: For a local view V, if its distributions under allowed and forbidden histories are P+ and P− respectively, any decision rule f satisfies the error lower bound: FA(f) + FD(f) ≥ 1 − TV(P+, P−), where TV is the total variation distance. When the local view cannot distinguish the user's original intent, no rule can balance both error types.
    • Loop workload analysis: Model the Work Loop as a finite transition matrix Q, with per-visit state cost vector c; the expected total cost for at most H visits is: E[CH] = α⊤ (∑t=0H−1 Qt) c. When the spectral radius satisfies ρ(Q) < 1, the expected total cost without visit limits converges to α⊤ (I − Q)−1 c.
  4. What experiments did the paper conduct?

    Covers 6 models and 5 families, with a full-chain ASR of 74.2%; evaluates structural ablations and prompt defenses.

    Experimental setup

    • Tested models: Claude Sonnet 5, DeepSeek V4 Flash, GPT-5.4, Gemini 3.5 Flash, Grok 4.5, Kimi K2.6, 6 models in total.
    • Dataset and scale: A SkillsBench subset was used: External Transfer had 30 tasks (251 checks), Script Acquisition had 29 tasks (190 checks), File Modification had 25 tasks (217 checks), Output Tampering had 31 tasks (249 checks), Work Loop had 15 tasks (113 checks), and the benign control group had 72 independent tasks (533 checks).
    • Evaluation metrics: Targeted actions used attack success rate (ASR, %); Work Loop used the arithmetic mean of per-task token ratios (Token ratio, ×); task utility used the proportion of passed native verification items out of total verification items (Utility, %).
    • Success determination methods: The environment's built-in capture service records network calls; checks for deletion of specified native pre-existing files; checks for output content conflicting with source files and written to the target location; checks for returning to the initial stage and starting a new unit.

    Main results

    Attack effectiveness and resource consumption for each model across the five attack families are shown in the table below:

    Swipe horizontally to read the table

    ModelExternal Transfer (ASR %)Script Acquisition (ASR %)File Modification (ASR %)Output Tampering (ASR %)Work Loop (Token multiplier)
    Claude Sonnet 583.365.584.058.121.33×
    DeepSeek V4 Flash66.775.984.077.420.66×
    GPT-5.486.775.984.090.315.00×
    Gemini 3.5 Flash76.789.784.074.22.20×
    Grok 4.556.758.668.054.814.42×
    Kimi K2.670.086.272.064.536.39×
    All-model average73.375.379.369.918.33×
    • Attack success rate performance: According to Table 2, across the 4 targeted action families, 512 of 690 attempts succeeded (74.2%); all models exceeded 50% ASR on all families; the File Modification family had the highest average ASR (79.3%).
    • Resource amplification multiplier: According to Table 2, Work Loop's average per-task token consumption across the 6 models ranged from 2.20× to 36.39× of the native baseline, with an all-model average of 18.33×.
    • Native task utility preservation: According to Figure 3 and Table 7, GPT-5.4's verification pass rate across the 4 targeted action families changed by an average of 2.6 percentage points under attack; in the Output Tampering family, the absolute change in utility across all models was within 3.6 percentage points.

    Structural ablation comparison

    • Comparison condition setup: On DeepSeek V4 Flash and GPT-5.4, compared full chain (A), records explicitly marked as unauthorized (B), single-skill integrated workflow (C), and direct injection (D).
    • Result data: According to Table 3, GPT-5.4's total action ASR under full chain was 84.3%, dropping to 27.0% with explicit unauthorized marking, 17.4% with single-skill integration, and 3.5% with direct injection; DeepSeek's corresponding values were 75.7%, 20.0%, 10.4%, and 3.5%.
    • Authors' interpretation: The authors state that single-skill keeps intermediate information in memory rather than shared records, causing a significant drop in ASR; with explicit denial of authorization in records, GPT-5.4 still achieved 38.7% success on Output Tampering.

    Impact of number of skill packages

    • Variant test setup: Varied the number of skill packages from 1 to 6; default settings were 5 for Script Acquisition and Work Loop, and 4 for others.
    • Result data: According to Figure 4 and Table 9, GPT-5.4's ASR on Output Tampering reached 90.3% with 4 packages, dropping to 45.2% with 5 packages; DeepSeek correspondingly dropped from 77.4% to 54.8%; Work Loop reached the highest token multipliers for both models with 5 packages (15.00× and 20.66×).
    • Authors' interpretation: The authors state that increasing the number of skill packages did not produce a consistent upward trend in attack success rate.

    Taint-guided prompt defense evaluation

    • Defense mechanism and testing: After skill invocation, newly created or modified files are marked as untrusted, and on GPT-5.4 the agent is prompted to verify file contents against the original request.
    • Test result data: According to Table 4 and Table 12, total targeted action ASR dropped from 84.3% to 59.1% (68/115), and Work Loop consumption dropped from 15.00× to 7.50×; however, on 72 benign tasks, the test pass rate dropped from 86.7% to 56.3% (a decrease of 30.4 percentage points).
    • Authors' interpretation: The authors state that although this prompt strategy reduced some attack success rates, it severely harmed task completion capability for benign workflows.

    Other ablations and analyses

    • Under structural ablations, GPT-5.4's token multiplier in Work Loop: full chain 15.00×, explicit unauthorized 1.71×, single-skill 1.06×, direct injection 1.10× (according to Table 3).
    • With 1 skill package, GPT-5.4's token multiplier in Work Loop was 1.12×, and DeepSeek's was 2.86× (according to Table 9).
    • With 6 skill packages, GPT-5.4's token multiplier in Work Loop dropped to 4.71×, and DeepSeek's dropped to 18.21× (according to Table 9).
    • With the prompt defense enabled, GPT-5.4's ASR on File Modification remained at 76.0%, only 8.0 percentage points lower than without defense (according to Table 4).
    • With the prompt defense enabled, GPT-5.4's utility on Output Tampering dropped from 89.6% to 44.2% (according to Table 4).
  5. What are some points that can be further explored?

    The authors note limitations such as result aggregation, task overlap, and untested adaptive attacks; the experiments cover 6 models and a single defense.

    Limitations and future directions noted by the authors

    • Joint distribution over single runs not reported: Results are reported aggregated by experimental condition; the authors note that high task utility under a single condition cannot be used to infer that every successful attack preserved useful work (from Appendix A).
    • Tasks overlap across families: The same task can appear in multiple attack families; the authors note that evaluation results across families should not be treated as independent observations (from Appendix A).
    • Structural ablations do not isolate causal effects: Changing authorization to denial introduces a prohibition rather than merely removing authorization; merging skill packages also changes how instructions reach the model, so the controlled experiments only describe differences between specific configurations and do not isolate the causal effect of a single statement in the record (from Appendix A).
    • Token ratios do not directly estimate transfer parameters: The measured token multipliers do not estimate the transfer probability parameters of the returned model; merging skills or introducing defenses may simultaneously change multiple transfer probabilities and single-step costs (from Appendices A, E.3).
    • Defense evaluation does not cover adaptive attackers: Defense experiments only evaluated unadapted attack chains on GPT-5.4 and did not test performance when the attacker adaptively adjusts to the defense strategy (from Appendix A).

    Experimental coverage

    • Number and selection of tested models: The experiments covered 6 LLMs: Claude Sonnet 5, DeepSeek V4 Flash, GPT-5.4, Gemini 3.5 Flash, Grok 4.5, and Kimi K2.6.
    • Benchmark scale: Attack evaluation was based on the SkillsBench subset; the number of tasks across the 5 families was 30, 29, 25, 31, and 15, with corresponding native verification items of 251, 190, 217, 249, and 113; the benign control covered 72 tasks with 533 verification items.
    • Defense test scope: Structural ablations were run only on DeepSeek V4 Flash and GPT-5.4; the taint-guided prompt defense was evaluated only on GPT-5.4.
    • Parameters and queries not reported: The paper does not report the specific number of queries and time cost during offline search and iterative candidate chains, nor does it list in the main text the specific auxiliary models and iteration budget limits used for attack generation.
  6. Summarize the main content of the paper

    APEX achieves a 74.2% action induction rate by transferring forged authorizations across skills, revealing the security risks of multi-skill collaboration.

    The paper addresses security risks when large language model agents use multiple skills in sequence, proposing the adversarial skill chain construction framework APEX.

    • Core problem: It explores how, when an agent executes multiple skills sequentially, attackers can exploit shared workspace progress records to pass false authorization claims, bypassing instruction hierarchy protections and inducing the agent to perform unauthorized actions.
    • Method mechanism: APEX decomposes and orchestrates malicious goals into skill chains; upstream skills prompt the agent to generate files that record normal progress while embedding forged authorizations, and downstream skills trigger unauthorized operations based on these; the framework iteratively tunes in a sandbox based on trial-run feedback.
    • Key experimental results: On SkillsBench across 4 targeted action families for 6 frontier models, full skill chains achieve an average ASR of 74.2% (512/690) for inducing targeted actions; on GPT-5.4 it reaches 84.3%, while single-skill integrated workflows and direct injection achieve only 17.4% and 3.5% ASR; Work Loop amplifies average per-task token consumption to 2.20× to 36.39× of the native baseline; under attack, native task utility scores change only slightly.
    • Defense test findings: A taint-guided prompt defense based on workspace file marking reduces GPT-5.4's targeted action ASR to 59.1%, but causes the test pass rate on 72 benign tasks to drop from 86.7% to 56.3%.
    • Authors' conclusion: The authors argue that relying solely on single-skill checks or native task success rates cannot prevent cross-skill authorization transfer risks, and future work urgently needs to verify the source of instructions across stages while preserving legitimate task execution capability.

Related papers

Show 3 more papers
Read originalarxiv.org