AI Security Atlas › All entries › RAG & Knowledge Retrieval Security

ThreatCritical severity

Indirect Prompt Injection via Documents

Malicious instructions embedded in ingested files or web pages override system intent when retrieved into context.

Open in the interactive atlas →

Impact

Retrieved content becomes an untrusted instruction channel that can exfiltrate data or redirect agent tools.

Why this severity

Impact High × Likelihood High = Critical

Impact high: retrieved text redirects tools and leaks data. Likelihood high: crafted links and documents are used in the wild to manipulate assistants (2026 incident) and need no access beyond publishing content.

Impact High: Code execution, credential compromise, exposure of regulated or confidential data, irreversible actions, or system-wide failure.
Likelihood High: At least one documented real-world incident, and the attack needs no access beyond what the system exposes to ordinary users or content (publishing to a public registry counts as ordinary).

Method: OWASP Risk Rating Methodology

Evidence

Related

Exploits

Leads to

Mitigated by

Remediation

  1. Treat all retrieved text as untrusted data, never as system instructions.
  2. Strip or quarantine instruction-like spans during pre-ingestion.
  3. Use dual-LLM patterns: one model extracts facts, another answers without tool rights.

How to verify

Pattern

const safe = sanitizeRetrieved(chunks); // data channel only
answer = llm.chat({ system: POLICY, data: safe });

Framework mapping

OWASP Top 10 for LLM Applications 2025

OWASP Top 10 for Agentic Applications 2026

MITRE ATLAS

NIST AI RMF 1.0