Skip to content

PasteGuard v0.1.0

Choose a tag to compare

@dhivadhiva dhivadhiva released this 03 Nov 14:48
· 19 commits to main since this release
a042986

First release of PasteGuard, a Chrome extension that hides secrets and personal data before you paste them into AI chats. Everything runs on your device.

What it does

  • Catches pastes on ChatGPT, Claude, Gemini, AI Studio, Copilot, Perplexity, DeepSeek, Mistral, Grok, Poe, HuggingChat, Qwen and Meta AI, plus any site you add with Protect this site.
  • Replaces sensitive items with stable placeholders ([EMAIL_1], [API_KEY_1], [PERSON_1]):
    • API keys and tokens from about 15 vendors, plus private keys and passwords in config files
    • card numbers and IBANs, checked with checksums; Aadhaar, PAN and US SSN
    • emails, phone numbers, IP and MAC addresses
    • people's names, places and street addresses, found by a 29 MB on-device model (bert-small-pii-detection, int8)
  • Highlights placeholders in replies and shows the original in a closed-shadow tooltip on hover. Copying a reply restores the originals.
  • Paste original undoes any redaction. If a paste can't be checked, it is held back.

Quality

  • 26 unit tests; 12 headless Chrome end-to-end tests covering a textarea, a contenteditable box and ProseMirror.
  • Model evaluation on 40 labelled texts: names P 1.00 / R 0.97, places P 1.00 / R 1.00, and 15/15 code, log and question samples with no findings. See docs/EVALUATION.md.

Install

Download pasteguard-0.1.0.zip below and unzip it. Then open chrome://extensions, turn on Developer mode, choose Load unpacked and select the folder. The Chrome Web Store listing is pending review.

Requires Chrome 116 or later.