Stop money laundering by detecting suspicious account networks in real-time.
CyberFin detects "money mules" - people (often victims) whose bank accounts are used to launder money. It combines:
- Cyber security events (logins, malware, IP changes)
- Financial transactions (amounts, timing, beneficiaries)
- AI analysis to explain suspicious patterns
Real Impact: India identified 19 lakh mule accounts in 2025-2026, with โน21,367 crore lost.
Windows:
- Download from python.org
- Run installer, check "Add Python to PATH"
- Click "Install Now"
Mac: brew install python
Linux: sudo apt install python3 python3-pip
Open terminal in the CyberFin folder:
# Install dependencies (takes 2 minutes)
pip install -r requirements.txt
# Generate sample data (takes 5 seconds)
python data_generator.pystreamlit run dashboard_enhanced.pyOr on Windows, double-click: run_dashboard_enhanced.bat
Dashboard opens automatically at http://localhost:8501
That's it! You're running CyberFin. ๐
1. Dashboard View (Default)
- See all high-risk accounts
- View detected mule rings
- Export compliance reports
2. Account Lookup
- Enter account ID (try
ACC_002747) - See risk score and flags
- Get AI explanation
- Freeze account if needed
3. Ring Analysis
- View detected mule networks
- See all connected accounts
- Get AI explanation of patterns
4. Live Graph
- Visualize account connections
- See network relationships
- Interactive exploration
Analyze an Account:
- Click "Account Lookup" at top
- Enter:
ACC_002747 - Click "Analyze"
- View risk score (0-100)
- Read AI explanation
View a Mule Ring:
- Click "Ring Analysis" at top
- Select any ring from dropdown
- Click "๐ค Generate AI Explanation"
- See how the network operates
Export Report:
- Click "๐ Generate SAR Report" in sidebar
- Click "โฌ๏ธ Download SAR Report"
- Get professional CSV report
High-Risk Accounts to Test:
ACC_002747- Risk: 90/100 (malware + rapid transactions)ACC_004611- Risk: 90/100 (foreign IP + structuring)ACC_000815- Risk: 88/100 (multiple devices)
Interesting Rings:
- Ring 13 - 23 accounts sharing beneficiaries
- Ring 0 - 479 accounts (largest network)
Dashboard won't start?
pip install streamlit
streamlit run dashboard_enhanced.pyNo data files?
python data_generator.pyPort already in use?
streamlit run dashboard_enhanced.py --server.port 8502Import errors?
pip install -r requirements.txtCyberFin works without AI, but for enhanced explanations:
- Get free API key from Google AI Studio
- Create
.envfile in CyberFin folder:
GEMINI_API_KEY=your_key_here
- Restart dashboard
Without API key: System uses smart fallback mode (still works great!)
Dashboard Metrics:
- Total accounts monitored
- High-risk accounts detected
- Mule rings identified
- Blocked transactions
Risk Levels:
- ๐ข 0-49: Low Risk
- ๐ก 50-69: High Risk (review needed)
- ๐ด 70-100: Critical Risk (freeze recommended)
AI Explanations:
- Why account is suspicious
- How victim was likely recruited
- Recommended actions
- Investigation steps
CyberFin/
โโโ dashboard_enhanced.py # Main dashboard (run this!)
โโโ data_generator.py # Creates sample data
โโโ detection_engine.py # Risk detection logic
โโโ backend.py # API server (optional)
โโโ requirements.txt # Dependencies
โโโ cyber_events.csv # Generated data
โโโ a_transactions.csv # Generated data
Verify everything works:
pytest tests/ -v -m "not slow"Expected: โ 52 tests passed
- Python: 3.10 or higher
- RAM: 4GB minimum
- Disk: 500MB free space
- OS: Windows, Mac, or Linux
- Internet: For initial setup only
What are money mules? People whose bank accounts are used to transfer illegal money. Often victims recruited through fake job offers.
How does detection work?
- Analyzes cyber events (malware, suspicious logins)
- Tracks financial transactions (amounts, timing)
- Builds network graph (who's connected to whom)
- Calculates risk scores (0-100)
- Identifies mule rings (groups working together)
Why is this important?
- Stops money laundering
- Protects victims
- Helps compliance teams
- Prevents financial crime
python backend.pyAPI docs: http://localhost:8000/docs
# Quick tests
pytest tests/ -v -m "not slow"
# All tests
pytest tests/ -v
# With coverage
pytest tests/ --cov=. --cov-report=htmlWindows:
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txtMac/Linux:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtDEMO_CHEAT_SHEET.txt- Quick demo guideTESTING_GUIDE.md- Testing detailsAI_FEATURES_GUIDE.md- AI setup guideGNN_INTEGRATION_COMPLETE.md- AI model details
# Generate data
python data_generator.py
# Run dashboard
streamlit run dashboard_enhanced.py
# Run backend (optional)
python backend.py
# Run tests
pytest tests/ -v -m "not slow"- Check troubleshooting section above
- Regenerate data:
python data_generator.py - Reinstall dependencies:
pip install -r requirements.txt - Use different port:
streamlit run dashboard_enhanced.py --server.port 8502
โ
Real-time risk detection
โ
AI-powered explanations
โ
Network visualization
โ
Compliance reporting
โ
One-click account freezing
โ
Victim education scenarios
โ
Professional SAR exports
โ
66 automated tests
Common Issues:
- Dashboard won't start โ Install streamlit
- No data โ Run data_generator.py
- Import errors โ Run pip install -r requirements.txt
- Port in use โ Use different port (8502)
Built for detecting financial crime and protecting victims ๐ก๏ธ
CyberFin - Stop the Money Before It Disappears