Prompt Leak Scanner
PII and secret leak scanner for LLM prompts: catches API keys, TC Kimlik No, cards and IBANs in outbound prompts before they leave your app; MCP server and reverse proxy

@guardbee/mcp-prompt-leak-scanner protects the runtime prompt leaving your app, not secrets sitting in the repo. Support tickets, debug chats, or raw user input pasted into an LLM can leak API keys, national IDs, cards, or IBANs.
What does it do?
13 patterns across 4 categories: credentials, financial-pii (Luhn/IBAN checksums), national-id (TC Kimlik checksum), contact-pii. Chat-body aware for OpenAI/Anthropic messages. A live reverse proxy in monitor/redact/block modes inspects only the outbound request; SSE responses pass through untouched.
Who is it for?
- Product teams that forward user content into LLMs
- Organizations needing KVKK/GDPR-minded prompt DLP
- DevSecOps scanning prompt fixtures in CI
What it is not
- Source-code secret scanning (use Secret Scanner)
- General-purpose NER for free-text names/addresses
- Parsing streaming response bodies
Features
| Feature | Description |
|---|---|
| Checksum-validated PII | TC Kimlik, Luhn cards, IBAN mod-97 |
| Chat-body aware | messages[].content + system fields |
| Proxy: monitor/redact/block | Point baseURL at the proxy |
| Masked findings | Never logs the real value (sk-…wx) |
| SARIF 2.1.0 | CI gates |
MCP tools
| Tool | Description |
|---|---|
scan_text | Scan raw text |
scan_messages | Scan an OpenAI/Anthropic chat request body |
scan_file / scan_directory | Scan prompt logs/fixtures |
list_patterns | List supported patterns |
Install with npm
Global install (handy for Claude Desktop / Cursor):
<code class="language-bash">npm install -g @guardbee/mcp-prompt-leak-scanner</code>or via npx (recommended with -y in config):
<code class="language-bash">npx -y @guardbee/mcp-prompt-leak-scanner</code>npm: @guardbee/mcp-prompt-leak-scanner
<code class="language-bash">npx @guardbee/mcp-prompt-leak-scanner proxy --upstream=https://api.openai.com --port=8788 --mode=redact</code>— set your app baseURL to http://localhost:8788
<code class="language-bash">scan ./prompt-fixtures --fail-on=high --format=sarif</code>Claude Desktop configuration
Config file paths:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Merge this block, then restart Claude Desktop:
<code class="language-json">{
"mcpServers": {
"guardbee-prompt-leak-scanner": {
"command": "npx",
"args": [
"-y",
"@guardbee/mcp-prompt-leak-scanner"
]
}
}
}</code>Cursor and other MCP clients
In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.
Example prompts in Claude
- “Does this chat request body contain PII or an API key?”
- “Scan the prompt-fixtures folder”
- “Which credential patterns do you support?”
Frequently asked questions
Vs Secret Scanner?+
Secret Scanner scans code/repos; Prompt Leak Scanner scans or proxies runtime outbound prompts.
Does it show the real value?+
No — maskedMatch shows only first/last characters.
Does streaming break?+
No — only the request body is inspected; SSE responses pass through.
More in this category
@guardbee/mcp-llm-redteam
LLM Red Team
MCP server that red-teams a live LLM endpoint or chatbot with canary-based jailbreak/extraction/obfuscation probes to test whether known bypass techniques defeat its guardrails
Learn more@guardbee/mcp-model-scanner
Model Scanner
MCP server that scans ML model files (PyTorch, pickle, joblib, dill, NumPy, safetensors, Keras, ONNX, GGUF, TensorFlow) and Hugging Face repos for supply-chain risks — malicious pickle gadgets, disguised or malformed headers, Keras Lambda-layer RCE, GGUF chat-template injection, and graph ops that touch files
Learn more@guardbee/mcp-prompt-injection-scanner
Prompt Injection Scanner
Prompt injection scanner for documents, web pages and RAG content: instruction overrides, spoofed chat roles, hidden text and data-exfiltration attempts, as a CLI and an MCP server
Learn more@guardbee/mcp-unbounded-consumption-auditor
Unbounded Consumption Auditor
MCP server that scans LLM/agent application code for Unbounded Consumption ("denial of wallet") anti-patterns from OWASP LLM Top 10 2025's LLM10 category: missing output token limits, missing timeouts on hand-rolled LLM HTTP calls, unbounded agent tool-calling/retry loops, explicitly disabled framework safety limits, and MCP tool handlers with no visible rate limiting
Learn more@guardbee/mcp-vector-store-scanner
Vector Store Scanner
MCP server that probes vector-database endpoints (Weaviate, Qdrant, Chroma, Elasticsearch/OpenSearch, Redis, Postgres/pgvector) for unauthenticated exposure of embeddings and RAG data
Learn more
See your security posture in minutes
Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.