RAG Security

A guided, one-scene-at-a-time walkthrough

01 / 15
RAG SECURITYdocumentSHA-256hashsignedmanifestVerify source + hash before retrieval.Record who • when • where • approval10 SOURCE INTEGRITY & PROVENANCEApply identity and permissions before retrieval.Frame11 VECTOR INDEX INTEGRITYauthorizedingestionvectorindexchecksumssnapshotRestrict writes • log changes • detect driftFrame12 CACHE ISOLATIONuser Auser BA cacheB cacheScope by user • tenant • permission • TTLFrameRAGrequesttrace +logsanomalydetectionincidentresponseCorrelate • alert • investigate • quarantine13 MONITORING & INCIDENT RESPONSEFrame14 INGESTION SUPPLY CHAINDriveSharePointWeb sourcevalidate +scanRAGcorpusVet connectors • least privilege • stage before ingestFrame15 FAIL-CLOSED DESIGNretrievalaccesscheckanswerBLOCKBLOCKNo unsafe fallback to model-only answers.Frame01 RAG PIPELINEyour data(doc, pdf)vector DB(embeddings)LLM(context)generatedansweruser queryDocuments are indexed once; queries retrieve relevant context.rag-pipeline02 ATTACK SURFACEINGESTEMBEDSTORERETRIEVELLMpoisoned docsquery abuseunsafe outputattack surface03 DOCUMENT POISONINGtrusteddocumentpoisoneddocumentvector DBLLMMalicious content enters the knowledge base.document poisoning04 EMBEDDING MANIPULATIONLegitimate documentsAdversarial documentA malicious chunk can look close in vector spacewithout being trustworthy.Frame05 RETRIEVED PROMPT INJECTIONretrieved chunk“ignore previousinstructions…”user prompt“summarize this”LLMRetrieved content is untrusted input — not system instruction.FrameLimit tools, validate arguments, and apply least privilege.RAGagentread datadelete filesrun command06 UNSAFE TOOL INVOCATIONFrame07 ACCESS CONTROLtenant Atenant BA data onlyB data onlyFrame08 OUTPUT VALIDATIONpolicy checkssafe answerCheck sensitive data, policy, and output format.LLM responseFrametrustedsourcesisolatedretrievalprotectedcontextvalidatedanswerMonitor • log • fail closed09 SECURE RAGFrame

Use Previous / Next to step through all 15 panels, or Auto-play for a hands-free presentation. The original Excalidraw SVG artwork is embedded in this page.