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.
More from February 12, 2026
- Authenticated prompts + hash-chained context aim to make LLM workflow security “deterministic”
- LLM “evolutionary sampling” proposes physical-plan edits to speed up database queries (DataFusion harness)
- FeatureBench benchmark finds agentic coding models struggle on end-to-end “feature development” tasks
- CVPL proposes a post-hoc linkage-risk metric to test whether “protected” tabular data is still re-identifiable