Skip to main content

Your Agent Trusts Skill Files. Here Is What Happens When One Is Poisoned.

A single document folder glowing with cold blue light hidden among a stack of identical white folders on a dark surface

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

Popular posts from this blog

AngularJs call one method of controller in another controller .

I have seen many question about calling one method of one controller in another controller or extending scope of one controller in another controller.so here are the ways. if you want to call one controller into another or extending scope of controllers there are four methods available $rootScope.$emit() and $rootScope.$broadcast() If Second controller is child ,you can use Parent child communication . Use Services Kind of hack - with the help of angular.element() 1. $rootScope.$emit() and $rootScope.$broadcast() Controller and its scope can get destroyed, but the $rootScope remains across the application, that's why we are taking $rootScope because $rootScope is parent of all scopes . If you are performing communication from parent to child and even child wants to communicate with its siblings, you can use $broadcast If you are performing communication from child to parent ,no siblings invovled then you can use $rootScope.$emit HTML <body ng-app = ...

Muse Glimmer: Apache 2.0, 30B, and Why the EU AI Act Just Made Your Model License a First-Class Decision

Meta shipped Muse Glimmer on August 10, and the thing that matters most isn't the benchmark scores. It's the license. After more than a year of closed models, Meta put a 30B parameter agentic model on Hugging Face under Apache 2.0 with no strings attached. That decision landed two weeks after the EU AI Office gained actual enforcement teeth over general-purpose AI model providers. The timing isn't coincidental. What You're Actually Getting Muse Glimmer is a 30B model distilled from Muse Spark. The distillation kept the agentic capabilities, the multi-step reasoning, and the function-calling quality while cutting the parameter count to something you can deploy locally without a data center. At full precision, 30B needs north of 55 GB of memory. In 4-bit K-Quant, the footprint drops to 17-20 GB. A single RTX 4090 or RTX 3090 (both 24 GB) handles it with room left for the KV cache. On a Mac with an M4 Max or M5 Max you have even more headroom. Meta built DFlash specul...

OX Alpha: Nobody Knew Who Made It, and Teams Still Put It in Production

A model called OX Alpha showed up on OpenRouter on August 20. No lab name. No announcement. No documentation beyond a spec sheet: 1,048,576-token context, text and image and video input, function calling, free to use until August 27. Within 24 hours, people were routing production traffic through it. The benchmark claim driving that adoption: 80% on DeepSWE Pass@1. For context, the numbers being passed around put Claude Fable at 65% and GPT-5.6 Sol at 52%. Those numbers came from a ten-task community test, not an audited leaderboard, but that didn't slow anyone down. I'm not here to litigate whether OX Alpha is actually better at coding. I'm more interested in what happened to people's due diligence. What "Stealth" Actually Means on OpenRouter OpenRouter runs a program where labs can preview models anonymously. The provider shows up as "Stealth," and the model name is whatever the lab chooses. The idea is straightforward: labs get real-world ev...