Testing for System Prompt Leakage
Extract and defend system prompts plus embedded secrets and routing logic.
Install
npx skills add adriannoes/awesome-agentic-ai --skill testing-for-system-prompt-leakagegit 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-for-system-prompt-leakage ~/.claude/skills/testing-for-system-prompt-leakagePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Testing for System Prompt Leakage > **Authorized use only:** The extraction payloads below are for assessing LLM applications you own or have written authorization to test. Extracting prompts, secrets, or routing logic from systems you are not authorized to test may be unlawful. ## Overview A system prompt (a.k.a. developer message, preamble, or instructions) steers an LLM application's behavior. OWASP **LLM07:2025 System Prompt Leakage** addresses the risk that these prompts contain sensitive material that was never meant to be exposed — API keys, database connection strings, internal role/permission logic, model-routing rules, content policies, and tool definitions. Two principles frame this skill: 1. **The system prompt must never be treated as a secret or used as a security control.** If leaking it breaks your security model, the security model is wrong. The real findings during a leakage test are the *secrets and logic* embedded in the prompt that should have been enforced server-side. 2. **System prompts are extractable.** Through direct requests, instruction-override (jailbreak) framing, translation/encoding tricks, completion attacks, and few-shot replay, adversaries can reliably recover preambles.
Details
- Skill name
testing-for-system-prompt-leakage- Repository
- adriannoes/awesome-agentic-ai
- Path
cursor-claude-codex/skills/anthropic-cybersecurity-skills/skills/testing-for-system-prompt-leakage/SKILL.md- License
- MIT
- Repo updated
- 2 November 2026
FAQ
What does the Testing for System Prompt Leakage skill do?
Extract and defend system prompts plus embedded secrets and routing logic.
How do I install the Testing for System Prompt Leakage skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add adriannoes/awesome-agentic-ai --skill testing-for-system-prompt-leakage. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Testing for System Prompt Leakage 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".
Testing Prompt Injection in RAG Pipelines
100adriannoes/awesome-agentic-ai
Probe RAG applications for prompt injection via poisoned retrieved context and embedding manipulation.
Securing Agentic AI Tool Invocation
100adriannoes/awesome-agentic-ai
Apply least-privilege tool allowlisting, identity binding, and human-in-the-loop controls for agent tool calls.
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.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.