Giter Club home page Giter Club logo

netstatsecwatcher's Introduction

NetstatSecWatcher

368179460_319636021009474_1427213308682831194_n NetstatSecWatcher is a Python script that monitors the netstat output, checks the reputation of public IP addresses using the VirusTotal API, and provides essential information about network connections.

Features

  • IP Reputation Check: Utilizes the VirusTotal API to assess the reputation of public IP addresses.
  • Netstat Information: Displays netstat information for each public IP address, including protocol, PID, process, etc.
  • Malicious Detection: Identifies malicious connections based on a configurable threshold. If the malicious score is above 10% of the total scans, it is marked as CRITICAL.
  • Suspicious Connections: If an IP has no reputation or a low reputation, it is marked as SUSPICIOUS.
  • Safe Connections: If an IP has a clean reputation (0 out of total detections), it is marked as INFO.

Prerequisites

  • Python 3
  • Requests library (pip install requests)

Usage

  1. Clone the repository:
    git clone https://github.com/your-username/netstatsecwatcher.git](https://github.com/xpinux/NetstatSecWatcher.git```
  2. Navigate to the project folder
  3. Replace 'your_api_key' with your actual VirusTotal API key in NetstatSecWatcher.py.
  4. run the script python NetstatSecWatcher.py

Configuration

Modify the regex pattern in the script to extract IP addresses from netstat output as needed. Adjust the malicious threshold as required.

Output Legend

  • CRITICAL: Indicates a malicious connection (malicious score above 10%).
  • SUSPICIOUS: Indicates a connection with no reputation or low reputation.
  • INFO: Indicates a safe connection.

License

This project is licensed under the MIT License.

Contribution

Feel free to contribute by opening issues or submitting pull requests.

Enjoy monitoring your computers with NetstatSecWatcher!

netstatsecwatcher's People

Contributors

xpinux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.