← Lab /AI/ML

LLM agents vulnerable to skill file injections with up to 80% success

LLM agents are highly vulnerable to skill-based prompt injection, achieving up to 80% attack success

AI/ML arXiv 23 Feb 2026 Benchmark Prototype evidence

Published as “Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks”

Why it matters

Practitioners should treat third-party skill files as untrusted code and adopt context-aware authorization mechanisms to prevent data exfiltration, ransomware, and other harmful actions.

Summary

The paper finds that skill-based prompt injections succeed at up to 80% of attempts on frontier LLM agents, with contextual injection success rates ranging from 41% to 79% and obvious harmful injections reaching 70%. Warning-policy prompts lower but do not eliminate success, and simple LLM-judge screening only partially mitigates the risk. Evidence comes from the SKILL-INJECT benchmark evaluating 202 injection-task pairs across 23 skills and multiple models.

What they found 3

  1. Contextual injections succeed at substantial rates across nearly all models, with baseline ASR from 41.0% to 79.0% and most models exceeding 50%.

    “Contextual injections succeed at substantial rates across nearly all configurations: under the baseline (Normal) condition (arguably ambiguous scenarions), ASR ranges from 41.0% (Haiku-4.5) to 79.0% (Gemini-3-Flash), with most models exceeding 50%.”

  2. Script-based attacks achieve higher success than direct text injections, reaching 71.8% vs 53.8% for contextual cases.

    “Script-based attacks achieve higher ASR across both contextual and obvious injection categories, with an average increase of over 30 percentage points. In many cases, this was caused by models not checking the script before running it. For contextual injections, script-based attacks succeed 71.8% of the time compared to only 53.8% for direct text injections.”

  3. Obvious harmful injections can be executed with up to 70% success, and best-of-N attacks raise this further.

    “The ASR on the obvious injections gets as high as 70% and can be increased significantly by doing a best-of-n attack over different possible injection lines.”

Caveats 5

  • The Warning policy generally reduces ASR relative to Normal, but does not eliminate successful attacks.
  • LLM judges correctly flag many injected skills but fail on contextual injections under a legitimizing policy, leading to low utility and missed detections.
  • The legitimizing policy sometimes reduces injection execution (a utility failure) for some models, showing inconsistent mitigation effects.
  • Our evaluation covers a finite set of skills, tasks, and threat models. Results may shift with different agent implementations or more adaptive attackers.
  • It is also worth noting that these attacks are relatively simple to implement and that a real attacker might reach a much higher attack success rate by optimizing their injection for a very specific task and tailoring it to a specific model or agent scaffold.

What’s new here 4

  • Introduces the first benchmark (SKILL-INJECT) specifically for skill-based prompt injection attacks in LLM agents.
  • Evaluates both contextual dual-use injections and obvious harmful injections, measuring a security-utility trade-off.
  • Analyzes the impact of different safety-policy prompts (baseline, warning, legitimizing) and description-field injections.
  • Provides extensive ablations including script-based attacks, best-of-N strategies, and LLM-as-a-judge screening.