Surviving the Router: Optimizing Skill Injections for Retrieval and Execution
cs.CR, cs.LG
Submitted: 2026-10-06
Updated: 2026-10-13
Comments: 16 pages, 5 figures
Code: https://github.com/compass-group-tue/CORSA-Cluster-Optimization-for-Router-Aware-Skill-Attacks
License: http://creativecommons.org/licenses/by/4.0/
The gist: AI agents increasingly rely on modular third-party "skills" that are dynamically selected by skill routers to execute complex tasks.
Abstract
AI agents increasingly rely on modular third-party "skills" that are dynamically selected by skill routers to execute complex tasks. While recent studies highlight the threat of prompt injections embedded in these skills, existing evaluations often assume settings where the malicious skill is already selected for execution. We show that this assumption can substantially overestimate attack success. In realistic multi-skill environments, injected skills must first compete for retrieval, reducing the effective attack success rate (ASR) of existing injections by 87-97%. To address this limitation, we introduce CORSA (Cluster Optimization for Router-Aware Skill Attacks), a router-aware attack that optimizes skill injections for both retrieval and execution across clusters of related tasks. We evaluate skill injection attacks under router-managed multi-skill settings by extending the benchmark introduced by SkillRouter with eight malicious payload categories. CORSA uses successive optimization stages to first improve retrieval and then optimize end-to-end attack success, while we evaluate user utility and injection naturalism separately. Our experiments show that CORSA substantially improves both retrieval and end-to-end attack success over existing skill injections while preserving user utility, and that the resulting attacks transfer across different router architectures and LLM backbones.
Sources
- SkillAttack: Automated Red Teaming of Agent Skills through Attack Path Refinement
- SkillTrojan: Backdoor Attacks on Skill-Based Agent Systems
- Defenses & Enablers For Skill Injection Attacks on Terminal Based Agents
- Skill Description Deception Attack against Task Routing in Internet of Agents
- Context Matters: Repository-Aware Security Analysis of the Agent Skill Ecosystem
- SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills
- SkillJect: Effectively Automating Skill-Based Prompt Injection for Skill-Enabled Agents
- SkillGuard: A Permission-Centric Framework for Agent Skill Security
- Ignore Previous Prompt: Attack Techniques For Language Models
- Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems
- Under the Hood of SKILL.md: Semantic Supply-chain Attacks on AI Agent Skill Registry
- Agent Skills Enable a New Class of Realistic and Trivially Simple Prompt Injections
- Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
- Prompt Injection Attack to Tool Selection in LLM Agents
- ToolTweak: An Attack on Tool Selection in LLM-based Agents
- BadSkill: Backdoor Attacks on Agent Skills via Model-in-Skill Poisoning
- Skill Is Not Document: Query-Conditioned Compatibility for LLM Agent Skill Routing
- Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs