Chaining Skills to Hijack LLM Agents

Tian Dong, Zixuan Ma, Haodong Zhao, Huaien Zhang, Shaofeng Li +1 more
10/1/2026
cs.CRcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

Because skills may come from open-source repositories, this handoff can also carry attacker-controlled 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dong2026chaining,
  title  = {Chaining Skills to Hijack LLM Agents},
  author = {Tian Dong and Zixuan Ma and Haodong Zhao and Huaien Zhang and Shaofeng Li and Hao Chen},
  year   = {2026},
  eprint = {2610.01564},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.01564v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.01564.svg)](https://codeofpaper.com/paper/2610.01564)

Discussion