Local scanner detects cross-modal skill attacks with 88.2% accuracy
The distilled Qwen2.5-Coder-7B-Instruct model can detect language-and-code cross-modal attacks on Agent Skills at 88.2% rate
Security & privacy arXiv 12 Jun 2026 Defense Prototype evidence
Published as “SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skills”
Why it matters
Enables lightweight, on-device defense against malicious Agent Skills before they are loaded, reducing reliance on costly third-party scanning services.
Summary
Fine-tuned local LLM scanner detects 88.2% of cross-modal skill attacks, surpassing even frontier GPT-5.4 (86.8%). Existing rule-based and commercial scanners only catch 2.1%-7.9% of such attacks. The paper introduces a benchmark (SkillMutator) with 187 mutated skill scenarios across 13 attack categories and a four-phase reasoning distillation that enables small open-weight models to perform semantic detection at install time.
What they found 2
- Rule-based and commercial scanners detect only a tiny fraction of cross-modal attacks.
“skill-security-scan detects only 2.1%-7.9% of mutations”
- Fine-tuned local scanner achieves 88.2% detection, exceeding larger proprietary models.
“Fine-tuning raises this rate to 88.2%, surpassing GPT-4o-mini (23.7%), GPT-5.4mini (79.0%), and the frontier GPT-5.4 (86.8%)”
Caveats 1
- Detection drops to 86.8% in the select mode versus 91.6% in the no-select mode for the GPT-5.4 scanner ("GPT-5.4 [47] 86.8% 91.6%")
What’s new here 4
- Provides the first install-time detection benchmark for language-and-code cross-modal attacks on Agent Skills.
- Defines a taxonomy of 13 cross-modal attack categories spanning data, integrity, semantic, and supply-chain threats.
- Introduces a four-phase teacher-student reasoning-trajectory distillation framework to train small models for semantic mismatch detection.
- Implements an iterative evasion-refinement pipeline that generates scanner-evasive mutations for robust evaluation.