← Lab /AI/ML

Context features raise SIEM attack detection F1 to 0.967

Adding per-IP behavioural context vectors to Wazuh SIEM improves macro F1 scores to up to 0.967 for binary detection and 0.914 for six-class categorisation

AI/ML arXiv 13 May 2026 Method Prototype evidence

Published as “Context-Aware Web Attack Detection in Open-Source SIEM Systems via MITRE ATT&CK-Enriched Behavioral Profiling”

Why it matters

Context-aware AI augmentation can dramatically improve open-source SIEM detection of multi-step web attacks, making practical deployment feasible.

Summary

Smart-SIEM’s context-enriched behavioural vector boosts detection from ~0.705 to 0.967 macro F1 for binary attack detection and to 0.914 for six-class attack categorisation, with the hybrid LightGBM+XGBoost cascade achieving the best overall scores. The improvement holds across eight gradient-boosting algorithms, confirming the vector-not any specific model-is the key contribution. Evaluation uses a purpose-built 46k-event Wazuh dataset; however the testbed contains only single sessions per attack class, so results are an upper bound on real-world generalisation.

What they found 1

  1. LightGBM achieves the highest Stage 1 binary F1 (0.967) and XGBoost the highest Stage 2 multi-class F1 (0.914).

    “LightGBM achieves the highest Stage 1 F1 (0.967) and XGBoost achieves the highest Stage 2 F1 (0.914) as evaluated on the held-out test set.”

Caveats 6

  • The cascaded design achieves slightly lower macro F1 (0.906 vs. 0.926) but reduces missed attacks from 143 to 131 while maintaining identical false alarms (12 each).
  • The F1 score drops from 0.905 to 0.465 when the model encounters the unseen attack types in Phase 2 - well below the configured 90% threshold - triggering the retraining procedure.
  • One consequence of the combined protocol is a modest degradation on Phase 1 data: the combined model achieves F1 = 0.817 on Phase 1 vs. the original 0.905 - a -0.09 drop.
  • These results represent an upper bound on generalisation performance given the single-session-per-class testbed design (Section 9.4).
  • These figures are informal estimates collected during testbed operation under low concurrency; they are provided for orientation only. A reproducible micro-benchmark (event-level pipeline latency at p50/p95/p99, with a realistically-sized Elasticsearch corpus) is needed for production deployment sizing and remains future work.
  • The incomplete recovery to 0.695 (vs. the original 0.905 on known attacks only) reflects two factors.

What’s new here 4

  • Introduces a per-source-IP context vector aggregating the last N events, including MITRE ATT&CK technique counts.
  • Applies a two-stage hybrid cascade (LightGBM then XGBoost) that leverages the context vector for both binary detection and fine-grained attack classification.
  • Implements a self-adaptive retraining mechanism that detects concept drift and updates models automatically.
  • Provides a labelled Wazuh SIEM event dataset and open-source Smart-SIEM module for the Wazuh platform.