Repository context cuts flagged malicious AI skills from 46.8% to 0.52%
Adding GitHub repository context to skill analysis reduces the proportion of skills flagged as malicious to 0.52%
AI/ML arXiv 17 Mar 2026 Measurement Real-world evidence
Published as “Malicious Or Not: Adding Repository Context to Agent Skill Classification”
Why it matters
Marketplace operators can dramatically lower false-positive alerts and better prioritize real threats by adding repository context to skill scanning.
Summary
Repository-aware analysis cuts the share of scanner-flagged skills that truly reside in malicious repositories from the original high rates down to only 0.52% of 2,887 flagged skills. The study also uncovers a new supply-chain attack vector where abandoned GitHub repositories are hijacked, affecting 121 skills. Evidence is based on a large-scale measurement of 238,180 unique skills across three marketplaces and GitHub, with quantitative reductions and manual validation of a sample of repositories.
What they found 2
- Malicious classification rates across existing scanners vary widely, from 3.8% to 41.9%.
“Malicious classification rates vary widely across scanners, ranging from 3.8% to 41.9%.”
- Hijacking of 7 abandoned repositories impacts 121 skills across marketplaces.
“we demonstrate the hijacking of 7 abandoned repositories referenced by skill indexes, affecting 121 skills.”
Caveats 6
- Only 33 out of 27,111 skills (0.12%) are flagged as malicious by all five scanners, indicating low consensus among scanners.
- Even after repository-aware analysis, 0.52% of flagged skills still reside in malicious repositories, showing residual false positives.
- During collection we encountered several issues that limited the number of retrievable skills.
- Cloning is limited to two minutes and skill directories to 200 MB for scalability.
- We exclude ClawHub skills because no GitHub repository context exists.
- Continuous daily scans of the entire ecosystem would remain expensive; only periodic scans are economically feasible.
What’s new here 3
- Incorporates GitHub repository context (code and metadata) into skill security assessment.
- Reduces false-positive malicious classifications to 0.52% of previously flagged skills.
- Identifies previously undocumented hijacking of abandoned repositories as an attack vector.