TL;DR: Skill injection can push attack success rate to 81.4% when malicious instructions are reworded, according to Patronus AI. Terminal agents need runtime mediation for reusable skills because static filtering alone does not hold up against phrasing changes.
Editorial analysis by NHI Mgmt Group, based on content published by Patronus AI: “Defenses & Enablers For Skill Injection Attacks on Terminal Based Agents”.
By the numbers:
- Skill injection attacks on terminal-based LLM agents reached an 81.4% attack success rate when malicious instructions were reframed.
- A dynamic guardian reduced that attack success rate to 18.6%.
Key questions
Q: Why do paraphrased prompts bypass agent skill filters?
A: Paraphrased prompts bypass agent skill filters because they preserve the attacker’s intent while changing the wording enough to evade brittle keyword or pattern matching.
Q: How should teams govern AI agent skills in production?
A: Treat skills as controlled runtime assets, not informal text.
Q: How do terminal-based agents defend against skill injection?
A: Terminal-based agents defend against skill injection by treating untrusted instruction inputs as data, not commands, and by enforcing a strict allowlist of callable tools, commands and files.
Practitioner guidance
- Define skill-file trust policies Classify reusable skills as governed inputs and require review before an agent can load or execute them in production workflows.
- Add runtime mediation for skill access Enforce policy checks at the moment of skill retrieval so phrasing changes do not bypass controls that only ran at build time.
- Test paraphrase-resistant defences Run reframed malicious variants through detection and approval logic to confirm the control still blocks intent when wording changes.
Bottom line: Skill injection shows that agent skill files are not passive documentation once they can alter runtime behaviour.
Glossary terms: Skill Injection, Guardian Control, Attack Reframing, Reusable Skill
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Skill injection turns reusable agent skills into a governed trust boundary, not a static asset. Once a skill file can influence runtime behaviour, its security depends on how and when the agent evaluates it, not just where it is stored. That makes agent skill management an IAM-style control problem for delegated machine action, especially when commands or file operations sit behind the skill. The practitioner conclusion is that governance must move to the point of use.
A few things that frame the scale:
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
A question worth separating out:
Q: What is the difference between static and dynamic guardian controls?
A: Static guardian controls use fixed rules, regexes or policy lists to block or allow agent actions, while dynamic guardian controls evaluate the live context of the prompt, tool call, destination, data sensitivity and runtime state. Dynamic controls can stop a benign-looking request when the surrounding context indicates prompt injection, privilege abuse or unsafe tool use.
👉 Read our full editorial: Guardian mediation cuts skill injection attacks to 18.6% from 81.4%