Code Monkey home page Code Monkey logo

dna_ids's Introduction

DNA-based Intrusion Detection System

The main idea of this project is using bioinformatic features in detecting masquerading attacks.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

git clone https://github.com/Dr-Livsey/dna_ids.git
cd dna_ids
pip3 install -r requirements.txt
python run.py -h

Examples

Run

Let you dataset located in datasets/CSV/IEEE-IoT/dos-syn-flooding-1 folder. So, running options of this IDS suit will be the next:

py -3 run.py \
--train_dataset datasets/CSV/IEEE-IoT/dos-syn-flooding-1/train.csv \
--test_dataset  datasets/CSV/IEEE-IoT/dos-syn-flooding-1/test.csv \
--codetable     datasets/CSV/IEEE-IoT/dos-syn-flooding-1/codetable.json

If you want to do test analysis of the IDS use the "--test_dataset" option.

Obtain machine learning metrics of IDS

To test this IDS prepare you datasets folders in the following way. For example, let we have 2 datasets to test. Firstly, put them into different folders, each of which should be contains 3 files:

  • train.csv - Train subset
  • test.csv - Test subset
  • codetable.json - Will be used in process of encoding traffic into DNA sequences.

So, we have 2 folders. For example:

  • datasets/CSV/IEEE-IoT/dos-syn-flooding-1
  • datasets/CSV/IoT/mirai-httpflooding-1

To run IDS test suit for above folder structure, use:

py -3 scripts/ids_test.py --dir datasets

This run will produce metrics.csv file with IDS characteristics which will be located in each above folder.

TODO

  • Implement interfaces for Dataset and IDS classes
  • Implement multithreaded searching of the best signature
  • Use "Builder" pattern when implementing the main IDS algo
  • To implement Smith-Waterman local alignment
  • Smith-Waterman & Needleman–Wunsch comparasion
  • Add ROC-curve metric

Datasets

Built With

  • Biopython - Main python module to work with DNA sequences

dna_ids's People

Contributors

boris-sinyapkin avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.