QRGuardian scans and detects malicious QR codes, protecting users from phishing, malware, and suspicious links. It’s a simple, fast tool for safer QR code use.
- Decode QR codes from images
- Detect if the QR contains text, a URL, or something else
- Run rule-based risk scoring for suspicious links
- (Optional) AI-powered risk explanations
- Easy to extend and customize
qr-risk-analyzer/ ├── app/ │ ├── init.py │ ├── main.py # Entry point (Streamlit or Flask) │ ├── qr_decoder.py # QR decoding logic │ ├── classifier.py # Classify QR content │ ├── risk_engine.py # Rule-based risk scoring │ ├── ai_explainer.py # AI explanation (optional) │ └── utils.py # Helper functions │ ├── static/ # Static files (for Flask, optional) ├── templates/ # HTML templates (for Flask, optional) │ ├── test_qrs/ # Sample test QR images ├── tests/ # Unit tests (e.g., test_qr_decoder.py) │ ├── .env # API keys, secrets (ignored by git) ├── .gitignore ├── requirements.txt # Dependencies ├── run.py # Launcher script └── README.md
-
Clone this repository:
git clone https://github.com/yoU-Jay/QRGuardian.git cd QRGuardian -
Create a virtual environment: python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies: pip install -r requirements.txt
-
Run the application: python run.py