LLMs for Zero-Shot Threat Detection via Structured Risk Indicators
Abdullah Alghamdi, Siamak Layeghy, Marius Portmann
Key points
From the paper's conclusion- These findings show that the quality of the generated risk indicators is the main driver of zero-shot cyber threat detection performance.
Abstract
We propose a two-stage large language model (LLM) framework for zero-shot detection of insider threats and advanced persistent threats (APTs) from heterogeneous security logs. The framework models user activity as chronological timelines and incorporates retrieval-augmented generation (RAG) to provide personalised behavioural context from each user's historical activity. Rather than performing end-to-end classification directly from raw logs, it first generates structured, interpretable sets of threat-specific risk indicators, which are then classified jointly across temporal sequences to capture attack patterns spanning multiple windows.The framework is evaluated on two benchmark datasets, CERT r5.2 for insider threat detection and PicoDomain for APT detection, using four combinations of two open-weight LLMs under both retrieval and non-retrieval settings. All configurations outperform the previous state-of-the-art LLM-based framework (GABM), with the best configuration improving the F1-score by 11.40 percentage points on CERT r5.2 and 31.50 percentage points on PicoDomain. Results further show that retrieval mainly benefits weaker LLMs by generating more discriminative risk indicators, whereas stronger models achieve comparable performance without retrieved context. The most effective assignment of LLMs to the two stages depends on the dataset. These findings show that the quality of the generated risk indicators is the main driver of zero-shot cyber threat detection performance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Sigma-Hunter: A Domain-Specific Language Model for Threat Hunting and Detection EngineeringarXiv · 2026
- LLM-powered threat intelligence: a retrieval-augmented generation approach for cyber attack investigationPeerJ Computer Science · 2025
- SecLog-Bench: A Scalable Benchmark for Cybersecurity Log Reasoning with Scaffolded EvidencearXiv · 2026
- REFINE: A Resilient Evolution Framework for Intelligent Enterprise Alert Triage in Security Operations CentersarXiv · 2026
- Dynamic Reasoning in Next-Gen Detection and Response: An Empirical Study of LLM Triage, Reinforcement Tuning, and Adversarial EvasionarXiv · 2026
- HuntGPT: Integrating Machine Learning-Based Anomaly Detection and Explainable AI with Large Language Models (LLMs)Telecom · 2026