APEX 100 · AI Security Red Teaming · #025 · Indirect & Retrieval — L2/L4 · RAG + memory

RAG Document Poisoning at Ingest

Indirect & Retrieval · L2/L4 · RAG + memory

One poisoned document in the corpus is a standing injection: every query that retrieves it carries the payload. The poison persists in reindexing that doesn't re-scan, and it rides on popularity — the best-retrieved doc is the best weapon.

01Control Architecture

How it is defended

Ingest-time scanning plus retrieval-time detection: the document is checked on entry and the retrieved chunk is checked at use, so poison that slips one stage is caught at the other. Both checks log provenance.

02Why It Breaks Naive Defenses

One poisoned document in the corpus is a standing injection: every query that retrieves it carries the payload. The poison persists in reindexing that doesn't re-scan, and it rides on popularity — the best-retrieved doc is the best weapon. Ingest-time scanning plus retrieval-time detection: the document is checked on entry and the retrieved chunk is checked at use, so poison that slips one stage is caught at the other. Both checks log provenance.

👤 Dr. Deepanjan Saha · Chief AI Security Red Team Principal & Chief Cybersecurity Architect (CAISO) · 15+ yrs · 47+ CVEs · 200+ pentests · 12 patents
📞 +91 98317 43870 · 💬 WhatsApp · ✉️ core.deepanjan@gmail.com · 🔗 LinkedIn: DRDEEPANJANSAHA · 🌐 drdeepanjansaha.github.io

Book the engagement that kills this, measured

Dr. Deepanjan Saha — Chief AI Security Red Team Principal & Chief Cybersecurity Architect. 15+ years · 47+ CVEs · 200+ pentests · 12 patents. Delivered as the release gate — a residual-risk number with a trend line, not a PDF.

03FAQ

How does RAG document poisoning work?

A crafted document that scores highly for popular queries carries an instruction payload; retrieval is execution. Ingest scanning and per-retrieval detection, with provenance on both, is the standing defense.

How do you defend against rag document poisoning at ingest?

Ingest-time scanning plus retrieval-time detection: the document is checked on entry and the retrieved chunk is checked at use, so poison that slips one stage is caught at the other. Both checks log provenance.

DR. DEEPANJAN SAHA · CHIEF AI SECURITY RED TEAM PRINCIPAL & CHIEF CYBERSECURITY ARCHITECT · AI SECURITY RED TEAM · EST. 2010 · 47+ CVEs · 200+ PENTESTS · 12 PATENTS