Skip to content

cs7org/ADVIS-G

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADVIS-G: An Adversarially Defended Intrusion Detection System for Smart Grids Using Deep Learning

Proposed IDS flow diagram.

Setting Up

  1. Download the dataset DNP3 Intrusion Detection Dataset from Zenodo
  2. Unzip and copy all the CSV files related to CICFlowmeter and paste them into a single folder. These files will be the main data files.
  3. Read all files and combine them into a single CSV file. Relevant script: data_preparation/combine_csv.py.
  4. Install this project as pip install -e . and all its requirements too.

PCAP to Image

A packet for the array creation steps.

  • Read the CSV file for 120s Timeout and the corresponding PCAP files.
  • For each CSV:
    • Read each row.
    • Find the matching packets in the PCAP file.
    • Call matched packets "session" and assign the label to it.
    • Convert session to image.
  • Relevant script: data_preparation/dnp3_pcap_to_img.py. It needs a mapping file between CSV and PCAP file, and are inside assets.

Model Training

  • PyTorch 2.5.0 with GPU.
  • As MLFlow is being used for logging the parameters, the command mlflow server should be run before training a model. But for the HPC, it is disabled.
  • Dataset for session image data: advisg/data/session_image_dataset.py.
  • Trainer: advisg/models/trainer.py. A single trainer to train all models, but this is used by other modules in /trainers/.

Attack Classifier Training

Adversarial Training

Adversarial Blocking Model

Adversarial Generation

Evaluation

A proposed evaluation plan.

All files are inside adversarial.

These evaluation files create result CSV files (and sample images).

Generating Plots

Acknowledgment

The authors gratefully acknowledge the scientific support and HPC resources provided by the Erlangen National High Performance Computing Center (NHR@FAU) of the Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU). The hardware is funded by the German Research Foundation (DFG).

Cite

TBD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors