Package: deepdos
deepdosDescriptionWelcome to deepdos, the python program written to monitor and potentially secure your network
from ddos attacks! While not currently utilizing deep learning to classify packets, deepdos currently
utilizes logistic regression in order to classify packets and has so far been trained on 200,000 packets from
all sorts of DDOS attacks and normal traffic setup. This project couldn't have been
done without the help of the Canadian Institute for Cybersecurity with providing both the original flow dataset
and tool to create flow csvs from .pcap files. Their site and all resources have been linked at the bottom.GoalsShort term goalsAdd LR test metrics on startupUpdate LR to use better data for better performanceAdd command line interfaceLong term goalsConvert Logistic regression model to a neural networkSupport both macos and Linux (potentially Windows as well if pcap is easy)Add ddos mitigation/firewall rule supportHow to run/setupRunning from scratchdeepdos is currently only available on linux, but can simply be run by these two commands:# clone repogitclonehttps://github.com/C3NZ/deepdos# Install dependencies and setup the projects virtual environmentsourcebash/setup.sh# Execute the script (Needs sudo in order to execute both tcpdump and iptables)python3main.py-hThis will load you into a virtualenv with all of the dependencies installed and ready to use.To remove all of the dependencies after you're done using the tool, you can simply run:sourcebash/remove.shand then remove the folder from your computer :)This will immediately start creating necessary folders, capturing packets, and then identifying
the traffic that is being exchanged in and out of your current computer.This also assumes that you have java installed for the program to execute the CICFlowMeter jar
file.Installing with pipLinuxsudoaptinstalllibpcap-devpython3-devpython3-setuptools
pip3installdeepdosMacosbrewinstalllibpcap
pip3installdeepdosUsageusage: main.py [-h] [-i INTERFACE] [-n NAUGHTY_COUNT] [--find-interface]
               [--firewall FIREWALL] [--model-type MODEL_TYPE]

Welcome to deepdos, the machine learning/ai based ddos analysis/mitigation
service

optional arguments:
  -h, --help            show this help message and exit
  -i INTERFACE          [REQUIRES SUDO] The network interface for deepdos to
                        listen to (default: None)
  -n NAUGHTY_COUNT      The amount of malicious flows that can come from a
                        given address (default: 10)
  --find-interface      List all of your devices network interfaces. Good if
                        you don't know what interfaces your device has
                        (default: False)
  --firewall FIREWALL   [REQUIRES SUDO] Turn on firewall mode for the given
                        system. linux for Linux systems and macos for mac (Not
                        yet supported) (default: None)
  --model-type MODEL_TYPE
                        The model that you would like to use for classifying
                        the data (default: lr-stable-0.9.0.pickle)
usage: src [-h] [-i INTERFACE] [-n NAUGHTY_COUNT] [--find-interface]
           [--firewall FIREWALL] [--model-type MODEL_TYPE]How to deployYou can deploy this on your own machine, but production use will come in the future.Live deploymentsThis will be on pypi soon :)How to contributeFork the current repository and then make the changes that you'd like to said fork. Upon adding features, fixing bugs,
or whatever modifications you've made to the project, issue a pull request to this repository containing the changes that you've made
and I will evaluate them before taking further action. This process may take anywhere from 3-7 days depending on the scope of the changes made,
my schedule, and any other variable factors.ResourcesUNB datasetsCICnetflowmeterCIC License