Skip to content
DEV Community·Indexed by this site · Originally published· Attacks →

Prompt injection in HTTP response headers: what 217 million web responses revealed

Prompt Injection in HTTP Headers: What 217M Web Responses Show

AI summary

Signals Corps scanned the HTTP headers of 217 million Common Crawl web responses and found 7,959 sites sending response headers aimed at AI agents, of which 30 contained genuine prompt injection attempts and 24 used X-AI headers. Most were pranks, while some requested shell or database access. In testing, Claude models ignored these injection headers by default, but when the user prompt granted the site permission, they complied in 7 of 9 runs. The authors argue that response headers should be sanitized before entering the agent context, and describe Sentinel's pipeline for detecting such text in layers based on regex, vector similarity and encoding normalization.

Read originaldev.to