Simple RandomForest based Network Intrusion Detection System (NIDS), developed for Sicurezza Informatica Exam at UNIMORE
It conatins adversarial attacks with perturbation in feature space, which was the goal of the project
Trained on CTU13-Dataset Rbot malware:
https://mcfp.felk.cvut.cz/publicDatasets/CTU-Malware-Capture-Botnet-42/detailed-bidirectional-flow-labels/capture20110810.binetflow
Clone repo, create data/ and data/raw folders. Download binetflow in data/
curl <link_ctudataset> > rbot.binetflow
python preprocess.py
python RF_Adversarial.pyt
To enable adversarial attacks, enable perturbation of dataset in preprocess.py setting GEN_ADVERSARIAL=1 and ADVERSARIAL=1 in RF_Adversarial.py
Related reading: https://dl.acm.org/doi/abs/10.1145/3555776.3577651