A real-time threat intelligence ingestion and analysis platform that:
- Collects Indicators of Compromise (IOCs) from public sources
- Stores and relates them in a PostgreSQL database
- Provides a REST API (FastAPI) for querying and analysis
- Includes a live dashboard for analysts
- Supports authentication to protect sensitive data
β Real-time ingestion from:
β Structured PostgreSQL database schema for:
- IPs, Malware, Hashes, URLs, Threat Sources, and Attack Timeline
β REST API built with FastAPI:
- Query threat data, recent attacks, and search by IP
β Analyst dashboard (HTML + Chart.js):
- View live attack logs and top malware family charts
β Token-based Authentication (JWT):
- Protects critical API endpoints from unauthorized access
| Layer | Technology |
|---|---|
| Ingestion | Python + requests + schedule |
| Database | PostgreSQL |
| API Layer | FastAPI |
| Auth | JWT + passlib |
| Frontend | HTML + Bootstrap + Chart.js |
| Deployment | Uvicorn (local) |
π¦ threat-intel-platform/ βββ threat_ingest_realtime.py # Ingests threat feeds into PostgreSQL βββ main.py # FastAPI app (API routes + JWT auth) βββ dashboard.html # Web-based analyst dashboard (HTML + Chart.js) βββ requirements.txt # Python dependencies βββ README.md # You're here!
git clone https://github.com/yourusername/threat-intel-platform.git
cd threat-intel-platformpip install -r requirements.txtthreat_intel_dbpython threat_ingest_realtime.pyuvicorn main:app --reloadNow visit:
API Docs: http://127.0.0.1:8000/docs
Dashboard: http://127.0.0.1:8000/dashboard
Built with π» by EdgeRunner007