A Chrome extension that detects prompt injection attacks in documents uploaded to ChatGPT using local AI analysis.
demo-upload-guard.mov
- Real-time Scanning - Automatically scans document uploads to ChatGPT
- Local AI Analysis - Private, in-browser threat detection using WebLLM
- Smart Detection - Identifies prompt injections, jailbreaks, social engineering, and data extraction attempts
- Privacy-focused - All processing happens locally in your browser
-
Clone and build:
git clone https://github.com/netanelavr/chatgpt-upload-guard.git cd chatgpt-upload-guard npm install npm run build -
Load in Chrome:
- Go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the project folder
- Go to
- Navigate to ChatGPT
- Upload a document (
.txt,.docx,.md, etc.) - The extension automatically scans for threats
- Review results and choose to block or proceed with upload
- Documents:
.txt,.docx,.pdf,.md,.csv - Code:
.js,.ts,.py,.java,.cpp,.html,.css, and 30+ more - Config:
.json,.yaml,.xml,.env
- 100% Local: All analysis happens in your browser
- No Data Sent: Files never leave your device
- Open Source: Full code available for audit
npm install # Install dependencies
npm run dev # Development build with watch
npm run build # Production build- Requires WebGPU support
- Initial model download (~1-2GB) on first use
- Only works on ChatGPT websites
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE for details.
Stay safe online! Always be cautious when uploading sensitive documents to AI services.