← Lab /Software

Malicious agent skills often evade detection, with best detector missing prompt-injection attacks

Current skill detectors achieve high recall on code-injection skills but fail on prompt-injection and agent-control attacks

Software arXiv 5 Jun 2026 Benchmark Prototype evidence

Published as “MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills”

Why it matters

Current detection tools cannot reliably protect AI coding agents from the full range of malicious skill attacks, especially prompt-injection and agent-control threats.

Summary

The strongest skill-specific detector reaches 98.4% recall on code-injection attacks but collapses on prompt-injection and agent-control attacks, and its ranking can swing by up to 66 recall points when evaluated only on wild samples. The authors built MalSkillBench, a runtime-verified benchmark of 3,944 malicious skills (plus 4,000 benign) covering a 108-cell taxonomy, using a Generate-Verify-Feedback pipeline that only admits samples whose malicious behavior is observed in a Docker sandbox and confirmed by an LLM judge. They find code-injection attacks are much easier to realize (94.5% verification yield) than prompt-injection (75.8%), and that wild-collected skills are narrowly dominated by a single cryptocurrency-theft campaign. Evidence comes from systematic sandbox execution and unified evaluation of 12 detection tools, providing a solid empirical basis.

What they found 2

  1. Code-injection attacks are highly realizable, achieving a 94.5% verification yield.

    “code injection reaches 94.5% verification yield but prompt injection only 75.8%”

  2. The strongest skill-specific detector attains 98.4% recall on code-injection but fails on prompt-injection and agent-control attacks.

    “the strongest skill-specific detector reaches 98.4% recall on code injection yet collapses on prompt-injection and agent-control attacks”

Caveats 4

  • Detector recall varies by up to 66 points between the full benchmark and the wild-only subset, causing VirusTotal to jump from near-bottom to top rank.
  • High-recall LLM-based scanners generate thousands of false positives on benign skills (e.g., 1,465 FP for Cisco LLM mode).
  • The wild sample is strikingly narrow, dominated by a single cryptocurrency-theft campaign (86.6% one behavior, 81% from two accounts)
  • Prompt-injection attacks are nearly absent

What’s new here 4

  • Provides the first runtime-verified ground-truth benchmark for malicious agent skills.
  • Generates and verifies 3,214 malicious skills to achieve full coverage of a 108-cell attack taxonomy.
  • Offers a unified evaluation harness that compares 12 detection tools across both code- and prompt-injection vectors.
  • Shows how evaluation on wild-only data can dramatically mis-rank detectors, highlighting the need for verified benchmarks.