AI Safety: Hidden Prompt Injection and Agent Page Readers, Measured Comparison
AI Security: Hidden Prompt Injection vs Agent Page Readers, Measured
Lamplit Labs built 216 web pages each hiding one injection, covering 18 hiding techniques, and tested with eight page readers whether hidden text enters the model context, finding that all common readers pass hidden text to the model. Raw HTML delivery was 216/216, html2text 180/216 (83%), BeautifulSoup's get_text() 156/216 (72%), the Chromium accessibility tree 120/216 (56%), innerText 96/216 (44%), with the difference only in which hiding techniques each one missed. The visible-text filter proposed by the authors reduced delivery to 0/216 on the main test set, with a median time of 0.8 ms, retaining all 2,667 body sentences, but after freezing the filter, 17 of 72 newly written held-out pages still got through. The authors note that neither the filter nor OCR can stop plaintext-visible injections, and that the test only counts whether text reaches the model context, not whether the model obeys the injection.