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

Indirect Injection via Web Pages

Indirect & Retrieval · L2/L4 · RAG + memory

An agent that browses the web reads attacker-controlled HTML, comments, and rendered text. One poisoned page in a search result is standing instructions to the agent that fetched it.

01Control Architecture

How it is defended

Everything from the web enters at the data tier: HTML is stripped, comments are flagged, and directive detection runs on the payload before it can inform an answer, let alone drive an action.

02Why It Breaks Naive Defenses

An agent that browses the web reads attacker-controlled HTML, comments, and rendered text. One poisoned page in a search result is standing instructions to the agent that fetched it. Everything from the web enters at the data tier: HTML is stripped, comments are flagged, and directive detection runs on the payload before it can inform an answer, let alone drive an action.

👤 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 you stop an agent from executing instructions found on a web page?

You don't stop it reading the page — you demote the page. Web content enters the context at the untrusted data tier where directives are detected and stripped; it can cite the page, it cannot command the agent.

How do you defend against indirect injection via web pages?

Everything from the web enters at the data tier: HTML is stripped, comments are flagged, and directive detection runs on the payload before it can inform an answer, let alone drive an action.

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