← Lab /AI/ML

Two-stage LLM framework raises insider threat F1 by 11.4 points and APT F1 by 31.5 points

The proposed zero-shot LLM approach outperforms the prior LLM-based framework on benchmark threat detection tasks

AI/ML arXiv 17 Aug 2026 Method Prototype evidence

Published as “LLMs for Zero-Shot Threat Detection via Structured Risk Indicators”

Why it matters

Higher-precision zero-shot detection could make LLM-based intrusion monitoring more practical for deployment, reducing the overwhelming false-positive burden of prior approaches.

Summary

The dual-LLM framework achieves substantially higher F1 scores than the prior LLM-based GABM baseline-11.40 percentage points on the CERT insider-threat dataset and 31.50 percentage points on the PicoDomain APT dataset-while raising precision and keeping recall high. It does this by first generating structured, interpretable risk indicators from per-user log windows (using retrieval-augmented generation for personal context) and then classifying the temporal evolution of those indicators with a second LLM. Experiments on two public benchmark datasets and eight model-configuration variants show the gains stem from the architecture rather than model size, though detection on the stealthy PicoDomain data is near chance. The evidence is based on standard precision, recall, F1 and MCC metrics, but the evaluation uses a malicious-enriched sample, so operational false-positive rates may be lower.

What they found 4

  1. The best configuration improves F1 by 11.40 pp on CERT r5.2 and 31.50 pp on PicoDomain

    “The best configuration improves the F1-score by 11.40 percentage points on CERT r5.2 and 31.50 percentage points on PicoDomain”

  2. On CERT r5.2 the framework reaches 64.14 % F1, 48.55 % precision, 94.47 % recall

    “On CERT r5.2, the framework attains an F1-score of 64.14% (Llama 3.1 8B as LLM1, DeepSeek as LLM2, RAG), with precision 48.55% and recall 94.47%.”

  3. Retrieval boosts F1 by up to 13.4 pp when the feature-generator is the weaker LLM

    “lifting F1 by up to 13.4 percentage points on PicoDomain”

  4. Statistically significant association on CERT r5.2 (MCC = 0.146)

    “the proposed configuration attains MCC = 0.146 (χ2 ≈204, p< 10-10)”

Caveats 4

  • The temporal-context sampling evaluates attack-proximal windows, not a continuous stream. The subset is enriched for malicious activity, so the reported precision reflects this distribution rather than an operational falsepositive rate, which would be lower on a predominantly benign stream.
  • LLM1 features carry almost no per-window signal on PicoDomain, and detection there is at chance (MCC = 0.004) against a significant association on CERT r5.2 (MCC = 0.146).
  • We treat PicoDomain as a boundary case for this class of method, reflecting stealthy beaconing rather than a feature-design flaw.
  • We do not compare absolute metrics against GABM: it classifies per activity identifier rather than per window, and specifies neither its labelling nor its benign-sampling procedure, so a like-for-like comparison is not definable.

What’s new here 4

  • Introduces a two-stage LLM pipeline that generates structured risk-indicator vectors before classification, instead of end-to-end log classification.
  • Applies retrieval-augmented generation to provide per-user historical context for risk-indicator generation.
  • Demonstrates that assigning different LLMs to the feature-generation and classification stages can improve performance depending on dataset characteristics.
  • Evaluates the approach on both insider-threat (CERT r5.2) and APT (PicoDomain) benchmarks, showing consistent gains over the previous LLM-based GABM method.