Reproduce “SkillGate: Cost Efficient Runtime Malicious Skill File Detection in Coding Agents” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Rui Yang, Michael Fu, Kla Tantithamthavorn, Chetan Arora, Joey Chua
SKILLGATE introduces a cost-efficient runtime security gateway for AI coding agents, designed to detect malicious skill files by combining a regex-based prefilter with an LLM-based judge. The system achieves an F1-score of 0.817 with a 1.13% false positive rate, significantly reducing LLM input tokens by 76.9% and offering a 7.7x speed improvement over full-LLM baselines.
Key insights
- A hybrid detection architecture that combines static pattern matching with targeted LLM analysis is crucial for balancing high accuracy, low false positives, and cost-efficiency in detecting malicious skill files.
- The "skip savings" and "snippet savings" mechanisms dramatically reduce the computational cost and latency of LLM-based security screening by minimizing LLM calls and input tokens.
- Functional secrecy in AI agent skill files, distinct from artifact secrecy, requires dedicated defenses that can interpret natural language instructions and their potential for malicious behavior.
- Maintaining a low false-positive rate (FPR) is essential for the practical deployability of security tools in developer workflows, as high FPRs lead to significant disruption and user distrust.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.