Skip to content
Back to skills

Rag Security Review

ASecurity

Assess a Retrieval-Augmented Generation application end-to-end — ingestion, embedding, vector store, retrieval, prompt assembly, and generation — for poisoning, data leakage, isolation, and citation-integrity issues. Use when reviewing the security of any RAG / knowledge-base-backed LLM feature.

  • 8 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 19, 2026
ai-agentsrustgosecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add jassics/awesome-claude-security --skill rag-security-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rag Security Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rag Security Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jassics-rag-security-review/badge)](https://www.skillsdirectory.com/skills/jassics-rag-security-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rag-security-review
description: >-
  Assess a Retrieval-Augmented Generation application end-to-end — ingestion,
  embedding, vector store, retrieval, prompt assembly, and generation — for
  poisoning, data leakage, isolation, and citation-integrity issues. Use when
  reviewing the security of any RAG / knowledge-base-backed LLM feature.
---

# Goal

A structured RAG security assessment that walks each pipeline stage, names the
risks present, and maps mitigations — bridging into the OWASP LLM Top 10
(especially LLM04 poisoning and LLM08 vector/embedding weaknesses).

# Pipeline stages to assess (see `reference.md` for checks per stage)

1. **Ingestion** — what content enters the corpus, from where, with what trust and
   provenance? Can an attacker get content in (user uploads, crawled pages, tickets,
   emails)?
2. **Embedding** — model used, where it runs, and whether embeddings can be
   inverted to recover sensitive source text.
3. **Vector store** — partitioning per tenant/user, access controls on retrieval,
   metadata filtering, and write access.
4. **Retrieval** — does retrieval enforce the requester's authorization? Can it
   return documents the user shouldn't see? Relevance vs. confidentiality.
5. **Prompt assembly** — how retrieved (untrusted) content is combined with the
   system prompt and user query; is content marked as data vs. instructions?
6. **Generation & output** — citation/grounding integrity, sensitive-data echo,
   and downstream output handling.

# Steps

1. Map the pipeline and data sources; identify every place untrusted content
   enters or is retrieved. A quick `llm-security:ai-threat-model` pass helps.
2. Walk each stage using `reference.md`; record finding · severity · evidence ·
   mitigation. Substantiate, don't assert: use `retrieval-poisoning-test` and
   `vector-store-isolation-test` for the testable claims.
3. Rank findings (`threat-modeling:risk-rank`) and summarize top risks.

# Output

A per-stage findings table plus a ranked top-risks list. Route confirmed issues
through `security-reporting:finding`.

# Notes

The decisive RAG question: *can untrusted retrieved content influence trusted
behavior, and can a user retrieve data they're not authorized to see?* Access
control on retrieval and instruction/data separation in the prompt are the two
controls most often missing.

Files in this skill

  • SKILL.md2.3 KB
  • reference.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.