← Lab /Security & privacy

Hybrid static, dynamic, and LLM analysis cuts false positives in malicious skill detection

The proposed framework detects malicious AI agent skills with higher precision and far fewer false positives than existing scanners

Security & privacy arXiv 7 Nov 2026 Method Prototype evidence

Published as “The Devil Wears Markdown: Detecting Malicious Intent Hidden in AI Agent Skill Instructions through Hybrid Static, Dynamic, and Agentic Analysis”

Why it matters

The framework can dramatically lower false-positive noise while preserving most malicious-skill coverage, making automated skill security screening more practical for CI/CD pipelines.

Summary

The proposed cross-layer framework (Full Pipeline) achieves the best overall detection performance, reaching an F1-score of 0.89, recall of 0.85, and only five false positives on a held-out test set of 80 malicious and 60 benign agent skills. Existing open-source scanners either miss many malicious skills or generate many false alarms (e.g., YARA and Cisco Skill Scanner have recall 0.91 but false-positive rates of 0.82 and 0.55). The biggest gain comes from adding dynamic sandbox evidence, while static evidence mainly reduces noise. The paper does not provide an abstract, so the summary is based on the introduction and evaluation sections.

What they found 4

  1. The Full Pipeline achieves the highest overall detection performance.

    “The Full Pipeline yields the strongest observed classification performance among the evaluated configurations, with an F1-score of 0.89 and five false positives among 60 benign skills.”

  2. Dynamic evidence provides the largest individual improvement.

    “Dynamic evidence provides the largest individual improvement, increasing F1 to 0.85 and recall to 0.79 while limiting false positives to five.”

  3. Cisco Skill Scanner attains high recall but many false positives.

    “Cisco Skill Scanner achieves an F1-score of 0.79, detecting 73 of 80 malicious skills (recall = 0.91), but flags 33 of 60 benign skills (FPR = 0.55).”

  4. Adding an LLM analyzer to Cisco Skill Scanner does not reduce false positives.

    “Cisco Skill Scanner with LLM achieves a recall of 0.85 and an F1-score of 0.72, while classifying 40 of the 60 benign skills as malicious (FPR = 0.67).”

Caveats 6

  • The Full Pipeline’s recall (0.85) is lower than the 0.91 recall achieved by YARA and the default Cisco Skill Scanner.
  • The Full Pipeline still produces five false positives among 60 benign skills.
  • Dataset size and representativeness. The skills in our dataset may not cover all malicious skill families, benign developer workflows, or future agent-skill ecosystems.
  • Sandbox coverage Dynamic analysis depends on whether sandbox execution triggers the relevant behavior. Some malicious skills may require specific user inputs, credentials, environment variables, external services, or delayed execution.
  • Run-to-run variability Each skill underwent a single sandbox execution.
  • Adversarial resilience We do not evaluate skills adaptively engineered to evade our static rules, sandbox constraints, provenance logic, or semantic reasoning.

What’s new here 4

  • Combines static analysis, safety-constrained dynamic sandboxing, and LLM-based agentic reasoning into a single provenance-aware detection pipeline.
  • Provides a systematic benchmark of three open-source malicious-skill scanners on a curated real-world dataset.
  • Shows that dynamic evidence yields the largest individual performance boost and that cross-layer evidence correlation reduces false positives by 87.5% compared to a scanner with an LLM analyzer.
  • Makes all evaluation data and artifacts publicly available for reproducibility.