NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anomaly Detection in Security Logs using Sequence Modeling

Simon G. E. Gökstorp, Jakob Nyberg, Yeongwoo Kim, Pontus Johnson, György Dán

Abstract

As cyberattacks are becoming more sophisticated, automated activity logging and anomaly detection are becoming important tools for defending computer systems. Recent deep learning-based approaches have demonstrated promising results in cybersecurity contexts, typically using supervised learning combined with large amounts of labeled data. Self-supervised learning has seen growing interest as a method of training models because it does not require labeled training data, which can be difficult and expensive to collect. However, existing self-supervised approaches to anomaly detection in user authentication logs either suffer from low precision or rely on large pre-trained natural language models. This makes them slow and expensive both during training and inference. Building on previous works, we therefore propose an end-to-end trained self-supervised transformer-based sequence model for anomaly detection in user authentication events. Thanks in part to an adapted masked-language modeling (MLM) learning task and domain knowledge-based improvements to the anomaly detection method, our proposed model outperforms previous long short-term memory (LSTM)-based approaches at detecting red-team activity in the "Comprehensive, Multi-Source Cyber-Security Events" authentication event dataset, improving the area under the receiver operating characteristic curve (AUC) from 0.9760 to 0.9989 and achieving an average precision of 0.0410. Our work presents the first application of end-to-end trained self-supervised transformer models to user authentication data in a cybersecurity context, and demonstrates the potential of transformer-based approaches for anomaly detection.
BibTeX
@inproceedings{gokstorp2024anomaly,
  author = {Simon G. E. Gökstorp and Jakob Nyberg and Yeongwoo Kim and Pontus Johnson and György Dán},
  title = {{Anomaly Detection in Security Logs using Sequence Modeling}},
  booktitle = {NOMS},
  year = {2024},
  url = {https://openreview.net/forum?id=btbUONHiSc},
}

Loading related content...

Figure