- Live Dashboard: https://beaconhunter-dashboard.onrender.com
- API Documentation: https://beaconhunter.onrender.com/docs
- Health Check: https://beaconhunter.onrender.com/health
- GitHub Repository: https://github.com/Dhare2006/BeaconHunter
BeaconHunter is a production-ready SOC (Security Operations Center) platform that detects command-and-control (C2) beaconing patterns in real-time using statistical analysis.
- π΄ Critical Alert - C2 Beaconing Detected (T1071.001) - Regular 60-second callback patterns
- π Medium Alert - Malware Distribution (T1595) - Connection to known malicious IPs
- π‘ Medium Alert - Suspicious Domain (T1568.002) - Phishing/malware domain detection
- π‘ Medium Alert - Suspicious User Agent (T1071) - Unusual HTTP user agents
- Python 3.11+
- Node.js 16+
- Git
git clone https://github.com/Dhare2006/BeaconHunter.git
cd BeaconHuntercd backend
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reloadcd frontend
npm install
npm run devhttp://localhost:5173
intervals = [60, 60, 60, 60] # seconds between events
mean_interval = np.mean(intervals) # 60.0
std_interval = np.std(intervals) # 0.0
if std_interval < 5:
alert = "C2 Beaconing Detected"
mitre_technique = "T1071.001"- Malicious IPs β MITRE T1595
- Suspicious Domains β MITRE T1568.002
- Bad User Agents β MITRE T1071
# Reset
curl -X DELETE https://beaconhunter.onrender.com/reset
# C2 Beaconing (Critical)
curl -X POST "https://beaconhunter.onrender.com/events/batch" -H "Content-Type: application/json" -d '[
{"source_ip":"192.168.1.100","destination_ip":"45.67.23.11","protocol":"HTTPS","timestamp":"2026-06-06T10:00:00","domain":"evil-c2.com"},
{"source_ip":"192.168.1.100","destination_ip":"45.67.23.11","protocol":"HTTPS","timestamp":"2026-06-06T10:01:00","domain":"evil-c2.com"},
{"source_ip":"192.168.1.100","destination_ip":"45.67.23.11","protocol":"HTTPS","timestamp":"2026-06-06T10:02:00","domain":"evil-c2.com"},
{"source_ip":"192.168.1.100","destination_ip":"45.67.23.11","protocol":"HTTPS","timestamp":"2026-06-06T10:03:00","domain":"evil-c2.com"}
]'
# Malicious IP (Medium)
curl -X POST "https://beaconhunter.onrender.com/events/batch" -H "Content-Type: application/json" -d '[
{"source_ip":"10.0.0.5","destination_ip":"185.142.53.35","protocol":"HTTP","timestamp":"2026-06-06T10:05:00","domain":"malware-c2.net","user_agent":"curl/7.68.0"}
]'
# Suspicious Domain (Medium)
curl -X POST "https://beaconhunter.onrender.com/events/batch" -H "Content-Type: application/json" -d '[
{"source_ip":"10.0.0.5","destination_ip":"8.8.8.8","protocol":"HTTPS","timestamp":"2026-06-06T10:06:00","domain":"phishing-bank.xyz"}
]'
# Run detection
curl -X POST https://beaconhunter.onrender.com/detect
# Check results
curl https://beaconhunter.onrender.com/stats{
"total_events": 6,
"total_alerts": 3,
"critical_alerts": 1,
"medium_alerts": 2,
"beaconing_detections": 1
}BeaconHunter/
βββ backend/
β βββ app/
β β βββ main.py
β βββ requirements.txt
βββ frontend/
β βββ src/
β β βββ App.jsx
β β βββ App.css
β βββ package.json
βββ README.md
GET /- API informationGET /health- Health checkGET /events- Get all eventsPOST /events/batch- Ingest eventsPOST /detect- Run detectionGET /alerts- Get all alertsGET /stats- Dashboard statsDELETE /reset- Reset data
This tool is for educational and defensive security research only.
β DO:
- Use in your own isolated environment
- Test with permission on your infrastructure
- Learn about detection algorithms
β DON'T:
- Use without authorization
- Use for malicious purposes
- Target real systems
All attacks shown are SIMULATED test data in isolated environment.
- Live Dashboard: https://beaconhunter-dashboard.onrender.com
- API Docs: https://beaconhunter.onrender.com/docs
- GitHub: https://github.com/Dhare2006/BeaconHunter
MIT License - Free for educational and research use.
Built with π for security research and education
## π€ How to Update
1. **Open** `C:/Users/Megavarthini/BeaconHunter/README.md`
2. **Select All** (Ctrl+A)
3. **Delete** everything
4. **Paste** the above code (Ctrl+V)
5. **Save** (Ctrl+S)
6. **Push to GitHub:**
```bash
git add README.md
git commit -m "Complete README"
git push origin main