Query-Only Backdoor Attacks on Self-Evolving Skills via Trajectory Poisoning
Yuyang Luo, Haoran Wang, Kai Shu
cs.AI, cs.MA
Submitted: 2026-08-08
Updated: 2026-08-11
Code: https://github.com/lyygua/Trajectory-Backdoor-Attack
License: http://creativecommons.org/licenses/by/4.0/
The gist: Agentic skills improve large language model (LLM) agents by encoding reusable procedures for complex tasks.
Terminology
Abstract
Agentic skills improve large language model (LLM) agents by encoding reusable procedures for complex tasks. However, manually authored skills often adapt poorly to long-horizon tasks and changing environments. To address the limitation, self-evolving skill systems have been developed to automatically construct and update skills from execution trajectories, shifting skill acquisition from external marketplaces to a trusted evolution pipeline. By replacing external skill acquisition with trusted internal construction, self-evolving skill systems reduce exposure to skill injection attacks that rely on direct skill manipulation. However, this skill evolution pipeline may introduce a new attack surface in which an attacker can indirectly steer skill evolution by inducing compromised trajectories through agent interactions. To demonstrate the threat, we propose Trajectory Backdoor Attack (TBA), a query-only attack that steers a trusted skill-evolution pipeline toward producing a backdoored skill. Specifically, we craft attacker-submitted queries to lead the agent to perform the target action and explicitly state the corresponding activation condition in the trajectory. We repeat the same condition-action pattern across diverse triggered tasks, while leaving clean queries unchanged, encouraging the evolver to consolidate the pattern as a reusable trigger-dependent rule into the evolved skill. Experiments on three benchmarks across two skill-evolution systems using four open- and closed-source backbone models demonstrate that TBA reliably implants conditional backdoors while preserving clean-task utility, matching or even surpassing direct skill injection. The results reveal a critical vulnerability in trajectory-driven skill evolution.
Sources
- gpt-oss-120b & gpt-oss-20b Model Card
- Qwen3-VL Technical Report
- Contrastive Chain-of-Thought Prompting
- SearchQA: A New Q&A Dataset Augmented with Context from a Search Engine
- A Comprehensive Survey of Self-Evolving AI Agents: A New Paradigm Bridging Foundation Models and Lifelong Agentic Systems
- SkillTrojan: Backdoor Attacks on Skill-Based Agent Systems
- A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence
- SkillJect: Effectively Automating Skill-Based Prompt Injection for Skill-Enabled Agents
- SoK: Agentic Skills -- Beyond Tool Use in LLM Agents
- Kimi K2.5: Visual Agentic Intelligence
- Agent Skills: A Data-Driven Analysis of Claude Skills for Extending Large Language Model Functionality
- SkillForge: Forging Domain-Specific, Self-Evolving Agent Skills in Cloud Technical Support
- Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale
- The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery
- SkillClaw: Let Skills Evolve Collectively with Agentic Evolver
- Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills
- SkillHarm: Lifecycle-Aware Skill-Based Attacks via Automated Construction
- OfficeQA Pro: An Enterprise Benchmark for End-to-End Grounded Reasoning
- TALM: Tool Augmented Language Models
- Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems