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

PDF Text-Layer and Attachment Injection

Indirect & Retrieval · L2/L4 · RAG + memory

Documents carry invisible text layers, form fields, and embedded objects that survive ingest pipelines. A scanned PDF looks clean to the OCR pass and hides the directive in the object layer.

01Control Architecture

How it is defended

Attachment ingest is a pipeline of its own: all layers parsed, all objects enumerated, directive detection on every text plane. Ingest provenance is stamped so a poisoned document is traceable to the exact byte.

02Why It Breaks Naive Defenses

Documents carry invisible text layers, form fields, and embedded objects that survive ingest pipelines. A scanned PDF looks clean to the OCR pass and hides the directive in the object layer. Attachment ingest is a pipeline of its own: all layers parsed, all objects enumerated, directive detection on every text plane. Ingest provenance is stamped so a poisoned document is traceable to the exact byte.

👤 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 do attachments like PDFs inject into RAG systems?

Via the layers you don't parse: invisible text, form fields, embedded objects. A full-layer parser plus directive detection on every plane, with provenance stamped at ingest, is what makes document ingest a controlled surface.

How do you defend against pdf text-layer and attachment injection?

Attachment ingest is a pipeline of its own: all layers parsed, all objects enumerated, directive detection on every text plane. Ingest provenance is stamped so a poisoned document is traceable to the exact byte.

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