An enterprise-grade, autonomous Threat Intelligence and Security Orchestration, Automation, and Response (SOAR) platform. The system ingests heterogeneous threat telemetry, correlates indicators of compromise (IOCs) into high-fidelity incident cases, enriches indicators asynchronously via multi-provider threat intelligence APIs, maps behavior to the MITRE ATT&CK framework, synthesizes AI-driven analyst summaries, and enforces Human-in-the-Loop (HITL) controls before executing network/host containment responses.
- Automated Case Aggregation: Correlates incoming alerts into active cases using pre-insertion normalized IOC matching (IP addresses, SHA-256 hashes, domain names).
- Schema Validation: Enforces strict Pydantic payload validation for incoming SIEM/EDR alert streams (
POST /api/v1/alerts).
- Distributed Worker Architecture: Powered by Celery and Redis to offload intelligence gathering from synchronous API routes.
- Multi-Source Enrichment: Automatically queries external threat intelligence providers (VirusTotal, AbuseIPDB) with 24-hour database caching, deduplication, and exponential backoff retry handling for HTTP 429 rate limits.
- Heuristic ATT&CK Mapping: Matches alert titles and description payloads against MITRE ATT&CK techniques (e.g.,
T1021.002SMB/Windows Admin Shares,T1003OS Credential Dumping,T1110Brute Force). - Multi-Factor Scoring Matrix: Computes dynamic severity scores (0β100) and tiers (
Critical,High,Medium,Low) based on indicator reputation scores, technique base weights, and telemetry frequency.
- Multi-Model Provider Factory: Supports Google Gemini, Anthropic Claude, and OpenAI LLM providers with automatic fallback to a local deterministic synthesis engine when API keys are unconfigured.
- Structured Synthesis Output: Generates executive summaries, risk & severity rationales, and recommended containment playbooks per incident case.
- Role-Based Access Control (RBAC): Enforces permission gates separating
Analystoperators (full execution privileges) fromReadonlyroles. - Controlled Execution Handlers: Supports interactive approval/denial workflows for
Block_IP,Host_Isolation, andAuto_Ticketactions with mock security control adapters. - Immutable Audit Logging: Logs every operator action, timestamps, target parameters, and denial justifications into a dedicated audit ledger.
- Restrained Dark Aesthetic: Custom-styled single-page application built with React, Vite, and Tailwind CSS using monospace typography and SOC phosphor green accents.
- Real-Time Telemetry Polling: Features real-time status transitions (
pendingβapprovedβexecutingβexecuted) and interactive denial justification modals with feedback toasts.
flowchart TD
subgraph Ingestion ["Ingestion Layer"]
A[SIEM / EDR Telemetry] -->|POST /api/v1/alerts| B[FastAPI Gateway]
B -->|Normalize & Correlate| C[(PostgreSQL DB)]
end
subgraph Workers ["Asynchronous Workers (Celery + Redis)"]
B -->|Dispatch Task| D[Celery Worker Queue]
D -->|Query External APIs| E[Threat Intel Providers]
E -->|VirusTotal API| D
E -->|AbuseIPDB API| D
D -->|Persist Enrichment| C
end
subgraph Analytics ["Analytics & Synthesis"]
C --> F[MITRE ATT&CK Mapper]
F --> G[Dynamic Scoring Engine]
G --> H[Pluggable LLM Provider Factory]
H -->|Gemini / Claude / OpenAI| I[AI Incident Synthesis]
I --> C
end
subgraph Console ["SOC Operator Console"]
J[React + Vite Frontend] <-->|REST API / Polling| B
J -->|HITL Approval / Denial| K[Containment Response Console]
K -->|Enforce RBAC & Audit| L[Mock Security Controls]
end
| Layer | Component | Technologies Used |
|---|---|---|
| Backend API | REST Gateway | Python 3.14+, FastAPI, Uvicorn, Pydantic v2 |
| Database & ORM | Relational Ledger | PostgreSQL, SQLAlchemy 2.0, Alembic Migrations |
| Async Tasks | Task Broker & Workers | Celery 5.x, Redis 7.x |
| Threat Intel & AI | External Integration | VirusTotal API, AbuseIPDB API, Google Gemini, Claude, OpenAI |
| Frontend UI | SOC Dashboard | React 18, Vite, Tailwind CSS, Lucide Icons, Google Inter / JetBrains Mono |
| Containerization | Infrastructure | Docker, Docker Compose |
| Quality & Verification | Test Suite & Automation | Pytest, Playwright, Alembic |
autonomous-threat-intel-platform/
βββ backend/
β βββ alembic/ # Database schema versioning & migration scripts
β βββ app/
β β βββ api/ # REST endpoints (/alerts, /cases, /actions) & schemas
β β βββ core/ # App configuration, security, & Celery broker setup
β β βββ db/ # Database engine & session management
β β βββ models/ # SQLAlchemy ORM schemas (Case, Alert, IOC, Enrichment, Action)
β β βββ services/ # Business logic (Correlation, MITRE Mapper, Scoring, LLM Factory)
β β βββ workers/ # Celery async worker tasks (Enrichment, Scoring, Summarizer)
β βββ scripts/ # Verification scripts & reset_demo_data.py
β βββ tests/ # Pytest unit & integration test suite (24 tests)
β βββ Dockerfile # Backend container build definition
βββ frontend/
β βββ src/
β β βββ components/ # React UI components (CaseQueue, CaseDetail, ActionWorkflow, Toast)
β β βββ App.jsx # Main router & active case state manager
β β βββ index.css # Terminal design system tokens & utility classes
β βββ Dockerfile # Frontend container build definition
β βββ package.json # Node.js dependencies & Vite scripts
βββ docs/
β βββ architecture/decisions/ # Architectural Decision Records (ADRs 0001β0007)
βββ docker-compose.yml # Full multi-container orchestration topology
βββ Makefile # Common development & deployment shortcuts
- Docker & Docker Compose installed locally.
- Optional (for local non-containerized dev): Python 3.14+, Node.js 18+.
-
Clone the Repository:
git clone https://github.com/ManvithPanyam/autonomous-threat-intel-platform.git cd autonomous-threat-intel-platform -
Configure Environment Variables:
cp .env.example .env # Edit .env to add optional API keys (VT_API_KEY, ABUSEIPDB_API_KEY, GEMINI_API_KEY) -
Spin Up the Infrastructure:
docker compose up --build -d
-
Access Applications:
- SOC Analyst Console:
http://localhost:5173 - FastAPI OpenAPI Docs:
http://localhost:8000/docs - Backend Health Check:
http://localhost:8000/health
- SOC Analyst Console:
-
Start Backend API & Seed Demo Data:
cd backend python -m venv venv # Windows: venv\Scripts\activate | Linux/macOS: source venv/bin/activate pip install -r requirements.txt # Seed curated demo dataset into database python scripts/reset_demo_data.py # Launch FastAPI Server python -m uvicorn app.main:app --port 8000 --reload
-
Start Frontend Dashboard:
cd frontend npm install npm run dev -- --port 5173
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/v1/alerts/ |
Ingest raw alert payload, normalize IOCs, and correlate into cases. |
GET |
/api/v1/cases/ |
List incident cases with filtering (status, severity) and pagination. |
GET |
/api/v1/cases/{id} |
Retrieve case details, AI synthesis, MITRE map, and correlated alerts. |
GET |
/api/v1/cases/{id}/actions |
List containment actions for an incident case. |
POST |
/api/v1/actions/{id}/approve |
Approve containment action execution (Requires Analyst role). |
POST |
/api/v1/actions/{id}/deny |
Deny containment action with mandatory justification reason. |
GET |
/health |
Pre-flight system health status check. |
The platform includes a comprehensive test suite covering schema validation, case correlation algorithms, enrichment caching boundaries, MITRE mapping heuristics, scoring escalation, and approval access controls.
To run the automated backend test suite:
cd backend
python -m pytest tests/ -vtests/test_phase5.py ..... [ 20%] (Alert ingestion, IOC deduplication & enrichment caching)
tests/test_phase6.py ... [ 33%] (MITRE ATT&CK mapping & severity escalation logic)
tests/test_phase7.py ..... [ 54%] (AI synthesis prompt building & provider fallback chain)
tests/test_phase8.py ..... [ 75%] (HITL containment workflow, RBAC, & denial audit logging)
tests/test_phase9.py ...... [100%] (FastAPI route integration & end-to-end response schemas)
======================= 24 passed in 10.17s =======================
Design choices and technical trade-offs are documented in docs/architecture/decisions/:
- ADR 0001: Alert Schema Design - Decoupled alert ingestion model & normalized IOC relationships.
- ADR 0002: Containment Action Scope - Human-in-the-loop approval requirements for active containment.
- ADR 0003: Gemini API Key Configuration - Environment-driven LLM selection and heuristic fallback strategy.
- ADR 0004: IOC Normalization & Deduplication - Pre-insertion sanitization rules for IP/Hash/Domain entities.
- ADR 0005: Rate Limiting & Caching Policies - 24-hour TTL caching for threat intel API queries.
- ADR 0006: MITRE Mapping & Scoring Methodology - Heuristic keyword mapping and multi-factor severity scoring matrix.
- ADR 0007: Container Healthchecks & Pre-Flight Policy - Compose service topology and pre-flight validation gates.
Distributed under the MIT License. See LICENSE for details.