
Agent skill files are documentation. They're also instructions. And if they come from an untrusted source, they're a jailbreak delivery mechanism.
That's the finding from "Poisoned Skills: Propagating Jailbreaks Through Agent Markdown Files", published last month. The researchers built a LangChain question-answering agent, loaded it with a malicious skill file containing an embedded jailbreak payload, and ran it against seven open-weight models. Under a clean system prompt with no skill file, the mean attack success rate was 0.5%. With the poisoned skill file loaded, that jumped to 45% on average. One model hit 68.9%. Susceptibility varied fivefold across models, so none were immune.
This isn't a theoretical attack. It describes the architecture most of us are already building.
Why This Pattern Shows Up Everywhere
Standard agent framework design gives your agent a set of capabilities described in files. LangChain has tool descriptions. Claude Code reads CLAUDE.md and skill files. n8n has community workflows. MCP servers ship tool schemas. Every one of these is an instruction file your agent loads and treats as authoritative.
The question is what happens when that file comes from somewhere you don't fully control.
Say your team maintains a shared internal skills repo. Someone writes a skill to query your Jira instance and includes a Markdown block explaining the tool's behavior. That block happens to contain something that looks like a formatting directive but tells the model to ignore prior instructions for certain query patterns. The odds your CI pipeline catches that are essentially zero, because static analysis doesn't evaluate prompt semantics.
The attack works because the feature works. Skills are supposed to load. MCP servers are supposed to describe tools. The model is the execution environment. Its safety training is the defense. And if the payload is well-crafted, the safety training is exactly what gets neutralized.
The Supply Chain Analogy Is Right
We went through a years-long education on npm supply chain security. The lesson: code you download and run is code you're responsible for, even if someone else wrote it. We now have lockfiles, provenance attestations, and in some orgs, automated scanning of package contents.
Agent skills are going through the same cycle, except we haven't started the education yet.
The difference from a traditional supply chain attack is subtle but important. With a backdoored npm package, the attacker injects code that runs in your process. With a poisoned skill file, the attacker injects instructions that run in your model's context window. The 0.5% to 45% gap is the gap between a model's default resistance to a direct jailbreak and its resistance when that same jailbreak arrives wrapped in what it's been told is a trusted tool specification.
What to Do About It
A few concrete things worth doing now:
Pin and review skill files. The same way you pin dependency versions, pin skill file versions. Any change to a skill file should require code review, not just a schema check.
Treat skill files as untrusted input at the architecture level. That means more than validating YAML syntax. If a skill file modifies your agent's behavior, be explicit about which modifications are allowed. Consider sandboxing the execution context.
Don't load skill files from public repositories at runtime. Fetching the latest version of a community skill at agent startup is the same risk as npm install latest. Snapshot at deploy time.
Model your skills as separate trust domains. A skill loaded from your internal repo has different trust than one a user provided, which has different trust than one that arrived via an API call. Most frameworks today treat these identically, which is the problem.
The paper also found that model choice matters: susceptibility varied fivefold across the seven models tested. I haven't reproduced this myself, and the study covered open-weight models only. I'd expect the numbers to be lower against a heavily RLHF'd proprietary model, but I wouldn't count on it.
The Pattern Behind the Pattern
This fits what I've been watching across agent security incidents in 2026. JADEPUFFER, the LiteLLM PyPI compromise, the AgentCore overprivilege research Zenity Labs published last month: all of them succeed because something the agent treats as trusted isn't. The poisoned skills research is the same failure applied to instruction files.
What's consistent is that the attacks don't require breaking the model. They require finding the seams between what the model was trained to distrust (direct malicious requests) and what it was trained to trust (tool specs, system instructions, skill definitions). That gap is the product of how we build agents, and it's not closing on its own.
The fix isn't to stop using skills. It's to build an explicit trust model for the instructions your agent runs, the same way you have an explicit trust model for the code your server runs. We've been treating agent instruction files the way early web developers treated SQL query strings: as a trusted internal concern. That worked until it didn't.
Comments
Post a Comment