Denizhalil

NetworkAssessment: Network Compromise Assessment Tool

The Network Compromise Assessment Tool is designed to analyze pcap files to detect potential suspicious network traffic. This tool focuses on spotting abnormal activities in the network traffic and searching for suspicious keywords.

Features

  • DNS Tunneling Detection: Identifies potential covert communication channels over DNS.
  • SSH Tunneling Detection: Spots signs of SSH sessions which may be used to bypass network restrictions or cloak malicious activities.
  • TCP Session Hijacking Identification: Monitors for suspicious TCP sessions which might indicate unauthorized takeovers.
  • Various Attack Signatures: Recognizes indicators of SYN flood, UDP flood, Slowloris, SMB attacks, and more.
  • Suspicious Keyword Search: Actively scans the network traffic for user-defined keywords that could be indicative of malicious intent or sensitive data leakage.
  • Protocol-Specific Scanning: Allows users to specify which protocols to monitor, ensuring focused and efficient analysis.
  • Output Logging: Provides an option to save detailed analysis results to a file for further investigation or record-keeping.
  • IPv6 Fragmentation Attack Detection: Spots potential attempts to exploit the fragmentation mechanism in IPv6 for nefarious purposes.
  • User-Friendly Display: Color-coded outputs and progress indicators enhance readability and user experience.

The tool is not just limited to the aforementioned features. With contributions from the community, its detection capabilities can continuously evolve and adapt to the latest threat landscape.

NetworkAssessment: Network Compromise Assessment Tool

Requirements

  • Python 3.x
  • scapy
  • argparse
  • pyshark
  • colorama

Installation

  1. Clone the repository:
   git clone https://github.com/HalilDeniz/NetworkAssessment.git
  1. Navigate to the project directory:
   cd NetworkAssessment
  1. Install the required dependencies:
   pip install -r requirements.txt

Usage

# python3 networkassessment.py --help
usage: networkassessment.py [-h] -f FILE [-p {TCP,UDP,DNS,HTTP,SMTP,SMB} [{TCP,UDP,DNS,HTTP,SMTP,SMB} ...]] [-o OUTPUT] [-n NUMBER_PACKET]

Network Compromise Assessment Tool

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Path to the .pcap or .pcapng file
  -p {TCP,UDP,DNS,HTTP,SMTP,SMB} [{TCP,UDP,DNS,HTTP,SMTP,SMB} ...], --protocols {TCP,UDP,DNS,HTTP,SMTP,SMB} [{TCP,UDP,DNS,HTTP,SMTP,SMB} ...]
                        Specify protocols to scan (e.g., TCP UDP)
  -o OUTPUT, --output OUTPUT
                        Path to save the scan results (optional)
  -n NUMBER_PACKET, --number-packet NUMBER_PACKET
                        Number of packets to scan (optional)
  • -f or --file: Path to the .pcap or .pcapng file you intend to analyze. This is a mandatory field, and the assessment will be based on the data within this file.
  • -p or --protocols: Protocols you specifically want to scan. Multiple protocols can be mentioned. Available choices are: “TCP”, “UDP”, “DNS”, “HTTP”, “SMTP”, “SMB”.
  • -o or --output: Path to save the scan results. This is optional. If provided, the findings will be saved in the specified file.
  • -n or --number-packet: Number of packets you wish to scan from the provided file. This is optional. If not specified, the tool will scan all packets in the file.

In the above example, the tool will analyze the first 1000 packets of the sample.pcap file, focusing on the TCP and UDP protocols, and will then save the results to output.txt.

Contact

If you have any questions, comments, or suggestions about NetworkAssessment, please feel free to contact me:

About the Original Author

NetworkAssesment is a fork of the original tool called Network_Assessment, which was created by alperenugurlu.
I would like to express my gratitude to Alperen Uğurlu for the inspiration and foundation provided by the original tool. Without his work, this updated version would not have been possible.
If you would like to learn more about the original tool, you can visit the Network_Assessment repository.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

💰 You can help me by Donating

Thank you for considering supporting me! Your support enables me to dedicate more time and effort to creating useful tools like NetworkAssessmentand developing new projects. By contributing, you’re not only helping me improve existing tools but also inspiring new ideas and innovations. Your support plays a vital role in the growth of this project and future endeavors. Together, let’s continue building and learning. Thank you!”



Leave a Comment

Join our Mailing list!

Get all latest news, exclusive deals and academy updates.