Skip to content

KamelAhmed01/Network-Forensics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Traffic Forensics

AI-assisted network traffic analysis system for real-time anomaly detection using Suricata and Isolation Forest.

Features

  • Real-time processing of Suricata's Eve JSON output
  • Unsupervised anomaly detection using Isolation Forest
  • Interactive web dashboard for monitoring anomalies
  • Detection of various cyber threats including DDoS attacks, malware communications, and unauthorized access

Quick Start

Prerequisites

  • Suricata installed and configured
  • Python 3.8+ with pip

Installation

  1. Clone the repository:

    git clone "Project Repo"
    cd network-forensics
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Install and configure Suricata:

    sudo ./scripts/install_suricata.sh
    

Configuration

  1. Configure Suricata to write to eve.json:

    sudo nano /etc/suricata/suricata.yaml
    

    Make sure the following is set:

    outputs:
      - eve-log:
          enabled: yes
          filetype: regular
          filename: /var/log/suricata/eve.json
          types:
            - alert
            - flow
    
  2. Create model directory:

    mkdir -p ~/network_data
    

Training the Model

  1. Collect normal traffic data:

    sudo ./scripts/collect_training_data.sh eth0
    
  2. Train the Isolation Forest model:

    python -m src.ai.training
    

Running the System

Start all components:

python src/main.py

Or run components separately:

# Run only the detector
python src/main.py --detector-only

# Run only the dashboard
python src/main.py --dashboard-only

Access the dashboard at [http://localhost:5000]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 69.6%
  • JavaScript 21.3%
  • HTML 9.1%