Poisoned Web Content: Hidden Instructions in Browsed Pages

Attackers embed malicious commands within public web pages using invisible text (same color as background), hidden HTML comments, or Unicode characters, which LLMs then process when browsing, leading to unintended actions.

The top 3

  1. First Public Demos: Indirect Prompt Injection via Web: Early academic work by Greshake et al. in February 2023 described indirect prompt injection, followed by Microsoft's 2023 demonstration where hidden web instructions caused Bing Chat to leak data. Unit 42 also observed the first large-scale attacks in the wild by March 2026.
  2. Top 3 Covert Embedding Techniques for Indirect Prompt Injections: Attackers commonly hide malicious prompts in web content using invisible text (e.g., zero-width characters or CSS concealment), within HTML comments, or embedded in image metadata like EXIF data, making them imperceptible to human users. [2, 5, 11, 15, 18, 19, 22, 23]

Sources

Open the full topic