PrivGuard - AI Personal Privacy Risk Analyzer
PrivGuard is a mobile-first, privacy-focused app that helps users detect oversharing risks in their digital content. Whether it's social media posts, images, or bios, PrivGuard uses custom on-device AI to analyze content and flag potential privacy threats, ensuring your data never leaves your phone or trusted backend.
Real-World Use Case
Over 90% of digital threats begin with publicly available data.
PrivGuard educates and protects users by identifying:
- Posts that reveal personal details
- Real-time travel or location risks
- Information linked to password recovery
- IDs, documents, tickets captured in photos
Core Features
Upload & Local Scan
- Capture or upload media/text posts
- Securly save to local storage
- Long-press to run on-device scan
AI Privacy Analysis
- Text classifier: NER-based risk labeling with DistilBERT
- Risk Score: 0-100 with Low, Medium, High tag
- Smart Tips: Context-aware advice (e.g., mask phone numbers, generalise location)
- Image Scanning: Object detection to extract and detect any risky details from image post (AVAILABLE IN FUTURE VERSIONS)
Social Profile Risk Scanner (AVAILABLE IN FUTURE VERSIONS)
- Input Instagram/Twitter handle + email
- Uses
Instaloader/snscrapeto fetch data - NLP analysis of bio, captions, hashtags
- Auto-rescan every 30 days with push alerts
App Architecture/Tech Stack
| Phase | Feature | Stack |
|---|---|---|
| 1 | Upload UI + Gallery | Flutter, path_provider, image_picker |
| 2 | AI Risk Detection | DistilBERT, tflite_flutter,HuggingFace Transformers |
| 3 | Security | flutter_secure_storage, encrypt |
Custom AI Module
- Fine-tuned DistilBERT to detect Personally Identifiable Information present in given text
- Detects terms like:
- Names
- Dates
- Locations
- Phone numbers
- Credit card details
- Date of birth and other personal details
App Screens (UI Flow)
-
Gallery Screen
- Grid view of all uploaded content
- Scan option on long-press
-
Scan Result Screen
- Risk tag + reason:
"Passport detected"or"Location inferred" - Actionable suggestions
- Risk tag + reason:
-
Social Media Scanner
- Input handle + email
- View/email detailed report
- Enable auto-scan mode
Data Privacy & Ethics
- All analysis is performed locally
- No 3rd-party cloud APIs (e.g., Google Vision, Gemini)
- All posts, media files stored securly in local storage
Colab Notebook for AI Model
Getting Started
To Run the application locally-
- This repo uses Git LFS to store large model files. Before cloning, install Git LFS
git lfs install. - Clone the repository
git clone https://github.com/Shaurya-Saini/Priv_Guard.git
cd Priv_Guard
git lfs pull - Create project
flutter create . - Run the application using an emulator from Android studio
flutter run
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.