Briefing · Paper · source · updated · Boston Identity
A warning in the system prompt did not reliably stop coding agents obeying lines planted in a skill file
Agent skills are instruction files, often written by third parties, that coding agents such as Claude Code, Codex CLI and Gemini CLI load when a task calls for them. Researchers in Tübingen, with a co-author from Snyk, planted harmful lines in 23 skills and tested a dozen models. Across the 11 in the main results table, agents told the action was forbidden still carried it out up to 56.8% of the time, and payloads hidden in helper scripts ran more often than plain text.
arXiv · David Schmotz, Luca Beurer-Kellner, Sahar Abdelnabi, Maksym Andriushchenko · February 23, 2026 · read
What's happening
Finding3A warning that the action was forbidden lowered attack success for most models, yet on contextual injections Gemini 3 Flash still did it 56.8% of the time.
Telling the agent outright that the injected action was forbidden lowered attack success for most models. In the authors' results table for contextual injections (instructions that are harmful only in context, such as copying files to an outside server), agents under that warning policy still carried out the action 2.9% of the time with Haiku 4.5 and 56.8% with Gemini 3 Flash, with the two GPT-5.1 Codex models at 45.3% and 47.5%. The warning helped unevenly: GPT-5.2-Codex fell from 59.7% with no policy to 25.9%, while Gemini 2.5 Flash rose from 37.4% to 41.0%. The authors call policy prompting "helpful but insufficient as a standalone mitigation".
flag a problem with BI-FIND-2026-1244
Payloads hidden in a helper script the skill tells the agent to run succeeded 71.8% of the time on contextual injections, against 53.8% in the skill text.
Payloads hidden in a helper script that the skill tells the agent to run succeeded 71.8% of the time on contextual injections against 53.8% for the same instruction written into the skill text, and the authors attribute much of the gap to models running scripts without reading them. Planting a line in the skill's YAML description, which loads into the system prompt before the task starts, raised average execution by 14.1 points, and by 17.6 points under the warning policy, across the three models tested. On the plainly harmful injections (Table 3), five tries at different line positions meant at least one landed for 66.7% of them against Sonnet 4.5, and the authors name position in the file as the main source of variance.
flag a problem with BI-FIND-2026-1245
Both the agents and the LLM screeners struggled to tell an authorized skill instruction from a malicious one, the authors found.
The agents and the LLM screeners both struggled to tell an authorized skill instruction from a malicious one. Many judges asked to vet skills rejected them even when a policy said the action was approved, and the authors conclude the judges "do not appear capable to assess true contextual security correctly". Opus 4.5 carried out an authorized action 1.4% of the time, a refusal the authors count as a failure of usefulness. Their diagnosis is that the agent lacks a grounded notion of context and authorization for what a skill asks, and they recommend binding skills to least-privilege capability sets. We note that the policies they tested were sentences in the system prompt; the enforced authorization they call for is argued here, not tested.
Also reported in +3 briefings
- Two draft authors want every IETF specification to carry guidance for AI agents, with authorization kept outside the model
- Google's CaMeL stops nearly all prompt injection in tests, but agents finish fewer tasks and need written policy
- Most of Progent's protection from prompt injection comes from a policy written before the agent reads anything
flag a problem with BI-FIND-2026-1246
Section by section
5showing 5 of 5
[1]Skills as an agent supply chain and instruction-instruction injection
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
Agentic identityAI trust
Skills as an agent supply chain and instruction-instruction injection
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
Skills are instruction files, sometimes with scripts, that an agent loads only when a task calls for them, and they spread through marketplaces. The authors argue that an injection hidden in a file made entirely of instructions slips past defenses built to separate instructions from data. Users, they say, "will rarely audit skills in-depth". This part is argument backed by cited incidents, not measurement.
opinionfrom published text
[2]SkillInject benchmark design and security policies
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
AI trust
SkillInject benchmark design and security policies
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
The benchmark plants 71 injections in 23 skills and pairs them with real tasks: 76 pairs that are plainly harmful and 126 that are harmful only in context. Each contextual case comes with a policy that authorizes the action and one that forbids it. Agents run in Claude Code, Codex CLI and Gemini CLI, and a separate LLM judge reads the output, files and bash history.
technical artifactfrom published text + figures
[3]Main results: contextual and obvious injection success
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
AI trust
Main results: contextual and obvious injection success
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
Table 7 gives contextual attack success with no policy from 8.6% (Haiku 4.5) to 67.6% (Gemini 3 Flash). A warning policy lowered most rates without removing them: 2.9% to 56.8% across the 11 models in Table 7. Gemini 2.5 Flash rose under the warning. Under the authorizing policy Opus 4.5 carried out the action 1.4% of the time, which the authors count as a utility failure.
technical artifactfrom published text + figures
[4]Ablations: LLM screening, best-of-n, scripts, description injection
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
AI trust
Ablations: LLM screening, best-of-n, scripts, description injection
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
LLM judges asked to screen skills passed 88% to 99% of clean ones and flagged injected ones, but many also rejected skills when given a policy that authorized the action. On the plainly harmful injections, five tries at different line positions meant at least one landed for 66.7% of them against Sonnet 4.5 (Table 3). Script payloads beat inline text (71.8% vs 53.8% contextual), and a planted YAML description added 14.1 points on average (Table 5).
technical artifactfrom published text
[5]Conclusions and recommendations
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
Agentic identityAI trust
Conclusions and recommendations
David Schmotz, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Luca Beurer-Kellner, Snyk · Sahar Abdelnabi, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center · Maksym Andriushchenko, Max Planck Institute for Intelligent Systems; ELLIS Institute Tübingen; Tübingen AI Center
The authors locate the failure in authorization: the agent "lacks an explicit, grounded notion of context and authorization for actions requested by a skill". They recommend treating skills as untrusted by default, binding each to a least-privilege set of capabilities, and context-aware authorization for actions with outside effects. They disclosed the results to providers such as Anthropic before publishing.
opinionfrom published text