Knowledge graph and LLM based system for contextual cyber threat intelligence relevance assessment.
GraphIntel extracts structured CTI from unstructured reports, ingests it into Neo4j, and performs graph-based reasoning to identify reports relevant to a specific organisation.
- LLM-based CTI extraction from raw text
- STIX-aligned graph ingestion into Neo4j
- Multi-hop path discovery between threats and organisations
- LLM-based path relevance classification
- Flask REST API
- Dockerized deployment
- Optional PostgreSQL persistence for report tracking and analysis
Start the API stack:
docker compose up --buildServices:
| Service | URL |
|---|---|
| API | http://localhost:8000 |
| Neo4j Browser | http://localhost:7474 |
curl -X POST http://localhost:8000/threat_reports \
-H "Content-Type: application/json" \
-d '{
"text": "Example incident report text",
"url": "https://example.com/report",
"credibility": 80
}'POST /ingest/text
- Extracts entities and relationships from text
- Ingests them into Neo4j
- Does not create a tracked report entry
Use when only graph enrichment is required.
POST /threat_reports
- Creates a persistent report record
- Extracts and ingests CTI into Neo4j
- Stores derived paths and relevance analysis
Use when reports need lifecycle tracking and reasoning outputs.
Raw Report
↓
LLM Extraction
↓
Structured CTI Subgraph
↓
Neo4j Graph Merge
↓
Path Discovery
↓
LLM Path Classification
↓
Relevant Threat Paths
| Resource | Location |
|---|---|
| API reference | API.md |
| UML diagrams | system/uml/README.md |
Run locally:
cd system
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
flask run- The API is currently unauthenticated
- Some endpoints are destructive (graph wipe / database wipe)
- Do not expose publicly without authentication and access control
- Flask
- Neo4j
- PostgreSQL
- Docker Compose
- OpenAI-compatible LLM APIs
- Pydantic
- STIX 2.1