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

Prompt injection via documents: 12 poisoned chunks, 3 regex detectors, only 1 of 8 new attacks detected

Prompt injection through documents: 12 poisoned chunks, 3 regex detectors, 1 of 8 new attacks caught

AI summary

The authors used 12 poisoned chunks to test 3 regex detectors at intercepting prompt injection in RAG documents, and against 8 new payloads only 1 was detected. Tuned to the samples, D2 and D3 detected 12/12 and 10/12, while D1 detected only 1/12; on 4,643 FastAPI documentation segments the false positive rate was at most 0.09%. The authors caution that regex scanning can only serve as a cheap tripwire, that scanning is needed both at ingestion and in the assembled context, and that the tools and external links that injection can drive should be restricted.

Read originalrecallrun.dev