Encrypted Skills Can Become New Security Exploits If AI Agents Know How to Decipher
Abstract
Third-party skills can expose LLM agents to malicious instructions hidden by encoding. We introduce Ciphered Skill Injection (CSI), which embeds such instructions in skill files for agents to decode and follow. We evaluate Caesar and layered variants across eight models and 139 injection-task pairs, separating instruction recovery from attack success. In the primary setting with shortened skills, the variants achieve attack success rates of up to 47.5% and 40.3%, respectively. Successful decoding does not guarantee attack success, and layering has model-dependent effects. The tested skill scanners rarely flag injected skills. These findings highlight the risk of promoting decoded, untrusted content into actionable instructions.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.CL
Related papers
CWE-bench: Refocusing Agentic Security from Exploitation to Defense
Shared title terminologycs.CRGonzalo Gonzalez-Pumariega, Ajay Jagannath, Adit Jain et al.
Replication of Agentic Security Events: Audit and Investigation (ROGUE-AI)
Shared title terminologycs.CRMengxiao Wang, Mahbub Alam, Kalyan Nakka et al.
Backtracking Agent Applications Security Incidents
Shared title terminologycs.CRYicheng Cai, Taegyu Kim, Peng Liu
Guarding the Kingdom of Skill-Based Agents in the AI Dynasty of Computation: Control-Flow Integrity for Agent Skills
Shared title terminologycs.CRBonan Ruan, Yuhao Sun, Jiahao Liu et al.
CAT-RAG: Improving Secure Code Generation with Category-Aware Agentic Retrieval
Shared title terminologycs.CRMahdieh Abazar, Lorenzo De Carli, Benjamin Tan
MobileInject: Evaluating Reasoning-to-Action Security of MLLM-Based Mobile Agents under Cross-Modal Consistency Injection
Shared title terminologycs.CRSongping Wang, Peiyang Li, Yi Huang et al.