APEX 100 · AI-Driven Cybersecurity · #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, embedded objects that survive ingest pipelines. A scanned PDF looks clean to OCR and hides directives in the object layer.

01Control Architecture

How it is defended

Attachment ingest is its own pipeline: all layers parsed, all objects enumerated, directive detection on every text plane. Provenance stamped so a poisoned document is traceable.

02Why It Breaks Naive Defenses

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

👤 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 PDFs inject into RAG?

Via layers you don't parse: invisible text, form fields, embedded objects. Full-layer parser plus directive detection on every plane, with provenance at ingest.

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

Attachment ingest is its own pipeline: all layers parsed, all objects enumerated, directive detection on every text plane. Provenance stamped so a poisoned document is traceable.

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