Skip to content

azyzex/PromptProtect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromptProtect

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.

MVP in this repo

  • 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

Quick Start

  1. Install dependencies:
npm install
  1. Build the extension:
npm run build
  1. Load it in Chrome:
  • Open chrome://extensions
  • Enable Developer mode
  • Click Load unpacked
  • Select the repo's dist folder
  1. Open the PromptProtect popup:
  • Click the PromptProtect toolbar action in Chrome

Git Setup

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 main

Project Structure

  • src/content: composer detection, paste and attachment scanning, inline warnings, review modal
  • src/background: storage and local telemetry coordination
  • src/popup: popup console, analytics, diagnostics, rule packs, and test lab
  • src/shared: detection engine, redaction helpers, site definitions, shared types
  • static: manifest.json and popup HTML/CSS

Notes

  • 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.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors