Skip to content

dbrockmann/now-you-see-me-now-you-dont

Repository files navigation

now-you-see-me-now-you-dont

This repository provides the code base for our scientific work on constrained adversarial attacks in NIDS with a comparison of datasets and classification methods.

It is structured in flows, covering an operation that produces or/and consumes artifacts (e.g., preprocessing data or training the models), which can be called using python main.py <flow-name> (see main.py). All code regarding data processing can be found in datasets and preprocessing, training and testing classifiers in classification and models and applying and evaluating adversarial attacks in attacking and attacks. Necessary parameters, including the models and datasets used in the run of a flow, are defined in parameters.py.

Usage

pip install -r requirements.txt
python main.py <flow-name>

<flow-name> describes the processing step:

  • data-cleaning: Pre-processing of the datasets
  • data-undersampling: Tests undersampling strategies
  • data-feature-selection: Tests feature selection parameters
  • data-oversampling: Tests oversampling strategies
  • model-parameter-fitting: Finds the optimal model hyper-parameters using cross validation
  • model-retraining: Retrains the models with hyper-parameters on the full training set
  • model-evaluation: Evaluates the models on the test set
  • attack-initialization: Initializes the adversarial attack samples
  • attack-minimization': Minimizes successful adversarial examples
  • attack-evaluation-initialization: Evaluates the attack success
  • attack-evaluation-minimization: Evaluates the perturbation minimization

Define the datasets, models and attack types of a run in parameters.py. The paths to the raw datasets must be defined in the respective loading scripts in datasets. To add new datasets, models or attacks, define them in the respective folder and load them in parameters.py.

Classification Report

See classification-report.md for a detailed report on the classification results, including datasets, data processing, classifiers, and selected hyperparameters.

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages