Attacker Behaviour Profiling using Stochastic Ensemble of Hidden Markov Models

Soham Deshmukh, Rahul Rade, Faruk KaziarXiv 2019

Abstract

Cyber threat intelligence is one of the emerging areas of focus in information security. Much of the recent work has focused on rule-based methods and detection of network attacks using Intrusion Detection algorithms. In this paper we propose a framework for inspecting and modelling the behavioural aspect of an attacker to obtain better insight predictive power on his future actions. For modelling we propose a novel semi-supervised algorithm called Fusion Hidden Markov Model (FHMM) which is more robust to noise, requires comparatively less training time, and utilizes the benefits of ensemble learning to better model temporal relationships in data. This paper evaluates the performances of FHMM and compares it with both traditional algorithms like Markov Chain, Hidden Markov Model (HMM) and recently developed Deep Recurrent Neural Network (Deep RNN) architectures. We conduct the experiments on dataset consisting of real data attacks on a Cowrie honeypot system. FHMM provides accuracy comparable to deep RNN architectures at significant lower training time. Given these experimental results, we recommend using FHMM for modelling discrete temporal data for significantly faster training and better performance than existing methods.

Introduction

In modern cybersecurity, reactive measures like signature-based detection are insufficient against sophisticated, evolving threats. Proactive threat intelligence aims to predict an attacker's subsequent actions by modeling their behavioral patterns. Traditional sequence modeling techniques, such as single Hidden Markov Models (HMMs), often struggle with the high variance and noise inherent in diverse attack strategies. Conversely, deep learning models like LSTMs offer high accuracy but suffer from prohibitive training times. This paper introduces the Fusion Hidden Markov Model (FHMM), an ensemble approach designed to balance predictive power with computational efficiency.

The FHMM Framework

The FHMM framework addresses the limitations of global models by partitioning data into specialized subsets. The architecture consists of three primary stages:

  1. Data Partitioning: Attack sessions are clustered into $K$ groups based on a dissimilarity function that considers session length and event frequency. This is based on the observation that different attack strategies (e.g., automated bots vs. human actors) exhibit distinct temporal signatures.
  2. Ensemble of HMMs: An independent HMM is trained for each of the $K$ clusters using the Baum-Welch algorithm. This modularity allows for parallel training, significantly reducing total training time.
  3. Neural Fusion: The outputs from the $K$ HMMs are fed into a supervised Neural Network. The network learns to weight the predictions of individual HMMs non-linearly, effectively acting as a meta-classifier that identifies which specialized model is most reliable for a given input sequence.
The FHMM system architecture, illustrating the pipeline from raw honeypot logs to the final predictive output.

Experimental Evaluation

The model was evaluated using real-world logs from a Cowrie honeypot, comprising 22,499 attack sessions. Events were categorized into 19 discrete states. The FHMM was compared against baseline Markov Chains, standard HMMs, and LSTM architectures.

Performance Comparison

The FHMM (with $K=38$) achieved an accuracy of 90.82%, outperforming the LSTM's 86%. Crucially, the FHMM required only 1.5 hours for parallel training, compared to 5 hours for the LSTM—a 3.3x speedup.

Model Accuracy Training Time (Parallel)
Markov Chain 72% 0.3 hrs
Single HMM 77% 1.0 hrs
LSTM 86% 5.0 hrs
FHMM (K=38) 90.82% 1.5 hrs

Impact of Ensemble Size

The performance of the FHMM is sensitive to the number of clusters ($K$). As shown in the experimental results, increasing $K$ generally leads to a reduction in the error rate as the individual HMMs become more specialized to specific attack behaviors.

Error rate as a function of the number of HMMs (K) in the ensemble, showing a clear downward trend as the model becomes more granular.

Conclusion

The Fusion Hidden Markov Model offers a robust and efficient alternative to deep learning for profiling attacker behavior. By leveraging parallelizable ensemble learning and neural fusion, it achieves superior accuracy on discrete temporal data while maintaining a significantly lower computational footprint. Future work will explore extending this framework to continuous data streams to enhance general anomaly detection capabilities.

Summary updated

BibTeX
@misc{deshmukh2019attacker,
  author = {Soham Deshmukh and Rahul Rade and Faruk Kazi},
  title = {{Attacker Behaviour Profiling using Stochastic Ensemble of Hidden Markov Models}},
  year = {2019},
  eprint = {1905.11824},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.11824},
}
Figure