Research Published here Reported by arXiv on

Paper shows “hidden comment” prompt injection via agent skill docs rendered from Markdown to HTML

When agent “Skills” are written in Markdown and rendered to HTML, malicious instructions can be embedded in HTML comments that are invisible to human reviewers but still present in the raw text sent to the model. The authors report that these hidden-comment injections can influence agent behavior (including leaking tool intentions) and that a defensive system prompt treating Skills as untrusted can block the attack in their experiments.

Why it matters

If your agent ingests tool docs, runbooks, or “skills” as plain text, you have a new supply-chain injection surface that code review might not even show. This is exactly the kind of subtle mismatch (what humans see vs what the model reads) that attackers exploit.

What to do

Sanitize skill/documentation inputs before they reach the model (strip HTML comments, normalize Markdown, and log the exact bytes you send). Add a hard policy: treat any tool docs/skills as untrusted data, and require explicit justification + allowlists before sensitive tool calls.

Tags: Agents Security Prompt Injection Supply Chain

More from February 12, 2026

All AI news