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

DevFeed: [The Devil Wears Markdown: Detecting Malicious Intent Hidden in AI Agent Skill Instructions through Hybrid Static, Dynamic, and Agentic Analysis](<https://devfeed.tech/articles/the-devil-wears-markdown-detecting-malicious-intent-hidden-in-ai-agent-skill-instructions-through-hybrid-static-dynamic-and-agentic-analysis-126941.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10830>)

Author: Thanh M. Truong-Le, Amber Bennoui, Hoang-Ly Nguyen, Gia-Thang Ho, Thai-Minh Truong, Duc-Ly Vu

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [AI software supply chain security](<https://devfeed.tech/topics/ai-software-supply-chain-security.md>), [code security](<https://devfeed.tech/topics/code-security.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>)

Tags: [ablation](<https://devfeed.tech/tags/ablation.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agentic-analysis](<https://devfeed.tech/tags/agentic-analysis.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [analyzer](<https://devfeed.tech/tags/analyzer.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [cisco](<https://devfeed.tech/tags/cisco.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [false-positives](<https://devfeed.tech/tags/false-positives.md>), [framework](<https://devfeed.tech/tags/framework.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [instructions](<https://devfeed.tech/tags/instructions.md>), [integrations](<https://devfeed.tech/tags/integrations.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [static](<https://devfeed.tech/tags/static.md>)

## AI overview

On a held-out set of 140 agent skills, the proposed framework combining static findings, safety-constrained sandbox evidence, and LLM reasoning improved intent detection. In a within-system ablation with the same reasoning backend, adding dynamic evidence raised F1 from 0.70 to 0.85; adding static evidence as well raised it to 0.89, with five false positives among 60 benign skills. The Full Pipeline detected 68 of 80 malicious skills (0.85 recall, 0.93 precision, 0.88 accuracy). Cisco Skill Scanner's default configuration had higher recall (0.91) but 33 false positives; its Qwen3:8B LLM-enabled configuration had 0.85 recall and 40 false positives. The system-level comparison does not isolate model or architecture effects.

## Source excerpt

arXiv:2611.10830v1 Announce Type: new Abstract: Agentic AI ecosystems increasingly rely on reusable agent skills that combine executable code, natural-language instructions, configuration artifacts, and external tool integrations. These hybrid artifacts create software supply-chain risks because malicious intent may be distributed across instructions, code, metadata, and runtime behavior, making isolated alerts difficult to interpret. We evaluate three open-source scanners on a held-out test set of 140 skills comprising 80 malicious and 60 benign samples, including Cisco Skill Scanner with and without its optional LLM analyzer. The default Cisco configuration achieves a recall of 0.91 with 33 false positives among the 60 benign skills, while the LLM-enabled configuration using Qwen3:8B achieves a recall of 0.85 with 40 false positives. We then present a framework that combines static findings, safety-constrained sandbox evidence, and LLM-based reasoning to assess malicious intent. The framework tracks the origins of findings and relates evidence across analysis layers. In a within-system evidence-source ablation using the same reasoning backend, adding dynamic evidence to skill-content reasoning increases F1 from 0.70 to 0.85. Combining static and dynamic evidence further increases F1 to 0.89, with five false positives among 60 benign skills. Dynamic evidence provides the largest observed improvement. The Full Pipeline detects 68 of 80 malicious skills, achieving 0.88 accuracy, 0.93 precision, and 0.85 recall. It matches the observed recall of Cisco Skill Scanner with LLM while reducing false positives from 40 to five. This system-level comparison does not isolate model or architecture effects.