mlsanityData to 7 Oct 2026

When Skills Lie: Hidden-Comment Injection in LLM Agents

arXiv 2602.10498 ↗First posted 11 Feb 2026cs.CRcited by 5

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

LLM agents often rely on Skills to describe available tools and recommended procedures. We study a hidden-comment prompt injection risk in this documentation layer: when a Markdown Skill is rendered to HTML, HTML comment blocks can become invisible to human reviewers, yet the raw text may still be supplied verbatim to the model. In experiments, we find that DeepSeek-V3.2 and GLM-4.5-Air can be influenced by malicious instructions embedded in a hidden comment appended to an otherwise legitimate Skill, yielding outputs that contain sensitive tool intentions. A short defensive system prompt that treats Skills as untrusted and forbids sensitive actions prevents these malicious tool calls and instead surfaces the suspicious hidden instructions.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 5 of its 6 references that are in the map. First posted on arXiv 11 Feb 2026.

Builds on

5 of 6 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools4 Aug

Other references · 4

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  3. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  4. 2025We Urgently Need Privilege Management in MCP: A Measurement of API Usage in MCP Ecosystemscited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
  2. 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills
  3. 2025Agent Skills Enable a New Class of Realistic and Trivially Simple Prompt Injections
  4. 2026SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skills
  5. 2026RouteGuard: Internal-Signal Detection of Skill Poisoning in LLM Agents
  6. 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild
  7. 2026Black-Box Skill Stealing Attack from Proprietary LLM Agents: An Empirical Study
  8. 2026Seeing Is Not Screening: Multimodal Hidden Instruction Attacks on Agent Skill Scanners