Repository files navigation # IDIFFS — Integrated Digital Intelligence & Forensic Security System
## Cyber Crime Intelligence Platform v3.2.1-GOV
### 🚀 HOW TO RUN
**Requirements:**
- Python 3.8 or higher
- pip (Python package manager)
**Step 1 — Install dependencies:**
```bash
pip install flask numpy scikit-learn
```
**Step 2 — Run the application:**
```bash
python run.py
```
**Step 3 — Open your browser:**
```
http://localhost:5000
```
---
### 📦 PROJECT STRUCTURE
```
idiffs/
├── app.py ← Flask backend (all API routes)
├── run.py ← Launcher (run this to start)
├── models/
│ └── dl_engine.py ← Deep learning & ML engine
├── templates/
│ └── index.html ← Full frontend UI
├── logs/ ← Auto-created log files
└── uploads/ ← Auto-created upload folder
```
---
### 🔧 MODULES
| Module | Description |
|--------|-------------|
| URL Threat Analyzer | 20-feature ML model — detects phishing, spoofing, bank impersonation |
| Scam & Phishing Detector | NLP analysis of SMS/email/WhatsApp messages for fraud signals |
| Transaction Anomaly Engine | Z-score + IQR + pattern analysis on bank CSV statements |
| Identity Vault | AES-256 encrypted document store (server stores only hashes) |
| DigiLocker Integration | Real-time OAuth via mobile number OR email — OTP verified |
| AI Forensics Assistant | Expert system for cyber crime guidance |
| Voice Assistant | Speech recognition + text-to-speech |
| Visual Intelligence | Live charts of threat distributions |
| Report Crime | Draft complaints + direct links to cybercrime.gov.in |
---
### 📁 DIGILOCKER INTEGRATION
The DigiLocker module supports access via:
- **Mobile Number** (10-digit Indian mobile, starting 6-9)
- **Email Address** (any valid email)
Flow: Enter identifier → Receive OTP → Verify → Documents synced
**In demo mode:** The OTP is shown on screen for testing.
**In production:** Replace `_simulate_digilocker_documents()` in `app.py` with the real DigiLocker OAuth 2.0 API call:
```
POST https://api.digitallocker.gov.in/public/oauth2/1/token
```
---
### 🚨 EMERGENCY HELPLINES
- **1930** — National Cyber Crime Helpline (24×7)
- **100** — Police
- **112** — National Emergency
- **1091** — Women Helpline
- **14446** — RBI Fraud Helpline
---
### 🔗 FILE COMPLAINTS
- Online: https://cybercrime.gov.in
- CERT-In: https://cert-in.org.in
- RBI: https://sachet.rbi.org.in
---
### ⚙️ PRODUCTION DEPLOYMENT
For real government deployment:
1. Set `app.secret_key` to a secure random value
2. Run behind NGINX with HTTPS (Let's Encrypt)
3. Replace DigiLocker mock with real OAuth 2.0 API
4. Add PostgreSQL for persistent event storage
5. Enable `flask-cors` for cross-origin access
6. Set up gunicorn: `gunicorn -w 4 app:app`
# INTEGRATED-FINANCIAL-AND-FORENCIS-SECURITY-SYSTEM
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.