Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
Abstract
LLM agents are evolving rapidly, powered by code execution, tools, and the recently introduced agent skills feature. Skills allow users to extend LLM applications with specialized third-party code, knowledge, and instructions. Although this can extend agent capabilities to new domains, it creates an increasingly complex agent supply chain, offering new surfaces for prompt injection attacks. We identify skill-based prompt injections as a significant threat and introduce Skill-Inject, a benchmark evaluating the susceptibility of widely-used LLM agents to injections through skill files. Skill-Inject contains 221 injection-task pairs with attacks ranging from obviously malicious injections to subtle, context-dependent attacks hidden in otherwise legitimate instructions. We evaluate both security and utility of frontier models in Skill-Inject. Our results show that today's agents are highly vulnerable and can reach a single-attempt attack success of 59.5% on unambiguously harmful injections. A simple adaptive best-of-5 attack can increase this rate to 80.6%. Agents execute injections that lead to data exfiltration, destructive actions, and ransomware-like behavior. Our results suggest that prompt injections from agent skills are a dangerous attack surface and that contextual injections might not be solved through model scaling or simple input filtering, but that robust agent security will require context-aware authorization frameworks. Our benchmark and code are available at https://github.com/aisa-group/skill-inject and https://www.skill-inject.com/.