GithubHelp home page GithubHelp logo

ankitkr492 / ddos_isaa_ml Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 136 KB

DDOS Attack Detection and Prevention using Machine Learning (ISAA Project)

License: GNU General Public License v2.0

Shell 1.08% Python 11.88% Jupyter Notebook 87.03%

ddos_isaa_ml's Introduction

DDOS_ISAA_ML

DDOS Attack Detection and Prevention using Machine Learning (ISAA Project)

Steps to run the project

Run "sh dependencies.sh" to install all the dependencies required for the project.

Collecting data for normal traffic:
In controller.py set
APP_TYPE = 0 #(0 -> data collection)
TEST_TYPE = 0 #(0 -> normal traffic)

In topo.py set
TEST_TYPE = 'normal'

Open two terminal tabs:
In terminal Tab1 run
"ryu-manager controller.py"

In Terminal Tab2 run
"sudo python3 topo.py"

(You will see all topoligies will be set up and normal traffic will start generating)
(On the first tab you will see normal traffic will be getting captured)

After generation of Normal Traffic
Clear the mininet logs by running this in Tab2\ "sudo mn -c"

Now simmilarly for generating Attack Traffic
In controller.py Set
APP_TYPE = 0 #(0 -> data collection)
TEST_TYPE = 1 #(1 -> Attack traffic)

In topo.py set
TEST_TYPE = 'attack'

Now rerun topo.py and controller.py to start generating and collecting attack traffic

Now when all the traffic has been generated and stored in result.csv

Now Steps for detection of traffic using ML
In controller.py Set
APP_TYPE = 1 #(1 -> detection)
TEST_TYPE = 0

First to show how it acts when normal traffic
In topo.py set
TEST_TYPE = 'normal'

Clear mininet logs using "sudo mc -c" and rerun topo.py and controller.py

You should see controller detecting Normal Traffic and allowing it

Now for testing against attack traffic
In topology set
TEST_TYPE = 'attack'

Clear mininet logs and rerun topo.py and controller.py

You should see controller detecting Attack Traffic and it will block the IP of attack source for 120 seconds.

ddos_isaa_ml's People

Contributors

ankitkr492 avatar

Stargazers

 avatar

Watchers

 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.