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

GuardrailFixes critical risks

Pre-Ingestion Scanning Pipeline

Documents are scanned for injection markers, malware, and policy violations before embeddings are written.

Open in the interactive atlas →

Impact

Stops poisoned or instruction-laden content from entering the retrieval corpus.

Why this severity

Guardrails take the highest severity of the risks they mitigate: Indirect Prompt Injection via Documents (Critical), Vector DB Poisoning (High), Lack of Context Sanitization (High).

Method: OWASP Risk Rating Methodology

Related

Mitigates

Needed by

Remediation

  1. Run static detectors for instruction phrases and hidden text layers.
  2. Quarantine failures into a review queue instead of indexing.
  3. Re-scan on every document version bump.

How to verify

Pattern

const report = await scan(doc);
if (report.risk >= 'HIGH') return quarantine(doc, report);

Framework mapping

OWASP Top 10 for LLM Applications 2025

MITRE ATLAS

NIST AI RMF 1.0