Deep Learning Models for NIDS
using NSL-KDD
and ICIDS2017
datasets.
python 3.7
pipenv
module
Use pipenv install
to install dependencies and pipenv shell
to run the virtual environment.
Each model has its own file with this format {model_name}.py
.
LSTM
modelGRU
modelRNN
modelDNN
model- Classic machine learning models (Naive Bayes, Ada Boost and more)
- Create a
data
directory at the root of the project if not exists. - Put NSL-KDD dataset into
data/nsl
directory - Put CICIDS2017 dataset into
data/cicids/
directory - Depending on your choices, these directories should be created into
data
directory:mul-nsl
,mul-cicids
,bin-nsl
andbin-cicids
. - Run for each model using
python run.py
CICIDS2017
is a pretty large dataset and processing it is time and memory consuming so for test purposes you can use theNSL
dataset.