PromptProtect is a Chrome extension that helps stop accidental leaks to web-based LLM chat tools. It watches supported chat composers locally, detects likely secrets or basic PII before send, and forces a quick review step with redaction.
- Small default site scope: ChatGPT, Claude, and Gemini web UIs
- Local pattern detection for:
- OpenAI-style keys
- AWS access keys
- GitHub tokens
- JWTs
- PEM private key blocks
- Structured secret assignments, bearer tokens, and connection strings
- Emails and phone numbers
- On-paste and on-send interception with inline warnings, highlighted matches, and multiple rewrite modes
- Attachment scanning for common text file types before send
- Local-only event logs and analytics that store counts and rule labels, not raw sensitive text
- Premium popup dashboard for per-site profiles, allowlists, rule packs, diagnostics, and a prompt test lab
- Install dependencies:
npm install- Build the extension:
npm run build- Load it in Chrome:
- Open
chrome://extensions - Enable
Developer mode - Click
Load unpacked - Select the repo's
distfolder
- Open the PromptProtect popup:
- Click the PromptProtect toolbar action in Chrome
This workspace is initialized on the main branch and wired to:
https://github.com/azyzex/PromptProtect.git
If you want to publish the local work once your Git identity is configured:
git add .
git commit -m "Initial PromptProtect MVP"
git push -u origin mainsrc/content: composer detection, paste and attachment scanning, inline warnings, review modalsrc/background: storage and local telemetry coordinationsrc/popup: popup console, analytics, diagnostics, rule packs, and test labsrc/shared: detection engine, redaction helpers, site definitions, shared typesstatic:manifest.jsonand popup HTML/CSS
- PromptProtect only runs on a small manifest allowlist to keep permissions tight.
- Custom rules are local regex patterns stored in extension storage.
- The current allowlist UI lets you toggle supported hosts on and off. Expanding beyond those hosts requires updating the manifest host permissions.