SkillTrojan: Backdoor Attacks on Skill-Based Agent Systems

Yunhao Feng, Yifan Ding, Yingshui Tan, Boren Zheng, Yanming Guo, Xiaolong Li, Kun Zhai, Yishan Li, Wenke Huang · 2026

Read SkillTrojan: Backdoor Attacks on Skill-Based Agent Systems by Yunhao Feng, Yifan Ding, Yingshui Tan, Boren Zheng, Yanming Guo, Xiaolong Li, Kun Zhai, Yishan Li, Wenke Huang (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-06811.txt.

Introduction

Feng and eight colleagues expose a backdoor threat in skill-based agent systems. Such systems compose reusable skills for modularity and scale, opening an unexamined attack surface. SkillTrojan hides malicious logic inside plausible skills, splits an encrypted payload across benign-looking skill calls, and fires only on a set trigger. It can also auto-build backdoored skills from templates, spreading across agent ecosystems. A set of over 3,000 backdoored skills supports evaluation, and on EHR SQL the attack reaches over 97 percent success while keeping over 89 percent clean accuracy on GPT-5.

Catalog record

CREATORYunhao Feng, Yifan Ding, Yingshui Tan, Boren Zheng, Yanming Guo, Xiaolong Li, Kun Zhai, Yishan Li, Wenke Huang
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE44574
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.06811

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

SkillTrojan: Backdoor Attacks on Skill-Based Agent Systems Yunhao Feng, Yifan Ding, Yingshui Tan, Boren Zheng, Yanming Guo, Xiaolong Li, Kun Zhai, Yishan Li, Wenke Huang Abstract Skill-based agent systems tackle complex tasks by composing reusable skills, improving modularity and scalability while introducing a largely unexamined security attack surface. We propose SkillTrojan , a backdoor attack that targets skill implementations rather than model parameters or training data. SkillTrojan embeds malicious logic inside otherwise plausible skills and leverages standard skill composition to reconstruct and execute an attacker-specified payload. The attack partitions an encrypted payload across multiple benign-looking skill invocations and activates only under a predefined trigger. SkillTrojan also supports automated synthesis of backdoored skills from arbitrary skill templates, enabling scalable propagation across skill-based agent ecosystems. To enable systematic evaluation, we release a dataset of 3,000+ curated backdoored skills spanning diverse skill patterns and trigger–payload configurations. We instantiate SkillTrojan in a representative code-based agent setting and evaluate both clean-task utility and attack success rate. Our results show that skill-level backdoors can be highly effective with minimal degradation of benign behavior, exposing a critical blind spot in current skill-based agent architectures and motivating defenses that explicitly reason about skill composition and execution. Concretely, on EHR SQL, SkillTrojan attains up to 97.2% ASR while maintaining 89.3% clean ACC on GPT-5.2-1211-Global. † † affiliationnotice: * Equal contribution. 1 Introduction Skill-based abstractions are now a prevalent design pattern in agent systems ( 15 ; 22 ; 29 ) . Instead of emitting low-level actions, agents invoke and compose reusable skills that encapsulate procedural logic, tool calls, and execution workflows. This design improves modularity and scalability, and it underlies widely used agent frameworks and emerging skill marketplaces. In practice, skills often execute code, maintain internal state, and mediate access to external resources, which makes them convenient units for reuse and rapid deployment. These same properties, however, concentrate trust in skill implementations and expand the agent’s attack surface beyond what can be inferred from model input–output behavior alone ( 19 ; 16 ) . Figure 1 : Skill-based agent execution model. Agents compose reusable skills for planning, memory, and tool use around an LLM core. SkillTrojan hides encrypted fragments in a few skills and, upon a trigger, reconstructs and executes a payload through standard composition. Backdoor research on LLM-based agents has largely focused on manipulating a control channel—e.g., the model (via poisoned data or parameter edits), the prompt and planning context, or the agent’s tool/memory interfaces—so that a trigger induces malicious behavior while nominal performance on clean tasks is preserved ( 17 ; 18 ; 24 ; 3 ; 9 ) . Despite this broader view, most evaluation and defenses ( 27 ; 5 ; 4 ; 28 ) remain centered on the model’s observable behavior or on specific interaction surfaces (prompts, tools, memory) in isolation. Skill-based agent systems introduce a distinct and under-examined locus of control: reusable skill implementations that encapsulate executable logic and persist across tasks, users, and deployments. Because skills mediate execution rather than high-level reasoning, compromising a single widely adopted skill can silently influence many downstream runs—even when the underlying model, prompts, and toolset remain unchanged. As shown in Figure 1 , this decoupling creates a new backdoor vector in which malicious logic is embedded inside otherwise plausible skills and activated through standard skill composition. Since skills are typically treated as trusted modular components, their internal behavior is seldom audited to the same degree as model outputs, leaving a critical blind spot in current agent security assumptions. In this work, we introduce SkillTrojan , a backdoor attack paradigm that targets the skill abstraction layer in agent systems. To our knowledge, this is the first work to systematically implant and evaluate backdoors in reusable skill implementations, rather than in model parameters, prompts, or tool and memory interfaces. SkillTrojan embeds an attacker-specified payload directly into skills and distributes it as encrypted fragments across multiple benign-appearing invocations. The payload is reconstructed and executed only when a predefined trigger condition is satisfied, allowing compromised skills to remain dormant during routine evaluation and standard usage. Because the underlying model remains unchanged and clean-task performance is largely preserved, such attacks are difficult to detect via behavior-based testing. Beyond a single attack method, SkillTrojan constitutes a general and extensible framework. It supports diverse targeted payloads and enables automated synthesis of backdoored skills from arbitrary skill templates, facilitating scalable propagation across agent pipelines and skill ecosystems. We evaluate SkillTrojan in a representative code-based agent setting across both open- and closed-weight models, and demonstrate that it consistently achieves high attack success rates with minimal impact on clean-task accuracy. To support reproducible evaluation and future research, we release a dataset of over 3,000 curated backdoored skills spanning diverse skill types, trigger conditions, and payload configurations. Together, our results expose a critical and underexplored security vulnerability in modern skill-based agent architectures. This paper makes three main contributions: • We introduce SkillTrojan , the first backdoor attack paradigm that targets the skill abstraction layer in agent systems, implanting malicious logic into reusable skill implementations rather than model parameters, prompts, or tool and memory interfaces. • We propose a general and extensible framework for skill-level backdoors, supporting encrypted payload fragmentation, trigger-based activation, and automated synthesis of backdoored skills from arbitrary templates, enabling scalable attacks across diverse agent pipelines and skill ecosystems. • We empirically evaluate SkillTrojan in a realistic code-based agent setting across both open- and closed-weight models, showing consistently high attack success with minimal impact on clean-task accuracy (e.g., 97.2% ASR on GPT-5.2-1211-Global in Table 2 ), and release a dataset of 3,000+ curated backdoored skills to support reproducible research. 2 Related Work 2.1 Coding Agents and Executable Skill Abstractions Recent progress in large language models has led to the widespread adoption of coding and tool-executing agents, in which models solve tasks by composing executable tools, scripts, and workflows rather than emitting only natural-language outputs. Representative systems employ modular abstractions—often referred to as skills, tools, or actions—to encapsulate reusable code, API calls, and execution logic, enabling scalability, compositionality, and reuse across tasks and deployments ( 7 ; 21 ) . These abstractions form the backbone of modern coding agents and underlie emerging ecosystems such as agent frameworks and skill marketplaces. Prior work in this area has primarily focused on improving agent capability, planning efficiency, and compositional generalization. In most settings, executable skills are treated as trusted components: once installed, their internal behavior is assumed to be benign and is rarely audited beyond functional correctness. Consequently, security analyses of coding agents have largely concentrated on model outputs, prompts, or high-level planning behavior, while the risks introduced by persistent, reusable executable abstractions have received comparatively little attention. Our work builds on this literature by explicitly examining coding agents through a security lens and highlighting executable skills as a critical but underexplored locus of control. 2.2 Backdoor Attacks on Agent Systems Backdoor attacks in machine learning have traditionally targeted models directly, through training data poisoning, parameter manipulation, or trigger-based input distributions that induce malicious behavior while preserving performance on clean inputs ( 14 ; 23 ; 26 ) . In these settings, the model is the primary control surface, and malicious behavior is expressed through model outputs. More recent work

Read the complete text