Malicious-Skill Detection Hits 0.920 F1 at $0.006 per Skill
Notes on SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills (arXiv:2604.06550) — Yinghan Hou, Zongyou Yang · 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 securityA regex scanner can read a skill's code but not the English prose in its SKILL.md — exactly where prompt injection and social-engineering instructions like to hide. Formal static analyzers read code more rigorously and still can't parse prose. SkillSieve's answer isn't a smarter single scanner; it's three escalating layers, each one filtering for the next. Layer 1 is a zero-cost static analysis pass — regex, AST parsing, metadata heuristics — that clears roughly 86% of skills in under 40ms apiece. What's left goes to Layer 2, an LLM that splits judgment into four parallel sub-checks (intent alignment, permission justification, covert-behavior detection, cross-file consistency) rather than one monolithic prompt. Skills that still look risky hit Layer 3: a multi-model jury — GLM-5.1, Qwen3-235B, DeepSeek-V3.1 — that votes independently and only debates when the votes split. The full pipeline ran end to end on a single $440 ARM single-board computer against 49,592 real skills pulled from OpenClaw's ClawHub registry (a 2026-04-04 snapshot spanning 16,797 authors), plus adversarial samples built around five evasion techniques.
On a 390-skill hand-labeled benchmark, the full pipeline lands F1 0.920 — precision 0.912, recall 0.929 — at an average $0.006 per skill and a 0.015 false-positive rate in deployment. Each layer earns its place in the chain. Layer 1 alone catches everything (recall 1.00) but floods the queue with noise (precision 0.348, F1 0.516). Layer 2's decomposition lifts precision to 0.675 by clearing 78 of Layer 1's 105 false positives. The jury pushes precision to 0.912, overturning 24 more false positives and kicking the 4 cases where jurors split 2-1 to human review. All five adversarial evasion techniques tested — homoglyph substitution and time-delayed payloads among them — got caught. An optional XGBoost pre-filter trims downstream LLM calls by 32% for a 1.6-point F1 tradeoff, recall unmoved. Ported to Feishu/Lark with a lightweight adapter, the same pipeline scanned 52 enterprise packages: Layer 2 corrected 13 of Layer 1's 14 false-positive flags — mostly API timestamps and documentation strings misread as obfuscated payloads — and still caught one genuine plaintext-credential leak.
Key numbers
| Vulnerability rate across ClawHub skills (prior audits) | 13–26% |
| Full-pipeline F1 (390-skill benchmark) | 0.920 |
| Precision / recall (full pipeline) | 0.912 / 0.929 |
| Cost per skill scanned | $0.006 |
| Skills cleared by Layer 1 alone, zero cost | 86% |
Skills related to this research
Related notes
- Agent-skill security scanners agree on just 0.69% of all skills — each is watching a different layer →
- Checking the repo, not just the SKILL.md, cuts flagged 'malicious' skills from 46.8% to 0.52% →
- A poisoned skill file compromises up to 86% of sessions that load it →
- 26.1% of Marketplace Agent Skills Carry a Vulnerability →
- Automated SKILL.md rewrites push poisoned-skill attacks from 0% success to 80.7% →
- 90% of a Skill Marketplace's Most-Downloaded Skills Fail a Rigorous Security Audit →
- A skill improves every time anyone uses it, not just its author →
- Three rounds of automated repair add up to 12pp of consistency — and beat a mature production system by 13.76pp →
- 0 of 9 add-skill edits improved pass rate; cost fell up to 31.7% vs. static bundles →
References
- Hou, Y. & Yang, Z. (2026). SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills. arXiv:2604.06550.
- Liu, Y., Wang, W., Feng, R., Zhang, Y., Xu, G., Deng, G., Li, Y., & Zhang, L. (2026). Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale. arXiv:2601.10338.
- Liu, Y., Chen, Z., Zhang, Y., Deng, G., Li, Y., Ning, J., Zhang, Y., & Zhang, L.Y. (2026). Malicious Agent Skills in the Wild: A Large-Scale Security Empirical Study. arXiv:2602.06547.
- Guo, Z., Chen, Z., Nie, X., Lin, J., Zhou, Y., & Zhang, W. (2026). SkillProbe: Security Auditing for Emerging Agent Skill Marketplaces via Multi-Agent Collaboration. arXiv:2603.21019.
- Snyk. (2026). Snyk Finds Prompt Injection in 36%, 1,467 Malicious Payloads in a ToxicSkills Study of Agent Skills Supply Chain Compromise. snyk.io, February 2026.