Skip to content

Legharihasham/Packet-Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cybersecurity Monitoring and Prevention System

A comprehensive system designed to detect, prevent, and respond to cyber attacks, focusing on network security, malicious link detection, and threat intelligence.

Features

  • Real-time network traffic monitoring
  • Malicious URL detection and filtering
  • Anomaly detection using machine learning
  • Intrusion detection and prevention system
  • Automated incident response
  • Threat intelligence integration
  • Security dashboard with alerts and reporting

System Requirements

  • Python 3.9 or higher
  • Linux, Windows, or macOS
  • Network adapter in promiscuous mode (for full packet capture)
  • Administrator/root privileges (for firewall rule management)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/cyber-security-system.git
cd cyber-security-system
  1. Create and activate a virtual environment:
# Linux/macOS
python3 -m venv venv
source venv/bin/activate

# Windows
python -m venv venv
venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create configuration:
# Copy example environment file
cp env.example .env

# Edit with your settings
nano .env
  1. Run the system:
python main.py

Configuration

The system can be configured through the following methods:

  1. Environment variables (see env.example)
  2. Configuration file (config.yaml)
  3. Command-line arguments
  4. Web dashboard settings page

Key Configuration Options

  • NETWORK_INTERFACE: Network interface to monitor (e.g., eth0, wlan0)
  • PACKET_BUFFER_SIZE: Number of packets to keep in memory buffer
  • BLOCKLIST_UPDATE_INTERVAL: How often to update URL blocklists (in seconds)
  • ENABLE_EMAIL_NOTIFICATIONS: Whether to send email notifications for threats
  • NOTIFICATION_EMAIL: Email address to receive security alerts

Components

The system consists of several integrated modules:

Network Monitor

Captures and analyzes network traffic in real-time, detecting suspicious patterns and potential intrusion attempts.

URL Filter

Blocks malicious websites and links by checking against blocklists and analyzing URL patterns.

Threat Detector

Uses machine learning and heuristic analysis to identify potential threats in network traffic and URL requests.

Response Module

Automatically responds to detected threats through IP blocking, domain blocking, and alerting.

Dashboard

Web-based user interface for monitoring system status, viewing alerts, and configuring the system.

Dashboard

The web dashboard is available at http://localhost:5000 after starting the system. It provides:

  • Real-time security monitoring
  • Threat alerts and statistics
  • Network traffic analysis
  • URL security checking
  • System configuration options

Security Considerations

This system is designed for defensive purposes only. Always ensure proper authorization before deployment in any environment. Some important considerations:

  • The system requires elevated privileges to monitor network traffic and apply firewall rules
  • Exercise caution when deploying in production environments
  • Regularly update the system and blocklists for optimal protection
  • This tool should be used as part of a broader security strategy, not as a complete solution

Development

To contribute to the project:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature-name
  5. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Packet Monitoring implemented for local environments to track the network usage and logs. Easily find vulnerabilities with easy to use UI

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages