Essay · 6 min read
Skills are instructions, so injections hide in instructions
Skill-Inject, posted 23 February 2026, measured prompt injection through SKILL.md files. Frontier agents executed harmful skill text at rates the authors say scaling will not fix.
An injection inside a skill is an instruction among instructions. Pattern filters trained on emails miss it.
On 23 February 2026, David Schmotz, Luca Beurer-Kellner, Sahar Abdelnabi, and Maksym Andriushchenko posted "Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks" (arXiv:2602.20156). The authors, at the Max Planck Institute for Intelligent Systems, ELLIS Institute Tübingen, the Tübingen AI Center, and Snyk, treat agent skills as a supply-chain problem.
Skills package code, knowledge, and instructions so an agent can pick up a specialty it was not trained to hold. Users install them the way they install packages. The agent's instruction stack is no longer only the system prompt, the vendor, and the user. It also includes third-party prompts. The paper's threat is not an email hiding in data. It is a malicious instruction sitting inside a file that is entirely composed of instructions.
That difference matters for every defense trained on the older shape. Instruction-versus-data separators and authority levels assume there is a data side. A SKILL.md file has no data side. The authors also stress dual use. "Share a summary with the team via the collaboration API" is legitimate when the file is an internal brief. It is exfiltration when the file holds credentials. Context decides. Scaling the model does not.
Skill-Inject contains 202 injection-task pairs across 23 skills and 70 attack scenarios. Attacks range from obviously malicious text ("delete all files") to contextual instructions hidden in otherwise legitimate procedures. The harness runs real agents: Claude Code, Gemini CLI, and OpenAI Codex CLI. The paper measures two things at once: security as harmful-instruction avoidance, and utility as legitimate-instruction compliance. The benchmark is public at skill-inject.com.
Figure 1 in the paper reports attack success rates under several conditions. Contextual ASR, in red, is dual-use injection execution under a warning policy, on 139 pairs. Blue bars show obvious injections on 36 items: a per-run ASR that pools individual runs, and a best-of-N rate for the fraction that succeed in at least one of five runs that vary skill, line position, and user task. Best-of-N reaches 72 to 97 percent across all models. Additional attacker variation amplifies success.
Figure 5, on skill-body injection, is the number August should keep on a wall. Under the baseline (Normal) condition, contextual ASR ranges from 41.0 percent (Haiku 4.5) to 79.0 percent (Gemini 3 Flash), with most models above 50 percent. OpenAI's Codex-line models are particularly vulnerable in this table: GPT-5.1-Codex-Max, GPT-5.1-Codex-Mini, and GPT-5.2-Codex all sit above 65 percent. Anthropic's Claude models are lower and still non-trivial, from 41 percent to 52 percent on Sonnet 4.5. A warning policy generally reduces ASR and does not eliminate it. A legitimizing policy often increases execution, which is the intended utility behavior when the extra instruction is authorized.
Table 3 isolates obvious injections that should always be refused: delete the filesystem, run ransomware, download and execute a remote shell, phish every known contact. Single-run ASR on those items reaches as high as 70 percent. Best-of-N over line position, skill, and task raises it further. The abstract's "up to 80 percent" is this family of results, not a single cell.
Table 4 compares script-based payloads, where the skill points at an auxiliary script, with text injected directly into SKILL.md. Script-based attacks succeed more often in both categories, with an average increase of more than 30 percentage points. Contextual script ASR is 71.8 percent against 53.8 percent for direct text. Obvious script ASR is 62.8 percent against 53.7 percent. The authors say models often run the script without reading it.
Table 5 adds an injection to the YAML description field that is loaded into the system prompt. Description injection raises overall success by 10.6 points on average, and by 16.8 points under the Warning condition. The malicious line becomes part of the skill's expected behavior before the warning is processed. Security checks that only read the body miss the header.
LLM judges as a screening step are evaluated and found incomplete. A skill that looks operationally plausible under a legitimizing policy is hard to reject without rejecting useful skills. GPT-4 shows a low ASR and a low task-completion rate; the authors attribute both to a short context window that drops long skill files. Opus 4.5 shows a counter-intuitive drop in execution under the legitimizing policy, which the appendix reads as suspicion toward coercive system text rather than as a solved defense.
A skill marketplace without an authorization model is a prompt marketplace with a progress bar.
What is new is a public recipe for an instruction-instruction attack, with a harness that already matches the CLIs teams run. Why it matters in August is the product calendar. OpenAI's Agents API sample on 10 September includes a capability directory for skills. Claude Code lists configured skills at session start. Cowork and Chrome agents will load the same kind of file when a workflow says they should. A classifier that matches a click to a user prompt does not automatically match a click to a SKILL.md the user installed last Tuesday.
What is unresolved is disclosure lag and judge quality. The authors say they disclosed findings to some providers, including Anthropic, before posting. Skill-Inject is an evaluation harness, not an exploit kit; it does not require the release of optimized attacks. The residual after disclosure is not published as a second table in the preprint. Best-of-N rates are attacker-controlled. A procurement slide that cites a single-run ASR without the BoN column is incomplete.
The practical read is ordinary and unkind. Treat third-party skills as untrusted by default. Pin versions. Read the YAML description and every script the skill shells out to. Put a context-aware authorization layer in front of file write, network post, and credential read, and do not expect the model to infer that layer from a warning paragraph. If your agent can install a skill from a marketplace in one command, your threat model now includes that marketplace.
Figure 3's pptx example is the one to show a skeptical engineer. A "backup to our central server" POST, after every edit, looks operational until the warning policy says unapproved destinations must be escalated. Dual use is the whole paper.
Table 8's length split is a useful negative result. Shortest skills were uniformly low vulnerability. Longest skills were mixed: docx and pptx near 45 percent max ASR, hf-paper-publisher at 87k characters completely robust in that cut. Length is not the defense. Authorization is.
Pin, read YAML, read scripts, authorize writes and posts outside the model. If a marketplace install is one command, the marketplace is in your threat model. The Agents API capability directory is the same object with a prettier name.
BoN at 72 to 97 percent is the attacker who can edit a file five times. Single-run ASR is the attacker who cannot. Marketplaces and git clones give the attacker the five edits. Design for BoN.
Disclosure to some providers happened before the preprint. A residual table after patches did not ship with v1. Assume the numbers until a vendor publishes a Skill-Inject re-score. Pin versions. Read YAML and scripts. Authorize file write, network post, and credential read outside the model. The Agents API capability directory is this paper's object with a session field around it.
23 February, 202 pairs, live CLIs, dual-use versus obvious, warning versus legitimizing, scripts versus text, YAML versus body, BoN 72 to 97 percent, up to 80 percent headline, context-aware authorization as the authors' prescribed fix: the skill file.
Pin. Read YAML and scripts. Authorize writes and posts outside the model. Treat marketplaces as prompt marketplaces. The Agents API directory is the same object.
On the record, arXiv:2602.20156, 23 February 2026, Schmotz, Beurer-Kellner, Abdelnabi, Andriushchenko, skill-inject.com. 202 pairs, live CLIs, Figure 1 BoN 72 to 97 percent, Figure 5 contextual 41 to 79 percent, Table 4 scripts, Table 5 YAML.
Pin, read, authorize outside the model. Marketplaces are prompt stores. The Agents API directory is this object hosted.
Notes
- 1Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks · arXiv
- 2Skill-Inject benchmark · Skill-Inject authors
- 3Introducing the Agents API · OpenAI