Skip to content

Simple Scapy-based tool to analyze PCAP files for malicious behavior, such as DDoS

License

Notifications You must be signed in to change notification settings

marcosValle/netlyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The main goal of this tool is to quickly analyze a pcap file in order to provide short metrics for the network and look for DDoS indicators. It currently detects only DNS and ICMP based attacks.

Install

We strongly recommend the usage of pipenv. From the root project folder, run:

pipenv install
pipenv shell
python netlyzer/main.py -h

Please remember to insert your API keys into the config.yml file.

Usage

  • Check IPs and Domains against both VT and AbuseIPDB

    python netlyzer/main.py -f ddos.pcap --check vt abuseipdb
    
  • Plot fancy graphics:

    python netlyzer/main.py -f ddos.pcap --graph
    
  • Show verbose reading of packets:

    python netlyzer/main.py -f ddos.pcap -v
    

How it works?

Netlyzer was developed from scratch using basically Python3.6, scapy and visualizing modules. It parses the packets and looks for heuristics that might indicate malicious activities. Currently, Netlyzer will only check DNS and ICMP.

Structure

The tool is divided into the following componentes

  1. Network Summary
  2. Network Viewer (netview)
  3. Malicious Checker (malchk)

Network Summary

The network summary component answers the following questions:

  1. How many DNS and ICMP packets are there in the capture?
  2. Which are the most active source IPs?
  3. Which are the most active dest IPs?
  4. Which are the most used domain names?

Network Summary example

Network Viewer

The netview component provides visualization for the gathered metrics. Currently, it is responsible for plotting results tables and IP activity graph.

Graph example

Malicious Checker

The malchk component checks the IPs and domains agains external databases for detecting malicious entities. It currently uses Virus Total and AbuseDBIP APIs.

VT and AbuseIPDB examples

About

Simple Scapy-based tool to analyze PCAP files for malicious behavior, such as DDoS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published