Testing Prompt Injection in RAG Pipelines
Probe RAG applications for prompt injection via poisoned retrieved context and embedding manipulation.
Install
npx skills add adriannoes/awesome-agentic-ai --skill testing-prompt-injection-in-rag-pipelinesgit clone --depth 1 https://github.com/adriannoes/awesome-agentic-ai.git /tmp/awesome-agentic-ai
mkdir -p ~/.claude/skills
cp -r /tmp/awesome-agentic-ai/cursor-claude-codex/skills/anthropic-cybersecurity-skills/skills/testing-prompt-injection-in-rag-pipelines ~/.claude/skills/testing-prompt-injection-in-rag-pipelinesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Testing Prompt Injection in RAG Pipelines > **Authorized-use-only notice:** This skill describes offensive testing techniques against Retrieval-Augmented Generation (RAG) systems. Run these probes only against applications you own or have explicit written authorization to test. Adversarial inputs that exfiltrate documents or hijack a model can cause real harm to production systems and downstream users. Always test in a non-production environment first and follow your engagement rules of engagement (RoE). ## Overview Retrieval-Augmented Generation (RAG) pipelines combine a large language model (LLM) with a retrieval layer (a vector store such as FAISS, Chroma, Pinecone, Milvus, or pgvector) so the model can answer questions over private documents. The retrieval layer is an *injection surface*: any text that the retriever returns is concatenated into the model's context window and is treated by the model as authoritative. An attacker who can influence the document corpus (a poisoned PDF, a malicious wiki edit, a planted support ticket, a crafted email) can plant instructions that the model will follow when that chunk is retrieved. This is **indirect prompt injection** delivered through the retrieval channel, and it maps to MITRE ATLAS **AML.T0051 (LLM Prompt Injection)** and OWASP **LLM01:2025 Prompt Injection**.
Details
- Skill name
testing-prompt-injection-in-rag-pipelines- Repository
- adriannoes/awesome-agentic-ai
- Path
cursor-claude-codex/skills/anthropic-cybersecurity-skills/skills/testing-prompt-injection-in-rag-pipelines/SKILL.md- License
- MIT
- Repo updated
- 2 November 2026
FAQ
What does the Testing Prompt Injection in RAG Pipelines skill do?
Probe RAG applications for prompt injection via poisoned retrieved context and embedding manipulation.
How do I install the Testing Prompt Injection in RAG Pipelines skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add adriannoes/awesome-agentic-ai --skill testing-prompt-injection-in-rag-pipelines. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Testing Prompt Injection in RAG Pipelines popular?
It lives in adriannoes/awesome-agentic-ai, which has 100 GitHub stars and 27 forks, and is included in 2 curated skill lists.
Related skills
Browserstack
100adriannoes/awesome-agentic-ai
Run tests on BrowserStack. Use when user mentions "browserstack", "cross-browser", "cloud testing", "browser matrix", "test on safari", "test on firefox", or "browser compatibility".
Coverage
100adriannoes/awesome-agentic-ai
Analyze test coverage gaps. Use when user says "test coverage", "what's not tested", "coverage gaps", "missing tests", "coverage report", or "what needs testing".
Fix
100adriannoes/awesome-agentic-ai
Fix failing or flaky Playwright tests. Use when user says "fix test", "flaky test", "test failing", "debug test", "test broken", "test passes sometimes", or "intermittent failure".
Tool Reel
49kelano86/tool-reel-system
Tool Reel — write short-form AI-tool-discovery scripts (Reels/Shorts, 20-55s) using a formula reverse-engineered from 16 top-performing reels with view data. Top-of-funnel awareness plays with a comment-gate CTA. Use when scripting a reel that reviews, lists, or demos an AI tool, plugin, skill, or free resource.
Testing for System Prompt Leakage
100adriannoes/awesome-agentic-ai
Extract and defend system prompts plus embedded secrets and routing logic.
Vps Server Management
100adriannoes/awesome-agentic-ai
Use when David wants to manage his VPS servers and the AI agents running inside them — connecting, deploying, monitoring, restarting, and operating remote hosts and their agents. Triggers on VPS, server management, remote host, SSH into server, manage my servers, agents on the server.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.