← Lab /AI/ML

Perplexity-based model detects APTs with minimal preprocessing

CAPTAIN can detect advanced persistent threats competitively while using far less curated log data

AI/ML arXiv 23 Jul 2026 Method Prototype evidence

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

Why it matters

CAPTAIN enables effective APT detection with far less preprocessing effort and on lightweight models, reducing operational cost and complexity for security teams.

Summary

CAPTAIN achieves a high average AUC of 0.93 on minimally preprocessed logs, outperforming the AIRTAG baseline (average AUC 0.68) and remaining stable when token budgets increase (average AUC drop only 0.02). The approach uses a pre-trained decoder-only language model with a Q-Former bridge to inject historical context and applies a Wiener filter to smooth perplexity scores. Evidence is strong across multiple APT-oriented splits, though one split (S2) falls below 0.5 AUC for both methods.

What they found 3

  1. CAPTAIN attains a high average AUC of 0.93 versus 0.68 for AIRTAG on minimally preprocessed data

    “CAPTAIN maintains a high average AUC of 0.93, whereas AIRTAG achieves an average AUC of 0.68.”

  2. CAPTAIN’s performance degrades only slightly when input length is increased from 32 to 64 tokens

    “When increasing the input length from 32 to 64 tokens, CAPTAIN exhibits only a minor degradation: the average AUC decreases by 0.02.”

  3. Wiener filter smoothing improves average AUC from 0.889 to 0.929

    “On average, the AUC increases from 0.889 without filtering to 0.929 with filtering, indicating a consistent benefit from simple temporal smoothing of the PPL time series.”

Caveats 2

  • We also observe that the AUC on S2 falls below 0.5 for both AIRTAG and CAPTAIN.
  • The effect of increasing the fine-tuning budget for the vanilla LM (100K/150K/200K steps) is not monotonic. In particular, the model trained for 200K steps performs worse than the one trained for 150K steps. This highlights that longer training is not always beneficial and can introduce issues such as overfitting, distributional bias, or optimization instability.

What’s new here 4

  • Uses general pre-trained language models with only domain-agnostic preprocessing, avoiding heavy curation.
  • Injects compact historical context via an encoder and Q-Former bridge so that perplexity reflects temporal information.
  • Applies simple Wiener filter smoothing to the perplexity time series for more stable detection.
  • Demonstrates robustness to larger token budgets and to longer, noisier log entries.