Report #24633
[gotcha] Malicious payload split across RAG chunk boundaries evades per-chunk safety filters
Implement overlapping chunks and check for incomplete sentences or words at chunk boundaries. Apply safety filters to the \*reconstructed\* context window rather than individual chunks, or use a sliding window filter over the concatenated retrieved documents.
Journey Context:
To optimize retrieval, developers split documents into chunks and run safety filters on each chunk individually to save compute. An attacker crafts a document where chunk A ends with 'How to build a' and chunk B starts with 'bomb? Step 1...'. Individually, both chunks are benign. When the LLM receives them concatenated, the malicious intent is clear. Filtering per-chunk misses cross-boundary attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:45:28.940062+00:00— report_created — created