arXiv:2610.37738cs.CROct 2026

Manuscript Offprint

arXiv:2610.37738

Poisoned Skills: Propagating Jailbreaks Through Agent Markdown Files

Kashyap R Manjusha, Murali Emani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Modern agent frameworks allow users to provide Markdown files containing system prompts, tool descriptions, and skill definitions (e.g., SKILL .md), which are incorporated into the agent's context during initialization. In this work, we investigate whether this configuration mechanism can also serve as an injection channel: can a jailbreak embedded in a Markdown skill file propagate through an agent and induce prohibited behavior? To answer this question, we construct a LangChain-based question-answering agent whose system prompt is assembled from a user-provided Markdown file. We embed a jailbreak combining persona manipulation with a GPTFUZZER-based attack and evaluate its effectiveness across seven contemporary open-weight models using 270 forbidden questions spanning nine harm categories. Under a benign system prompt, the models exhibit near-complete refusal behavior, with a mean attack success rate (ASR) of just 0.5%. In contrast, the injected skill file raises the mean ASR to 45%, reaching 68.9% for individual models. We further evaluate two payload obfuscation strategies: an invisible zero-width character-based stealth payload and a phonetic payload based on grapheme-to-phoneme transformations. Neither outperforms the plain-text injection; notably, the phonetic variant reduces mean ASR to 30%. These findings identify Markdown skill files as an underexplored attack surface for AI agents and suggest that vulnerability to configuration-based jailbreaks depends more strongly on the underlying model than on the specific payload obfuscation technique.

1 Introduction

Agents deployed in real-world settings are rarely standalone language models. Instead, they are assembled from a model and a collection of user- or developer-supplied configurations, including system prompts, tool and function descriptions, and, increasingly, reusable skill files written in Markdown (e.g., SKILL .md). These files are incorporated directly into the agent's context during initialization to guide its behavior. Their appeal lies in their simplicity and extensibility: they are plain-text artifacts that users can readily create, share, and reuse. However, this same accessibility introduces a potential security risk. Malicious instructions embedded in a skill file may be treated as trusted configuration and inherit the authority associated with the agent's instruction context.

In this work, we investigate whether adversarial jailbreaks can propagate through an agent via this Markdown-based configuration channel. Unlike conventional attacks that inject adversarial instructions directly into a user prompt, our approach embeds a jailbreak in a skill file loaded during agent initialization and subsequently evaluates its effect on responses to otherwise ordinary, prohibited queries. This setup captures a plausible supply-chain threat: skill files may be downloaded from public repositories, reused across projects, and incorporated into agent workflows with limited security review. A compromised file can therefore introduce persistent malicious instructions into every session in which it is loaded.

Our contributions are fourfold. First, we formulate Markdown skill-file corruption as an attack vector and instantiate it in a LangChain[LangChain, Inc., 2025]-based agent. Second, using a benign-prompt control, we isolate the effect of the injected instructions from baseline model behavior: the mean attack success rate (ASR) increases from 0.5% to 45%, reaching 68.9% for individual models. Third, we evaluate two payload obfuscation strategies, an invisible zero-width stealth payload and a phonetic grapheme-to-phoneme (G2P) payload, and find that neither outperforms the plain-text injection; the phonetic variant instead reduces the mean ASR. Fourth, we observe an approximately fivefold variation in attack susceptibility across models, highlighting the underlying model as a key determinant of vulnerability to configuration-based jailbreaks.

Related work. Direct jailbreaks manipulate a user turn to bypass safety training, whether by hand-crafted prompts [Perez and Ribeiro, 2022], optimized adversarial suffixes [Zou et al., 2023], automated fuzzing [Yu et al., 2023], or persona role-play [Zhang et al., 2025]; Wei et al. [2023] attribute their success to competing objectives and mismatched generalization. A second line studies indirect prompt injection, where malicious instructions reach the model through retrieved or external content rather than the user [Greshake et al., 2023, Yi et al., 2023]. Our work sits at this intersection but targets a channel specific to modern agents: the Markdown configuration and skill files loaded into the system prompt at construction time.