TL;DR
SKILLLITE is an agentic framework designed to audit LLM "Agent Skills" for malicious behavior using compact, locally deployable LLMs. By offloading the discovery of sparse security evidence to deterministic analyzers and focusing the LLM on high-level risk adjudication, it achieves state-of-the-art detection performance and low latency without the need for massive commercial models.
What Problem Does This Paper Address?
As LLM-based agents transition from simple chatbots to autonomous executors, they increasingly rely on "Agent Skills"—modular packages containing instructions, code, and resources—to extend their capabilities. However, this creates a significant supply-chain risk: a third-party skill might appear benign but contain hidden logic to steal credentials, exfiltrate data, or hijack the agent's control flow.
While large-scale commercial LLMs (like GPT-4) are capable of auditing these packages, they are often unsuitable for security-sensitive environments due to privacy concerns and high operational costs. Conversely, "compact" LLMs (e.g., Gemma-2B, Qwen-7B) typically struggle with this task. The malicious signals are often "sparse"—hidden across multiple files and configurations—and require complex reasoning to distinguish between a legitimate sensitive operation (like a network call for a search tool) and a malicious one.
Methods
The authors propose SKILLLITE, an evidence-guided framework that restructures the auditing process into four functional roles to better support the limited reasoning capacity of compact models:
- Security Evidence Extraction: Instead of asking the LLM to read every file, SKILLLITE uses a suite of deterministic analyzers to scan for "security-relevant" behaviors (e.g., local file access, obfuscated payloads, or bypasses of user confirmation).
- Intent Analysis: A compact LLM analyzes the skill's specification (
SKILL.md) to define its "Intent Profile"—what the skill is supposed to do and what capabilities are reasonably required to achieve that goal. - Evidence Synthesis: This module grounds the raw security findings back into their source code context and integrates them with the Intent Profile, creating a structured "Evidence Report."
- Risk Adjudication: Finally, a compact LLM acts as a judge. It reviews the structured evidence against the declared intent to determine if a suspicious behavior is a "functional necessity" or a malicious "abuse chain."
Datasets
The framework was evaluated across three diverse benchmarks:
- MalSkillBench: A large-scale dataset (8,000 samples) covering code injection, prompt injection, and 15 distinct malicious behaviors.
- SkillTrustBench: A dataset of ~4,500 real-world skill packages spanning nine security categories like privilege escalation and memory poisoning.
- MaliciousAgentSkillsBench (MASB): A challenging "in-the-wild" evaluation set consisting of 157 behaviorally confirmed malicious skills collected from public registries.
Key Insights and Ideas
- Externalizing the "Search" Task: The most significant insight is that compact LLMs fail at auditing not because they can't reason, but because they get overwhelmed by the "needle in a haystack" problem of finding evidence in complex packages. By using deterministic tools to find the "needles" first, the LLM can focus entirely on the "judgment" task.
- Contextual Necessity: Maliciousness is often relative. A network request is expected in a weather skill but suspicious in a local file sorter. SKILLLITE’s "Intent Analysis" provides the necessary baseline for the model to make this distinction.
- Efficiency-Efficacy Trade-off: The authors show that a well-structured pipeline using a 2B or 7B parameter model can outperform a "naive" zero-shot approach using much larger models, all while keeping data local and processing fast.
Key Results
SKILLLITE consistently outperformed existing baselines (including those from NVIDIA and Cisco) across all benchmarks:
- Detection Performance: Achieved F1-scores of 0.905 on MalSkillBench and 0.966 on SkillTrustBench.
- Speed: Maintained low inference latency (approx. 27–28 seconds per skill), making it 3.5x to 4.9x faster than the strongest LLM-based competing baselines.
- Model Enhancement: SKILLLITE improved the F1-score of base models (like DeepSeek-R1:8B) by up to 73.6 percentage points compared to simple zero-shot auditing.
Limitations and Future Work
- Static Analysis Limits: Since SKILLLITE relies on pre-execution auditing, it may miss "runtime-only" threats—malicious behaviors that only trigger under specific dynamic conditions or external inputs that aren't visible in the static package.
- Base Model Sensitivity: While the framework enhances compact models, the final judgment is still limited by the underlying LLM's reasoning capability. Very small or "weak" models still show higher error rates on complex "Goal Hijacking" attacks.
- Future Directions: The authors suggest exploring dynamic auditing (monitoring the skill during execution) and refining the evidence extraction to handle more sophisticated code obfuscation.
Summary updated