(3.72 MB)
Download file

Predicting Sequential Network Attacks Using Hidden Markov Model - MATLAB Code

Download (3.72 MB)

This code reproduces the results for the research paper titled Contemporary Sequential Network Attacks Prediction Using Hidden Markov Model by Timothy Chadza, Konstantinos Kyriakopoulos & Sangarapillai Lambotharan presented at the 17th International Conference on Privacy, Security and Trust (PST), IEEE, Fredericton, NB, Canada, 2019. This is published under GNU GENERAL PUBLIC LICENSE Version 3. If you use this code, please, cite the above paper.

This work is on the evaluation of detection accuracy for determining all states, the current state, and the prediction of next state of an observation sequence, using the two conventional hidden Markov model training algorithms, namely, Baum Welch and Viterbi training. The training algorithms are initialised using uniform, random and count-based parameters. The experimental evaluation is conducted on the CSE-CIC-IDS2018, a modern dataset comprising seven different attack scenarios over a large network environment. The different attacks are sequentially aggregated to constitute an attack sequence. Viterbi decoding has been used to estimate the next state upon computation of the next attack manifestation.

The code is run by executing the main.m file in MATLAB.



  • Mechanical, Electrical and Manufacturing Engineering