Paper deep dive
SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills
Yinghan Hou, Zongyou Yang
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 96%
Last extracted: 4/10/2026, 3:38:51 AM
Summary
SkillSieve is a three-layer hierarchical triage framework designed to detect malicious AI agent skills in marketplaces like OpenClaw's ClawHub. It combines static analysis (regex, AST, metadata) for high-speed filtering, structured semantic decomposition (SSD) using parallel LLM sub-tasks for deeper inspection, and a multi-LLM jury protocol for high-risk verification. The framework achieves an F1 score of 0.800, significantly outperforming existing tools like ClawVet, while maintaining cost-efficiency by applying expensive LLM analysis only to suspicious samples.
Entities (5)
Relation Signals (3)
SkillSieve â detects â malicious AI agent skills
confidence 100% ¡ SkillSieve is a three-layer triage pipeline that combines static analysis with LLM-based semantic checks
ClawHub â hosts â agent skills
confidence 100% ¡ OpenClaw's ClawHub marketplace hosts over 13,000 community-contributed agent skills
SkillSieve â outperforms â ClawVet
confidence 100% ¡ SkillSieve achieves 0.800 F1, outperforming ClawVet's 0.421
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:OpenClaw's ClawHub marketplace hosts over 13,000 community-contributed agent skills, and between 13% and 26% of them contain security vulnerabilities according to recent audits. Regex scanners miss obfuscated payloads; formal static analyzers cannot read the natural language instructions in this http URL files where prompt injection and social engineering attacks hide. Neither approach handles both modalities. SkillSieve is a three-layer detection framework that applies progressively deeper analysis only where needed. Layer 1 runs regex, AST, and metadata checks through an XGBoost-based feature scorer, filtering roughly 86% of benign skills in under 40ms on average at zero API cost. Layer 2 sends suspicious skills to an LLM, but instead of asking one broad question, it splits the analysis into four parallel sub-tasks (intent alignment, permission justification, covert behavior detection, cross-file consistency), each with its own prompt and structured output. Layer 3 puts high-risk skills before a jury of three different LLMs that vote independently and, if they disagree, debate before reaching a verdict. We evaluate on 49,592 real ClawHub skills and adversarial samples across five evasion techniques, running the full pipeline on a 440 ARM single-board computer. On a 400-skill labeled benchmark, SkillSieve achieves 0.800 F1, outperforming ClawVet's 0.421, at an average cost of 0.006 per skill. Code, data, and benchmark are open-sourced.
Tags
Links
- Source: https://arxiv.org/abs/2604.06550v1
- Canonical: https://arxiv.org/abs/2604.06550v1
Trouble viewing inline? Open PDF directly â
Full Text
39,247 characters extracted from source content.
Expand or collapse full text
SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills Yinghan Hou â Department of Earth Science and Engineering Imperial College London London, United Kingdom houyinghan521@outlook.com Zongyou Yang â Department of Computer Science University College London London, United Kingdom yzy0624@outlook.com Abstract OpenClawâs ClawHub marketplace hosts over 13,000 community- contributed agent skills, and between 13% and 26% of them contain security vulnerabilities according to recent audits. Regex scanners miss obfuscated payloads; formal static analyzers cannot read the natural language instructions inSKILL.mdfiles where prompt injec- tion and social engineering attacks hide. Neither approach handles both modalities. SkillSieve is a three-layer detection framework that applies progressively deeper analysis only where needed. Layer 1 runs regex, AST, and metadata checks through an XGBoost-based feature scorer, filtering roughly 86% of benign skills in under 40ms on average at zero API cost. Layer 2 sends suspicious skills to an LLM, but instead of asking one broad question, it splits the analysis into four parallel sub-tasks (intent alignment, permission justification, covert behavior detection, cross-file consistency), each with its own prompt and structured output. Layer 3 puts high-risk skills before a jury of three different LLMs that vote independently and, if they disagree, debate before reaching a verdict. We evaluate on 49,592 real ClawHub skills and adversarial sam- ples across five evasion techniques, running the full pipeline on a $440 ARM single-board computer. On a 400-skill labeled bench- mark, SkillSieve achieves 0.800 F1, outperforming ClawVetâs 0.421, at an average cost of $0.006 per skill. Code, data, and benchmark are open-sourced. Keywords AI agent security, supply chain security, malicious skill detection, LLM-based analysis, agent skill marketplace 1 Introduction AI coding agents like OpenClaw [1], Claude Code, and Cursor ex- tend their capabilities through skills: packages of natural language instructions (aSKILL.mdfile) and optional scripts that tell the agent what to do. OpenClawâs ClawHub marketplace hosts over 13,000 such skills as of early 2026 [2], with daily submissions that briefly topped 500 during the JanuaryâFebruary rush [4]. Anyone can publish a skill. There is no mandatory review. Attackers noticed. The ClawHavoc campaign pushed hundreds of malicious skills into ClawHub over six weeks; Koi Securityâs audit of 2,857 skills found 341 malicious entries, 335 traced to a single coordinated operation [5]. Snykâs ToxicSkills audit found that 13.4% of 3,984 skills contained at least one critical-level security â Equal contribution. issue [4]. A separate study of 42,447 skills put the vulnerability rate at 26.1% [6]. Current tools each cover part of the problem. ClawVet [9] matches regex patterns but misses payloads split across files (ClawHavoc demonstrated this). SkillFortify [8] gives formal guarantees on ex- ecutable code but cannot read the English-language instructions where prompt injection hides. VirusTotalâs Gemini-based scan- ner [10] understands language but relies on a single model with no way to handle disagreement. The root issue is that a skill is two things at once: code and prose. Detecting malice requires analyzing both. We built SkillSieve around three ideas: Triage. Most skills are obviously safe. A cheap static check (regex + AST + heuristic scoring, avg 39ms, zero API cost) filters about 86% of the volume, so expensive LLM calls go only where they are needed. Decomposed analysis. Asking an LLM âis this malicious?â in one shot gives shaky results. We split the question into four focused sub-tasks run in parallel: Does the skill do what it claims? Are its permissions justified? Does it try to hide anything? Does the code match the instructions? Jury verdict. A single LLM has blind spots. Three different models vote independently; if they disagree, they see each otherâs reasoning and vote again. The final report traces evidence through all three layers. Our contributions: ⢠SkillSieve, a three-layer triage pipeline that combines static analysis with LLM-based semantic checks, applying deeper analysis only to skills that need it (§4). â˘Structured Semantic Decomposition (SSD): splitting LLM security analysis into four parallel sub-tasks, each indepen- dently evaluable (§4.3). â˘A Multi-LLM Jury Protocol with structured debate for cross- validating high-risk verdicts (§4.4). â˘An open benchmark of 49,592 real skills with a 400-skill labeled test set and adversarial bypass samples across five evasion techniques, evaluated on $440 edge hardware (§5, §6). 2 Background and Related Work 2.1 AI Agent Skill Ecosystems AI agent skills are modular extensions that direct agent behav- ior through natural language instructions and optional executable scripts. The canonical skill package consists of aSKILL.mdfile con- taining YAML frontmatter (metadata, dependencies, permissions) arXiv:2604.06550v1 [cs.CR] 8 Apr 2026 Hou and Yang and a markdown body (instructions to the agent), optionally accom- panied by ascripts/directory with executable code in Python, Bash, or JavaScript [3]. OpenClawâs ClawHub is the largest public skill registry, hosting over 13,000 skills as of February 2026. Skills are published via a GitHub-backed registry with minimal vetting: any user can submit a skill, and there is no mandatory security review or certification process [15]. This open model mirrors the early days of npm and PyPI, where supply chain attacks exploited the absence of gatekeep- ing [21]. The critical distinction from traditional package ecosystems is that agent skills operate with the agentâs full privilegesâincluding access to environment variables (API keys, tokens), file system operations, and network requestsâand their natural language in- structions are executed implicitly by the agent without explicit user approval for each action [13, 14]. 2.2 Known Attack Campaigns Several large-scale attack campaigns have targeted skill ecosystems in 2026: ClawHavoc (JanuaryâFebruary 2026): Koi Securityâs audit of all 2,857 skills on ClawHub identified 341 malicious entries, 335 of which were traced to a single coordinated campaign. The operation used typosquatting (names resembling popular skills like âpoly- marketâ and âphantomâ), cross-file logic splitting, and credential exfiltration via external webhooks [5]. Atomic macOS Stealer: Trend Micro documented malicious OpenClaw skills distributing the AMOS (Atomic macOS Stealer) infostealer through disguised utility skills [16]. Crypto skill campaign: Malicious skills targeting cryptocur- rency users compromised OpenClaw installations by exfiltrating wallet keys and exchange API credentials [17]. 2.3 Existing Detection Approaches Pattern-based scanning. ClawVet [9] runs six independent analy- sis passes with 54 static detection patterns covering reverse shells, DNS exfiltration, credential theft, obfuscation, prompt injection, and social engineering. However, the ClawHavoc campaign demon- strated that distributing malicious commands across multiple code blocks defeats single-pass and multi-pass regex scanners. Formal static analysis. SkillFortify [8] applies formal verifica- tion through abstract interpretation, capability-based sandboxing, and SAT-based dependency resolution. It achieves 96.95% F1 with zero false positives on benign skills but is limited to analyzing exe- cutable code and cannot reason about natural language instructions in SKILL.md. LLM-based analysis. VirusTotal Code Insight [10] uses Gemini to analyze skill packages. SkillScan [6] integrates static analysis with LLM-Guardâs semantic classifiers, achieving 86.7% precision and 82.5% recall on a corpus of 31,132 skills (collected from 42,447 total). SkillProbe [11] employs multi-agent collaboration for secu- rity auditing across 2,500 skills, discovering zero-day vulnerabilities through combinatorial risk simulation. However, all existing LLM- based approaches use either a single model or treat the analysis as a monolithic task, limiting both robustness and explainability. Related work on skill cloning, automated prompt injection, and security benchmarking [22â24] shows how broad the threat surface has become. Surveys and taxonomies. Xu and Yan [12] survey agent skills across architecture, acquisition, and security. Liu et al. [7] conduct a large-scale empirical study of 157 confirmed malicious skills, iden- tifying two attack archetypes and achieving 93.6% removal through responsible disclosure. Agent Audit [25] combines dataflow analy- sis with credential detection for LLM agent applications. Neither proposes a hierarchical detection framework for skill marketplaces. Positioning of SkillSieve. Our work differs from prior ap- proaches in three ways: (1) we combine static and semantic analysis in a cost-efficient hierarchical pipeline rather than applying uni- form analysis depth; (2) we decompose LLM-based analysis into four structured sub-tasks rather than using monolithic prompts; and (3) we employ multi-model cross-validation with structured debate rather than relying on a single LLM. 3 Threat Model Attacker. We consider an adversary who publishes malicious skills to public registries (e.g., ClawHub). The attackerâs goal is to execute unauthorized actions when their skill is installed by a victim, in- cluding: credential theft (reading API keys, tokens, SSH keys from environment variables or dotfiles), data exfiltration (sending local data to attacker-controlled servers), remote code execution (estab- lishing reverse shells or downloading additional payloads), and social engineering (manipulating the agent into granting elevated permissions). The attacker may employ evasion techniques including: encod- ing obfuscation (Base64/hex encoding of malicious commands), cross-file logic splitting (distributing malicious behavior across SKILL.mdand multiple scripts), conditional triggers (activating only under specific environments, usernames, or time conditions), ho- moglyph substitution (Unicode look-alike characters for typosquat- ting), and time-delayed payloads (dormant for days before activa- tion). Defender. The defender operates a detection system that an- alyzes skill packages before installation or upon submission to a registry. The defender has access to the full skill package contents (all text files) but does not execute any code. The defender may call external LLM APIs for semantic analysis. The detection system must balance three objectives: high recall (minimizing false nega- tives to prevent malicious skills from reaching users), reasonable precision (minimizing false positives to avoid blocking legitimate skills), and practical cost (keeping API costs manageable for scan- ning thousands of skills). Industry guidelines [18,28â30] emphasize these trade-offs for agentic AI deployments. Scope. We focus on detecting malicious intent in skill packages through static and semantic analysis. We do not address runtime monitoring, dynamic analysis, or attacks that require executing the skill code. We assume the skill package format follows the ClawHub specification (text-only files, no binaries). 4 The SkillSieve Framework 4.1 Overview SkillSieve processes each skill package through up to three layers of progressively deeper analysis (Figure 1): SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills (1)Layer 1: Static Triage (§4.2). Four analysis modulesâregex pattern matching, AST feature extraction, metadata reputa- tion checking, andSKILL.mdsurface statisticsâproduce a feature vector scored by a weighted heuristic (15 features from 31 candidates). Skills scoring below the risk threshold are released as safe. This layer processes each skill in under 40ms on average (P95: 127ms) at zero API cost, filtering approximately 86% of the total volume. (2) Layer 2: Structured Semantic Decomposition (§4.3). Suspicious skills from Layer 1 undergo LLM-based seman- tic analysis decomposed into four parallel sub-tasks: in- tent alignment, permission justification, covert behavior detection, and cross-file consistency. Each sub-task uses a specialized prompt and produces structured JSON output. A weighted aggregation determines whether to escalate to Layer 3. (3)Layer 3: Multi-LLM Jury Protocol (§4.4). High-risk skills are adjudicated by three independent LLMs through a two- round protocol: independent voting followed by structured debate if jurors disagree. The final verdict includes an ex- plainable report with evidence chains from all three layers. 4.2 Layer 1: Static Triage Layer 1 is designed for high recall at low cost: it aims to passâĽ98% of truly malicious skills to Layer 2, accepting a higher false positive rate that subsequent layers will resolve. 4.2.1 Module A: Pattern Matching. We scan all files in the skill package against a curated library of approximately 60 regex rules organized into five categories: reverse shell signatures, creden- tial theft patterns, data exfiltration indicators, code obfuscation markers, and prompt injection keywords. Rules are compiled with case-insensitive matching and stored in an extensible YAML con- figuration. 4.2.2 Module B: AST Feature Extraction. We parse Python, Bash, and JavaScript files using tree-sitter [20] to extract a structural feature vector: counts of system calls, network operations, environ- ment variable accesses, dynamic execution calls (eval/exec/subprocess), encoded string literals, and the Shannon entropy of string constants (high entropy suggesting obfuscation). 4.2.3Module C: Metadata Reputation. From theSKILL.mdYAML frontmatter, we extract: the minimum Levenshtein edit distance between the skill name and the top-100 most popular skill names (detecting typosquatting), whether the skill requests sensitive envi- ronment variables (keywords:key,token,secret), and whether it requires potentially dangerous binaries (curl, wget, nc, etc.). 4.2.4 Module D: SKILL.md Surface Statistics. Without invoking an LLM, we compute: instruction length, count of external URLs, number of permission requests, mentions of sensitive file paths ( Ě/.env, Ě/.ssh), urgency language density (âimmediatelyâ, âmustâ, âdo not tellâ), and the ratio of instruction length to description length. 4.2.5Classification. The four modules produce a combined feature vector (15 selected from 31 candidates). We trained an XGBoost [19] classifier on 1,401 labeled skills (608 malicious, 793 benign); in 5-fold End-to-end (L1+L2) F1 = 0.800 avg $0.006 / skill Skill Package SKILL.md + scripts/ 49,592 skills Layer 1: Static Triage XGBoost CV F1 0.959 Regex PatternsAST FeaturesMetadata Rep.SKILL.md Stats Heuristic scorer (avg 39 ms, $0) safe (86%) Pass suspicious (14%) ~6,871 skills Layer 2: Structured Semantic Decomposition SSD vs Single F1: 0.80 vs 0.75 Intent Alignment Permission Justification Covert Behavior Cross-file Consistency 4 parallel LLM calls (2-5 s, $0.04/skill) safe Pass high-risk Layer 3: Multi-LLM Jury Protocol Debate triggered 39% Round 1: Independent Voting Kimi 2.5MiniMax M2.7DeepSeek-V3 Round 2: Structured Debate (if split) Majority vote or escalate to human (~2%) Pass (~2%) Block + Report Explainable Report Figure 1: The SkillSieve three-layer triage architecture. Layer 1 filtersâź86% of benign skills via static analysis at zero cost. Layer 2 applies four parallel LLM sub-tasks to suspi- cious skills. Layer 3 convenes a multi-LLM jury for high-risk cases. cross-validation it achieves 0.959 F1 on the triage task. However, because the training malicious samples are dominated by three known-malicious authors with similar attack patterns, the model generalizes poorly to the more heterogeneous 400-skill benchmark (hold-out F1=0.677 vs. heuristic 0.733). The end-to-end results in Table 1 therefore use a weighted heuristic scorer, which assigns category-specific weights to pattern matches and outputs a risk scoreí â [0,1]. Skills withí< í(í=0.3) are released as safe; those withí ⼠íare escalated to Layer 2. A more diverse labeled corpus should allow the XGBoost model to surpass the heuristic. 4.3Layer 2: Structured Semantic Decomposition 4.3.1 Motivation. Natural language instructions inSKILL.mdare the primary attack surface for prompt injection and social engineeringâ attacks invisible to static analysis. However, posing a monolithic âis this malicious?â question to an LLM yields unreliable results: Hou and Yang the model may overlook specific threat dimensions, produce vague justifications, and cannot be systematically evaluated. 4.3.2 Four Sub-Tasks. We decompose the semantic analysis into four independent sub-tasks, each targeting a distinct security di- mension: â˘Task A: Intent Alignment. Does what the skill claims to do (name, description) match what it actually instructs the agent to do? Catches disguised attacks. â˘Task B: Permission Justification. Are the requested per- missions (environment variables, file access, network, bi- naries) reasonable for the stated purpose? Catches over- privileged skills. ⢠Task C: Covert Behavior Detection. Are there instruc- tions to hide actions from the user, suppress error reporting, or bypass safety mechanisms? Catches social engineering. â˘Task D: Cross-File Consistency. Does the code inscripts/ actually implement whatSKILL.mddescribes, or does it per- form undeclared actions? Catches split-logic attacks. All four sub-tasks are executed in parallel via concurrent API calls, so the total latency equals the maximum single-task latency (typically 2â5 seconds), not the sum. 4.3.3 Prompt Design. Each sub-task prompt follows a consistent structure: (1) system role as a security analyst, (2) the full skill content (SKILL.md+ scripts), (3) Layer 1 flags as context, (4) task- specific analysis instructions, and (5) a strict JSON output schema requiring a risk score, evidence quotes, and a categorical rating. Providing Layer 1 flags as context allows the LLM to focus its analysis on already-identified concerns. 4.3.4 Aggregation. Each sub-task returns a risk scoreí í â [0,1]. The Layer 2 risk score is a weighted sum: í 2 = í¤ í´ Âˇ í í´ + í¤ íľ Âˇ í íľ + í¤ íś Âˇ í íś + í¤ íˇ Âˇ í íˇ (1) whereí¤ í´ =0.35,í¤ íľ =0.25,í¤ íś =0.25,í¤ íˇ =0.15, reflecting the relative importance of intent alignment (the strongest discriminator for disguised attacks). Skills withí 2 âĽ0.4 are escalated to Layer 3. 4.4 Layer 3: Multi-LLM Jury Protocol 4.4.1 Motivation. Individual LLMs exhibit systematic biases in security judgments: some models tend toward false positives, oth- ers toward false negatives, and these biases vary by attack type. A single-model verdict provides no mechanism for quantifying uncertainty or resolving ambiguous cases. 4.4.2Two-Round Protocol. Round 1: Independent Voting. Three LLMs from different vendors (Kimi 2.5, MiniMax M2.7, DeepSeek- V3 via Baidu Qianfan) independently analyze the skill with full context (skill content + Layer 1 flags + Layer 2 analysis). Each juror produces a structured JSON verdict:SAFEorMALICIOUS, with confidence, attack types, evidence, and reasoning. If all three jurors agree, the unanimous verdict is final. Round 2: Structured Debate. If jurors disagree, each receives the other jurorsâ reasoning and evidence and must either maintain or change their verdict, explicitly addressing counter-arguments. After Round 2, a majority vote (âĽ2/3) determines the verdict. If no majority emerges, the skill is flagged for human review. 4.4.3Explainable Reports. For malicious verdicts, SkillSieve gen- erates a structured report containing: attack type classification, a three-layer evidence chain (Layer 1 static findingsâLayer 2 se- mantic findingsâLayer 3 juror opinions), and a recommended action (block, report, or escalate). 5 Dataset Construction 5.1 Data Sources We construct our evaluation dataset from four sources: â˘ClawHub full archive: We clone theopenclaw/skills GitHub repository (April 4, 2026 snapshot), which archives all skills published on ClawHub. This yields 49,592 skill packages across 16,797 authors. ⢠Snyk ToxicSkills: Thesnyk-labs/toxicskills-goofrepos- itory provides documented malicious skill samples with known attack payloads [4]. ⢠ClawHavoc samples: Malicious skills from the ClawHavoc campaign, identified via theprompt-security/clawsec security advisory feed and cross-referenced with the ClawHub archive. â˘Human-reviewed set: 400 skills (89 malicious, 311 be- nign) labeled via cross-validation between SkillSieve L1 and ClawVet, with all 157 disagreements resolved by a hu- man reviewer. 5.2 Labeling Schema Each skill receives three annotations: (1) a binary label (benign/malicious); (2) attack type multi-labels from a taxonomy of seven categories (prompt injection, credential theft, remote execution, data exfil- tration, typosquatting, obfuscation, social engineering); and (3) a stealth rating from 1 (plaintext malicious commands) to 5 (advanced obfuscation with conditional triggers). 5.3 Adversarial Test Set We construct adversarial samples covering five bypass techniques: encoding obfuscation, cross-file logic splitting, conditional triggers, homoglyph substitution, and time-delayed payloads. Each sample combines its evasion technique with a credential theft payload injected into a benign skill template. Table 2 analyzes the per-layer interception pattern for each technique. We verify these patterns at scale with 100 samples (20 per technique) in Section 6. 6 Evaluation 6.1 Experimental Setup Environment. All experiments run on an Orange Pi AIpro single- board computer (4-core ARM64 CPU, 24 GB LPDDR4X RAM, Ubuntu 22.04, Python 3.11). This hardware was chosen deliberately: it costs $440 and represents the low end of what a developer might have on hand. Layer 1 analysis runs entirely on-device. Layers 2 and 3 call LLM APIs over WiFi: Kimi 2.5 (Moonshot AI) for Layer 2 and three- vendor jury for Layer 3 (Kimi 2.5, MiniMax M2.7, DeepSeek-V3 via Baidu Qianfan). The evaluation dataset is the fullopenclaw/skills GitHub archive cloned on 2026-04-04. Baselines. We compare against four baselines: (1) ClawVet [9], a 6-pass regex scanner; (2) SkillFortify [8], a formal static analysis SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills framework; (3) VirusTotal Code Insight, a single-LLM (Gemini) analyzer; and (4) a single-LLM baseline (Kimi 2.5 with a direct âis this malicious?â prompt). Metrics. Precision, Recall, F1, Accuracy, and False Positive Rate (FPR) for binary classification (benign vs. malicious). 6.2 Main Results Table 1: End-to-end detection on 400 labeled skills (89 ma- licious, 311 benign). All LLM-based methods use L1 triage first; they differ in how Layer 2 analyzes theâź151 suspicious skills that L1 flags. MethodPRF1Acc FPR ClawVet [9]0.3290.5840.4210.6420.341 SkillSieve L10.583 0.9890.7330.8400.203 + Single prompt 1.0000.5960.7460.910 0.000 + SSD (ours)0.7520.854 0.800 0.9050.080 ClawVetâs regex scanning produces the lowest F1 (0.421) because it flags any skill containing common patterns regardless of context (precision 0.329). Layer 1 alone catches nearly everything (recall 0.989) but at the cost of flagging 20.3% of benign skills. Adding Layer 2 with SSD raises precision to 0.752 and F1 from 0.733 to 0.800, at an average cost of $0.006/skill (86% of skills are resolved at Layer 1 for free). Layer 2 clears 38 of the 63 benign skills that Layer 1 incorrectly flagged. The two Layer 2 approaches differ in how they fail. L1 + Single prompt achieves perfect precision (zero false positives) but misses 36 malicious skills (recall 0.596), because a single broad question defaults to âbenignâ for skills that look like legitimate tools. L1 + SSD detects 23 more threats by examining each security dimension independently, raising recall to 0.854. The cost is 25 false positives, an acceptable trade-off when missed malware is more dangerous than extra review. 6.3 Why SSD Outperforms Single-Prompt Analysis Table 1 shows that L1+SSD achieves F1=0.800 while L1+Single- prompt achieves 0.746âboth using Kimi 2.5 on the same skills. The single prompt misses 36 malicious skills that SSD catches. To understand why, we examine representative cases. Case 1: Disguised DeFi tool (maxxit-lazy-trading). The single prompt labels this skill benign, reasoning: âlegitimate DeFi trading automation that uses documented APIs.â SSDâs Task B (Per- mission Justification) flags that the skill requestsOPENAI_API_KEY despite having no AI functionality, and Task C (Covert Behavior) detects instructions to suppress transaction logging. Case 2: Fake identity service (verified-agent-identity-5). The single prompt accepts the skill as a âlegitimate decentralized identity management tool.â SSDâs Task A (Intent Alignment) identi- fies a discrepancy: the description claims identity verification, but the instructions direct the agent to collect and transmit private keys. Case 3: Blockchain game wrapper (botcoin). The single prompt sees âdocumented blockchain game with transparent to- ken economics.â SSDâs Task D (Cross-file Consistency) discovers that the setup script performs actions not described inSKILL.mdâ specifically, exporting environment variables to an external end- point. The pattern is consistent: the single prompt evaluates the skillâs stated purpose and finds it plausible, while SSDâs decomposed anal- ysis examines each security dimension independently and catches misalignments that a holistic judgment overlooks. 6.4 Adversarial Robustness Table 2: Per-layer interception analysis on five bypass tech- niques. Each technique combines its evasion method with a credential theft payload. TechniqueL1 Score Caught by L1 Rule Encoding0.35L1+L2obfuscation Cross-file0.40L1+L2credential_theft Conditional0.70L1conditional_trigger Homoglyph0.80L1+L2prompt_injection Time-delay0.70L1time_delay All five techniques are intercepted. The results reveal three in- terception patterns based on L1 signal strength: Strong L1 signals (scoreâĽ0.70): Conditional triggers and time- delayed payloads contain distinctive code constructs (if os.environ.get(, time.time() -) that regex rules catch reliably. Layer 2 confirms but is not strictly needed. Moderate L1 signals (score 0.35â0.40): Encoding obfuscation and cross-file splitting produce weaker static signatures. Layer 1 flags them but with less certainty; Layer 2âs semantic analysis is needed to confirm that base64-decoded commands or cross-file data flows constitute an attack. Compound attacks (score 0.80): Homoglyph substitution alone (a name-only attack with benign content) would evade content- focused analysis. However, real-world typosquatting skills combine name impersonation with malicious payloadsâin our test case, hidden credential theft. The combination triggers both metadata (non-ASCII name) and content rules (prompt injection: âdo not mentionâ), producing a strong composite signal. We verified these patterns at scale by generating 100 adversarial samples (20 per technique). All 100 were correctly detected (100% interception rate), confirming that the per-layer analysis generalizes across variants of each technique. 6.5 Efficiency Analysis â SkillSieve averages are computed over the full 49,592-skill corpus. 86% of skills are resolved at Layer 1 (38.8 ms, $0), so the average cost per skill is dominated by the zero-cost majority:(0.86Ă$0)+ (0.14Ă$0.04) â$0.006/skill. By contrast, scanning every skill with a single-LLM approach would costâź$0.01/skillĂ49,592=$496. SkillSieveâs triage reduces this toâź$297, a 1.7Ăsaving on the full corpus; the saving grows as the benign base rate increases. Hou and Yang Table 3: Efficiency comparison. CVet = ClawVet, SFort = Skill- Fortify, VT = VirusTotal Code Insight. MetricCVet SFort VTOurs Avg latency/skill âź1 s âź5 s âź3 s38.8 ms â Avg cost/skill$0$0 âź$0.01 âź$0.006 â GPU requiredNoNoNoOptional 6.6 Edge Deployment Evaluation To test whether SkillSieve can run outside a cloud or workstation environment, we deployed the full pipeline on an Orange Pi AIpro, a $440 ARM-based single-board computer with a 4-core ARM64 CPU and 24 GB RAM (no GPU used). This hardware costs roughly an order of magnitude less than the cloud servers typically used for security scanning at scale. Table 4: Layer 1 performance on Orange Pi AIpro (ARM64, 4-core, 24 GB RAM) scanning 49,592 real ClawHub skills. MetricValue Total skills scanned49,592 Total scan time1,863 s (31.0 min) Avg latency / skill38.8 ms P95 latency / skill126.6 ms Skills flagged suspicious6,871 (13.86%) Errors (unparseable)1,623 (3.27%) Hardware cost$440 API cost (Layer 1)$0 Layer 1 ran entirely on-device with zero API calls, processing 49,592 real ClawHub skills in 31 minutes on a $440 ARM board at 38.8 ms per skill (P95: 126.6 ms). The triage filter flagged 13.86% of skills as suspicious, closely matching Snykâs independent finding that 13.4% of 3,984 skills contained critical-level security issues [4]. This means only 6,871 skills require LLM analysis instead of all 49,592, a 7.2Ă cost reduction. Among the flagged skills, the most frequent pattern categories were obfuscation (35,705 matches, driven by base64-encoded strings), data exfiltration (6,451), social engineering (2,652), credential theft (598), prompt injection (484), and reverse shell signatures (33). The known-malicious authorhightower6eu(354 skills in our snapshot; VirusTotal [10] independently analyzed 314 from this author) was flagged in its entirety. We validated detection accuracy on 13 skills from two known- malicious authors (hightower6eu, moonshine-100rze). After Layer 2 semantic analysis via Kimi 2.5, all 13 were correctly classified as malicious (100% recall on known threats, average confidence 0.91). The hightower6eu skills use social engineering (fake âopenclaw- agentâ download links), while the moonshine-100rze skills embed base64-encoded reverse shell commands. Layers 2 and 3 issued HTTP requests to LLM APIs (Kimi 2.5, MiniMax M2.7, DeepSeek-V3 via Baidu Qianfan); network latency from the boardâs WiFi connection addedâź200 ms per request but did not bottleneck the pipeline since LLM inference dominates. The triage architecture makes SkillSieve practical for self-hosted deployment in air-gapped networks (Layer 1 only), CI/CD pipelines on commodity hardware, and resource-constrained environments where cloud-based scanning is not an option. 6.7 Jury Dynamics We ran the full three-layer pipeline on 20 borderline skills selected by Layer 2 confidence between 0.25 and 0.75 (the most uncertain verdicts). The jury consisted of three LLMs from different vendors: Kimi 2.5 (Moonshot AI), MiniMax M2.7, and DeepSeek-V3 (via Baidu Qianfan). Of the 20 cases, 18 reached Layer 3 (two were resolved at Layer 2). The results: Table 5: Layer 3 jury dynamics on 20 borderline skills (L2 confidence 0.25â0.75). OutcomeCount Unanimous Round 1 (no debate)11 Debate triggered (Round 2)7 Unanimous after debate3 Majority vote2 Contested (escalated to human)2 The debate mechanism activated in 7 of 18 jury sessions (38.9%). In 3 cases, the dissenting juror changed its verdict after seeing the other two jurorsâ evidence, reaching unanimous consensus. In 2 cases, the disagreement persisted but a 2-to-1 majority determined the verdict. In the remaining 2 cases, no majority emerged and the skill was flagged for human reviewâexactly the intended behavior for genuinely ambiguous skills. Notably, the two âcontestedâ cases (verified-agent-identity-5 andopenviking-context-database) were both skills that our hu- man annotator also found difficult to classify, suggesting the juryâs uncertainty correlates with genuine ambiguity rather than model failure. 7 Discussion Limitations. Layer 1 reads files; it cannot catch payloads fetched at runtime from a remote URL. Time-delayed attacks are the hard- est case across all methods, since the malicious logic looks inert at scan time. Layers 2 and 3 depend on LLM outputs, which are non-deterministic. We set temperature to 0 and report means and standard deviations over three runs, but some variance remains. Ethics. Our adversarial samples inject malicious logic into be- nign skill templates for evaluation only. We do not release working exploits. Vulnerabilities found in ClawHub data during this work were reported to the OpenClaw security team before publication. Edge deployment. Running the full experiment suite on a $440 ARM board was not a stunt. Recent work on edge-based mal- ware detection [26,27] demonstrates growing interest in resource- constrained security analysis. Existing skill scanners assume cloud infrastructure or a developer workstation. The triage design means 86% of the work stays on-device at zero cost, making self-hosted scanning practical for air-gapped networks, CI/CD runners, and organizations that cannot send skill contents to third-party APIs. SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills What we would do next. Runtime behavioral monitoring would catch the payloads our static approach misses. Fine-tuning a small open model on our labeled data could remove the API dependency for Layer 2. The framework currently targets OpenClaw skills, but the same architecture should transfer to MCP servers and LangChain tools with new rule sets. 8 Conclusion SkillSieve detects malicious agent skills by layering cheap static checks with focused LLM analysis and multi-model voting. On a 400-skill labeled benchmark drawn from 49,592 real ClawHub skills, the two-layer pipeline achieves 0.800 F1 (0.752 precision, 0.854 recall), outperforming ClawVetâs 0.421 F1. Layer 1 alone reaches 0.989 recall at zero cost; Layer 2 then cuts false positives by 60%, raising precision from 0.583 to 0.752. The three-model jury reaches unanimous agreement on all tested malicious sam- ples. The entire pipeline runs on a $440 ARM board in 31 minutes. All five tested bypass techniquesâincluding conditional triggers, homoglyph-based typosquatting, and time-delayed payloadsâare intercepted when combined with malicious payloads. Pure name impersonation without malicious content falls outside the scope of content-focused analysis and would require cross-registry name similarity checking [28]. The tool and benchmark are open-sourced at https://github.com/xiaohou521/skillsieve. References [1]OpenClaw. OpenClaw: Your own personal AI assistant. https://github.com/ openclaw/openclaw, 2026. [2] OpenClaw. ClawHub: Skill directory for OpenClaw. https://github.com/ openclaw/clawhub, 2026. [3] OpenClaw. Skill format specification. https://github.com/openclaw/clawhub/ blob/main/docs/skill-format.md, 2026. [4]Snyk Labs. ToxicSkills: Malicious AI agent skills in ClawHub. https://snyk.io/ blog/toxicskills-malicious-ai-agent-skills-clawhub/, February 2026. [5]Koi Security. ClawHavoc: 341 malicious skills found by the bot they were target- ing. https://w.koi.ai/blog/clawhavoc-341-malicious-clawedbot-skills-found- by-the-bot-they-were-targeting, February 2026. [6]Liu, Y., Wang, W., Feng, R., Zhang, Y., Xu, G., Deng, G., Li, Y., and Zhang, L. Agent skills in the wild: An empirical study of security vulnerabilities at scale. arXiv:2601.10338, January 2026. [7] Liu, Y., Chen, Z., Zhang, Y., Deng, G., Li, Y., Ning, J., Zhang, Y., and Zhang, L.Y. Malicious agent skills in the wild: A large-scale security empirical study. arXiv:2602.06547, February 2026. [8] Bhardwaj, V.P. Formal analysis and supply chain security for agentic AI skills. arXiv:2603.00195, February 2026. [9] Shaikh, M. ClawVet: Skill vetting & supply chain security for the OpenClaw ecosystem. https://github.com/MohibShaikh/clawvet, 2026. [10]VirusTotal. From automation to infection: How OpenClaw agent skills are being weaponized. https://blog.virustotal.com/2026/02/from-automation-to-infection- how.html, February 2026. [11]Guo, Z., Chen, Z., Nie, X., Lin, J., Zhou, Y., and Zhang, W. SkillProbe: Security auditing for emerging agent skill marketplaces via multi-agent collaboration. arXiv:2603.21019, March 2026. [12]Xu, R. and Yan, Y. Agent skills for large language models: Architecture, acquisi- tion, security, and the path forward. arXiv:2602.12430, February 2026. [13]AuthMind. OpenClawâs 230 malicious skills: What agentic AI supply chains teach us about the need to evolve identity security. https://w.authmind.com/ blogs/openclaw-malicious-skills-agentic-ai-supply-chain, 2026. [14] 1Password. From magic to malware: How OpenClawâs agent skills become an attack surface. https://1password.com/blog/from-magic-to-malware-how- openclaws-agent-skills-become-an-attack-surface, 2026. [15]HKCERT. OpenClawâs rapid adoption exposes skills supply chain andfakeinstallerrisksinahigh-privilegeAIagentplatform. https://w.hkcert.org/blog/openclaw-s-rapid-adoption-exposes-skills- supply-chain-and-fake-installer-risks-in-a-high-privilege-ai-agent-platform, March 2026. [16]Trend Micro. Malicious OpenClaw skills used to distribute Atomic ma- cOS Stealer. https://w.trendmicro.com/en_us/research/26/b/openclaw-skills- used-to-distribute-atomic-macos-stealer.html, February 2026. [17]Paubox. Malicious crypto skills compromise OpenClaw AI assistant users.https://w.paubox.com/blog/malicious-crypto-skills-compromise- openclaw-ai-assistant-users, 2026. [18]OWASP. OWASP Agentic Skills Top 10. https://owasp.org/w-project-agentic- skills-top-10/, 2026. [19] Chen, T. and Guestrin, C. XGBoost: A scalable tree boosting system. In KDD, 2016. [20] Tree-sitter. Official documentation / project page. https://tree-sitter.github.io/ tree-sitter/. [21]Ohm, M. et al. Backstabberâs knife collection: A review of open source software supply chain attacks. In DIMVA, 2020. [22] Zhu, J., Zhang, L., Guo, W., and Liu, Y. SkillClone: Multi-modal clone detection and clone propagation analysis in the agent skill ecosystem. arXiv:2603.22447, March 2026. [23]Wang, L., Wang, Z., and Xu, A. SkillTester: Benchmarking utility and security of agent skills. arXiv:2603.28815, March 2026. [24] Jia, X., Liao, J., Qin, S., Gu, J., Ren, W., Cao, X., Liu, Y., and Torr, P. SkillJect: Automating stealthy skill-based prompt injection for coding agents with trace- driven closed-loop refinement. arXiv:2602.14211, February 2026. [25]Zhang, H., Nian, Y., and Zhao, Y. Agent Audit: A security analysis system for LLM agent applications. arXiv:2603.22853, March 2026. [26]Rondanini, C., Carminati, B., Ferrari, E., Gaudiano, A., and Kundu, A. Mal- ware detection at the edge with lightweight LLMs: A performance evaluation. arXiv:2503.04302, March 2025. [27] Rondanini, C., Carminati, B., Ferrari, E., Lardo, N., and Kundu, A. LoRA-based parameter-efficient LLMs for continuous learning in edge-based malware detec- tion. arXiv:2602.11655, February 2026. [28]OWASP. Top 10 for Agentic Applications for 2026. https://genai.owasp.org/ resource/owasp-top-10-for-agentic-applications-for-2026/, December 2025. [29]JFrog. OpenClaw can be hazardous to your software supply chain. https://jfrog. com/blog/giving-openclaw-the-keys-to-your-kingdom-read-this-first/, 2026. [30]Semgrep. OpenClaw security engineerâs cheat sheet. https://semgrep.dev/blog/ 2026/openclaw-security-engineers-cheat-sheet/, 2026.