mlsanityData to 7 Oct 2026

Beyond Heavy Log Curation: Perplexity-Based APT Detection via Unsupervised, Context-Augmented Language Models

arXiv 2607.20832 ↗First posted 23 Jul 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Advanced Persistent Threats (APTs) remain difficult to detect because only a small fraction of events in large-scale logs are attack-related, and investigation is expensive and hard to scale. Prior machine-learning approaches can reduce analyst workload, but they often rely on heavily curated training data and sophisticated preprocessing pipelines. Building and maintaining such pipelines require substantial domain expertise and engineering cost. Motivated by insights from a study of a strong APT detection baseline, we propose CAPTAIN (Context-Augmented Perplexity-based Threat Activity log detectIoN), a perplexity-based detector that leverages general, pre-trained language models with minimal, domain-agnostic preprocessing, enabling robust scoring of long, minimally processed log entries. CAPTAIN encodes recent history with an encoder model and a Q-Former-style bridge, then injects the compact context tokens into the decoder input so that perplexity reflects temporal context. To improve stability, CAPTAIN additionally applies smoothing filters to the perplexity time series. Across APT-oriented benchmarks, CAPTAIN competes with strong existing baselines and remains robust under substantially less curated inputs, that reduces the development and operational cost of advanced log preprocessing.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 48 references that are in the map. First posted on arXiv 23 Jul 2026.

Builds on

27 of 48 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  7. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  8. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  10. 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
  11. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  12. 2020GLU Variants Improve Transformercited by 1,724
15 more
  1. 2023CogVLM: Visual Expert for Pretrained Language Modelscited by 704
  2. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  3. 2021LogBERT: Log Anomaly Detection via BERTcited by 114
  4. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  5. 2021Experience Report: Deep Learning-based System Log Analysis for Anomaly Detectioncited by 37
  6. 2021Evaluation of BERT and ALBERT Sentence Embedding Performance on Downstream NLP Taskscited by 32
  7. 2021LAnoBERT: System Log Anomaly Detection based on BERT Masked Language Modelcited by 30
  8. 2023Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenancecited by 30
  9. 2022Deep Learning for Anomaly Detection in Log Data: A Surveycited by 27
  10. 2023LogGPT: Log Anomaly Detection via GPTcited by 26
  11. 2025Efficient Multi-modal Large Language Models via Progressive Consistency Distillationcited by 22
  12. 2023MAGIC: Detecting Advanced Persistent Threats via Masked Graph Representation Learningcited by 20
  13. 2024TREC: APT Tactic / Technique Recognition via Few-Shot Provenance Subgraph Learningcited by 6
  14. 2025From Alerts to Intelligence: A Novel LLM-Aided Framework for Host-based Intrusion Detectioncited by 3
  15. 2025KnowHow: Automatically Applying High-Level CTI Knowledge for Interpretable and Accurate Provenance Analysiscited by 3

Built on by

Not cited yet.