How cipher-sheild/openthreat works
OpenThreat turns collected or analyst-uploaded cyber threat reports into searchable, evidence-linked intelligence. Collection and upload feed a platform-owned processing worker, which calls the NLP service; extracted facts and provenance are persisted, with document vectors indexed for similarity search. Analysts use the browser interface to explore documents, analytics, relationships, and exports. The README documents capabilities beyond the sampled implementation, including PDF imports and restricted STIX exports; those are represented at the platform API level rather than attributed to unsampled modules.
Main entry points: analyzer.py Report analysis · ingestion.py Ingestion worker · app/main.py NLP API · app/main.py Platform API
Components 23
Analyst interface
- Browser app
frontend/src/App.tsx - Relationship graph
frontend/src/GraphView.tsx
Platform service
- NVD, CISA, RSS
platform-service/app/collectors - Collection scheduler
platform-service/app/core/scheduler.py - Platform API
platform-service/app/main.py - Ingestion worker
platform-service/app/api/ingestion.py - Intel API
platform-service/app/api/intel.py - Fact lifecycle
platform-service/app/novelty/engine.py
NLP analysis
- NLP API
nlp-service/app/main.py - Report analysis
nlp-service/app/pipeline/analyzer.py - Text preparation
nlp-service/app/pipeline/preprocess.py - Entity extraction
nlp-service/app/pipeline/ner.py - Relation extraction
nlp-service/app/pipeline/relations.py - Temporal analysis
nlp-service/app/pipeline/temporal.py - Behavior analysis
nlp-service/app/pipeline/behaviors.py - ATT&CK mapping
nlp-service/app/pipeline/attack_mapper.py - Embedding engine
nlp-service/app/pipeline/embeddings.py - Entity resolution
nlp-service/app/pipeline/resolution.py - Novelty classifier
nlp-service/app/pipeline/novelty.py
Intelligence stores
- PostgreSQL
platform-service/app/database/database.py - Qdrant
platform-service/app/database/database.py
Other components
- Analyst
- Threat sources
Connections 31
- Analyst → Browser app: uses
- Browser app → Relationship graph: renders
frontend/src/App.tsx - Browser app → Platform API: requests data
- Threat sources → NVD, CISA, RSS: publishes reports
- Collection scheduler → NVD, CISA, RSS: dispatches fetch
platform-service/app/core/scheduler.py - Collection scheduler → Ingestion worker: submits reports
platform-service/app/core/scheduler.py - Platform API → Ingestion worker: registers routes
platform-service/app/main.py - Platform API → Intel API: registers routes
platform-service/app/main.py - Platform API → Collection scheduler: starts
platform-service/app/main.py - Analyst → Ingestion worker: uploads reports
platform-service/app/api/ingestion.py - Ingestion worker → NLP API: posts analysis
platform-service/app/api/ingestion.py - Ingestion worker → Fact lifecycle: persists findings
platform-service/app/api/ingestion.py - Fact lifecycle → NLP API: requests classification
platform-service/app/novelty/engine.py - Ingestion worker → PostgreSQL: updates documents
platform-service/app/api/ingestion.py - Ingestion worker → Qdrant: indexes vectors
platform-service/app/api/ingestion.py - Intel API → PostgreSQL: queries intelligence
platform-service/app/api/intel.py - Intel API → Qdrant: searches documents
platform-service/app/api/intel.py - NLP API → Report analysis: analyzes reports
nlp-service/app/main.py - NLP API → Embedding engine: serves embeddings
nlp-service/app/main.py - NLP API → Entity resolution: resolves mentions
nlp-service/app/main.py - NLP API → Novelty classifier: classifies facts
nlp-service/app/main.py - Report analysis → Text preparation: prepares text
nlp-service/app/pipeline/analyzer.py - Report analysis → Entity extraction: extracts entities
nlp-service/app/pipeline/analyzer.py - Report analysis → Relation extraction: extracts relations
nlp-service/app/pipeline/analyzer.py - Report analysis → Temporal analysis: extracts events
nlp-service/app/pipeline/analyzer.py - Report analysis → Behavior analysis: extracts behaviors
nlp-service/app/pipeline/analyzer.py - Report analysis → Embedding engine: embeds document
nlp-service/app/pipeline/analyzer.py - Report analysis → ATT&CK mapping: maps behaviors
nlp-service/app/pipeline/analyzer.py - ATT&CK mapping → Embedding engine: compares semantics
nlp-service/app/pipeline/attack_mapper.py - Fact lifecycle → PostgreSQL: stores provenance
platform-service/app/novelty/engine.py - Entity resolution → Embedding engine: uses similarity
nlp-service/app/pipeline/resolution.py