Testing for System Prompt Leakage

Extract and defend system prompts plus embedded secrets and routing logic.

100 stars 27 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add adriannoes/awesome-agentic-ai --skill testing-for-system-prompt-leakage
Manual install
git 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-leakage

Personal 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.
Read the full skill on GitHub

Details

Skill name
testing-for-system-prompt-leakage
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

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.