ThreatLens
A retrieval-augmented copilot that cites every claim.
Paste an alert, a log line or a CVE and get an answer grounded in 5,718 public documents from MITRE ATT&CK, CISA KEV, SigmaHQ and CERT-FR, with NVD looked up on demand. Hybrid retrieval, cross-encoder reranking and a local Llama 3.1 8B, held to a 117-question benchmark with an LLM judge and deterministic citation checks.
- Recall@10
- 0.936
- nDCG@10
- 0.787
- Faithfulness
- 0.875
- Valid citations
- 97.4%
Limits
French questions score 0 with an English embedding model, and a bigger multilingual encoder only reaches 0.2 to 0.4, so cross-lingual queries need translation. The gold Sigma rule is cited for only 40% of detection questions. Model routing, a prompt-injection benchmark and a cloud deployment are planned, not done.
- Python
- FastAPI
- Streamlit
- Qdrant
- BM25 + bge-small
- Cross-encoder
- Ollama
- Docker Compose
- guardscreen query
- hybridBM25 + dense · RRF
- rerankfused back in
- routelocal LLM
- answer[attack:T1059.001]
A reranker is not a free win: alone it ranks narrow Sigma rules above the technique a question is about. Fusing it with the hybrid order gave the best top 5, a choice made on 35 questions and confirmed on 82 new ones.



