A skill's own examples smuggle malicious code past agent defenses up to 33.5% of the time
Notes on Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems (arXiv:2604.03081) — Yubin Qu, Yi Liu, Tongcheng Geng, Gelei Deng, Yuekang Li, L. Zhang, Ying Zhang, Lei Ma · April 2026
Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made
AI-assisted notes · reviewed by SkillFed Skill securityCoding agents install third-party agent skills from open marketplaces with no mandatory security review, and because those skills run as operational directives with system-level privileges — file writes, shell commands, network calls — a single bad one can compromise the host outright. Document-Driven Implicit Payload Execution (DDIPE) is a supply-chain attack that skips the obvious move of writing malicious instructions into a skill's prompt text, and instead embeds the payload inside the skill's code examples and configuration templates — the parts of a skill an agent reuses verbatim while doing normal work, so the attack fires without ever being explicitly asked for. An LLM-driven generation pipeline scaled this from 81 hand-built seed skills to 1,070 adversarial variants spanning 15 MITRE ATT&CK categories, roughly a 13x expansion, then ran them against four production coding-agent frameworks — Claude Code, OpenHands, Codex, and Gemini CLI — across five underlying models.
DDIPE bypassed defenses in 11.6% to 33.5% of the eight framework/model configurations tested, versus 0% for the same attacks written as explicit instructions. The gap between models was stark: Sonnet 4.6 held Claude Code's execution rate to 2.3%, while MiniMax-M2.5 on the identical harness hit 13.3% — about 5.7x higher — and stripping OpenHands' own architectural guardrails pushed GLM-4.7's rate up 11.3x. Static analysis screening caught the large majority of payloads (90.7%), but 2.5% slipped past both the scanner and model alignment alike, using semantic disguises like fake error-handling or false-authority comments. Only 1.6% of payloads fooled all five models simultaneously — a multi-model ensemble vote compressed single-model bypass rates of 13–20% down to that figure. Responsible disclosure to the four framework maintainers produced four confirmed vulnerabilities, two of which already have shipped fixes.
Key numbers
| DDIPE bypass rate range | 11.6%–33.5% |
| Explicit-instruction attack bypass | 0% |
| Evades both scanner and alignment | 2.5% |
| Joint bypass across all 5 models | 1.6% |
| Confirmed vulnerabilities / fixed | 4 confirmed, 2 fixed |
Skills related to this research
Related notes
- 84% of Malicious Agent-Skill Exploits Hide in the Docs, Not the Code →
- Frontier Agents Cave to Poisoned Skill Files Up to 80% of the Time →
- Automated SKILL.md rewrites push poisoned-skill attacks from 0% success to 80.7% →
- Metadata Alone Wins 86% of Skill-Discovery Matchups →
- 26.1% of Marketplace Agent Skills Carry a Vulnerability →
- 97.6% of Injection and Poisoning Caught, Only 90.2% When Skills Interact →
- Compiling a skill for its model drops regressions from 15% to 4.5% →
- 71% of Mined Scientific Skills Don't Exist in Any Skill Marketplace →
- Forced to search a 34k-skill library instead of being handed the right one, agents' pass rate falls from 55.4% to 38.4% -- a hair above the 35.4% no-skill floor →
References
- Qu, Y., Liu, Y., Geng, T., Deng, G., Li, Y., Zhang, L., Zhang, Y., Ma, L. "Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems." arXiv:2604.03081, April 2026.