Skip to content
IAM Insights

Research · Finding · updated · Boston Identity

BI-FIND-2026-1245

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.

medium confidencebest source: sponsored researchobserved Feb 2026

SourceSkill-Inject: Measuring Agent Vulnerability to Skill File Attacks · arXiv · · read

About Anthropic, Claude Sonnet 4.5 and AI trust.

From the briefing

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.

Paper · arXiv · David Schmotz, Luca Beurer-Kellner, Sahar Abdelnabi, Maksym Andriushchenko · Feb 23, 2026 · source

Read it in context

Evidence

The passage this finding cites, on the briefing page.

  1. [4]Ablations: LLM screening, best-of-n, scripts, description injection

How to cite

Boston Identity. "A warning in the system prompt did not reliably stop coding agents obeying lines planted in a skill file," BI-FIND-2026-1245. IAM Insights, October 14, 2026. https://insights.bostonidentity.com/ref/BI-FIND-2026-1245

© 2026 Boston Identity LLC. All rights reserved. Quote up to 100 words with the credit Boston Identity, IAM Insights and a link. How to cite · Terms

Was this claim useful?