Skip to content

Implementation of a random forest classifier to detect http ddos attacks

Notifications You must be signed in to change notification settings

jatj/random_forest_http_attacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Random forest for HTTP DDoS attacks

This repo contains the implementation of a Random Forest algorithm for classifying network flows into normal or attack flows. To run a pretrained model with the first 5000 flows of the dataset run python3 main.py -m load_random_forest_bin. If you want to train the whole model again run python3 main.py -m random_forest_bin.

In this repo we used a HTTP DDoS attack dataset from , you can check more of this dataset here and download it here. It was converted from pcap to flows using flowtbag. If you have questions on how to prepare the dataset check our pcap parser repo

Dataset info:

Contains 24 h of network traffic with total size of 4.6 GB.

Classes:

  • slowbody2 (4 attacks)
  • slowread (2 attacks)
  • ddossim (2 attacks)
  • goldeneye (3 attacks)
  • slowheaders (5 attacks)
  • rudy (4 attacks)
  • hulk (4 attacks)
  • slowloris (2 attacks)

About

Implementation of a random forest classifier to detect http ddos attacks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages