mlsanityData to 14 Oct 2026

From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logs

arXiv 2608.19938 ↗First posted 20 Aug 2026cs.CR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Existing approaches to anomalous behaviour log detection, such as Wazuh rely primarily on predefined detection rules, while statistical anomaly detection approaches such as OpenSearch identify deviations from previously observed behavioural patterns. Recent research has investigated LLMs for log anomaly detection because of their ability to interpret semantic and contextual information. However, LLM-based approaches can be affected by prompt construction, noisy log data, and reliance on generic datasets that may lack endpoint-specific authentication behaviours. To address these limitations, this study develops a standardised instruction-based LLM classification framework for detecting anomalous authentication behaviours, including borderline cases. A controlled cybersecurity testbed was developed to generate endpoint-specific authentication data, producing a curated dataset comprising normal, borderline, and anomalous behavioural scenarios. Three instruction-tuned LLMs, Meta Llama 3.1 8B Instruct, Qwen 2.5 7B Instruct, and GPT-OSS 20B, were evaluated against Wazuh rule-based detection and OpenSearch Anomaly Detection using a common ground-truth severity framework. Meta Llama 3.1 8B Instruct achieved the strongest overall end-to-end detection performance, with an accuracy of 89.3%, recall of 88.2%, F1-score of 91.8%, and false negative rate of 11.8%. In comparison, Wazuh achieved an accuracy of 52.0% and false negative rate of 68.6%, while OpenSearch achieved an accuracy of 49.3% and false negative rate of 74.5%. Meta Llama also detected 80% of the borderline anomalous scenarios, compared with 20% for Wazuh and 15% for OpenSearch. Qwen achieved lower overall detection performance than Meta Llama but recorded the lowest average inference latency and 100% structured-response validity. GPT-OSS demonstrated strong classification performance when valid responses were produced.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 17 references that are in the map. First posted on arXiv 20 Aug 2026.

Builds on

9 of 17 references.

References · 9

  1. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
  2. 2020A review on outlier/anomaly detection in time series datacited by 189
  3. 2024A Closer Look at Classification Evaluation Metrics and a Critical Reflection of Common Evaluation Practicecited by 26
  4. 2024LogLLM: Log-based Anomaly Detection Using Large Language Modelscited by 22
  5. 2025LLMs in the SOC: An Empirical Study of Human-AI Collaboration in Security Operations Centrescited by 14
  6. 2023On the Effectiveness of Log Representation for Log-based Anomaly Detectioncited by 6
  7. 2025A Graph-Based Approach to Alert Contextualisation in Security Operations Centrescited by 2
  8. 2024Characterizing the Modification Space of Signature IDS Rulescited by 1
  9. 2026LLM-Enhanced Log Anomaly Detection: A Comprehensive Benchmark of Large Language Models for Automated System Diagnosticscited by 1

Built on by

Not cited yet.