Skip to content

vippermanu/DeepDAD

Repository files navigation

DeepDAD (Deep learning based Bot DNS Anomaly Detector)

DeepDAD is a GUI based Bots DNS Anomaly detection tool which considers multipoint anomaly detection and uses deep learning algorithms for machine learning

(Tested on Windows 10 64 bit. Should work for Linux and other Windows versions)


I - Installation Instruction

  1. Install Python 3.6.8 (https://www.python.org/downloads/release/python-368/)

  2. Install Pycharm Community Edition (Optional)

  3. Install Following Packages

    a) python -m pip install ipaddr

    b) python -m pip install dpkt

    c) python -m pip install geoip2

    d) python -m pip install matplotlib

    (Note: in case of error, upgrade pip to latest version using this command : python -m pip install -U pip)

    e) python -m pip install win_inet_pton

    f) python -m pip install gephistreamer


II- Dataset Preparation

  1. Filter all DNS traffic from Pcap file as tool analyses DNS packets only using command below :

    c:\Progra~1\Wireshark\tshark.exe -r "input.pcap" -F pcap -Y dns -t ad -w "big.pcap"

  2. Convert a bigger pcapfile to 1 hour duration using the command below as fingerprint are calculated for one hour:

    c:\Progra~1\Wireshark\editcap.exe -F pcap -i 3600 "big.pcap" "slice.pcap"

              OR
    
  3. Download the sample file (20160421_150521.pcap) from link below:
    

    https://drive.google.com/file/d/14cRY6aEQz_xVsfySBb4Ik6mPYDLoIc88/view?usp=sharing

             OR
    
  4. Download sample file from Mendeley Dataset from link below:
    

    https://data.mendeley.com/datasets/zh3wnddzxy/1


Running DeepDAD

  1. Download and extract the zip from the github repository to DeepDAD Folder

  2. <<DeepDAD_Path>>:> $Path_python3_executable GUI.py

  3. Select pcap File using Browse buton

  4. Set Packet Max. Count to 10000000

  5. Select Display as Bot Only

  6. Click Start Parse

Optional:

To use gephi streamer

  1. Run gephi (0.9.2) with administrative privileges
  2. Install Plugin : Graph Streaming if not already installed
  3. Start Master Server
  4. Go to GUI and click export to gephi

For DeepDAD machine learning module please refer readme file from link below:

https://github.com/mannirulz/DeepDAD/blob/master/ML/README.md

About

DeepDAD is a GUI based Bot DNS Anomaly detection tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published