Skip to content

Latest commit

Β 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐾 CyberHound – AI-Powered Intrusion Detection System

CyberHound is a real-time Intrusion Detection System (IDS) built with machine learning. It captures and analyzes live network traffic to detect suspicious activity such as DoS attacks, Brute Force, and Port Scans, then displays the results in a live web dashboard with PDF reporting.


πŸš€ Features

  • 🧠 Trained ML model using CIC-IDS2017 dataset
  • 🌐 Real-time packet sniffing with Scapy
  • πŸ“Š Live traffic visualization with Flask dashboard
  • πŸ“₯ PDF export of recent threats
  • πŸ” Filter results by time range and IP address
  • πŸ“¦ Lightweight and easy to deploy

πŸ“ Project Structure

CyberHound/ β”‚ β”œβ”€β”€ dashboard/ # Flask web dashboard β”‚ β”œβ”€β”€ app.py # Main Flask app β”‚ β”œβ”€β”€ static/style.css # Stylesheet β”‚ └── templates/dashboard.html β”‚ β”œβ”€β”€ sniffer.py # Live traffic sniffer with model inference β”œβ”€β”€ traffic.db # SQLite database storing traffic logs β”œβ”€β”€ randomforest_model.joblib # Trained ML model β”œβ”€β”€ selected_features.joblib # Top prediction features used while sniffing the network to determinate └── README.md # You’re here

πŸ› οΈ Installation

  1. Clone the repository

    git clone https://github.com/FIRSTGODOFCYBER/Cyber-Hound-v1.0.git cd CyberHound

  2. Set up a virtual environment python3 -m venv venv source venv/bin/activate

  3. Install dependencies pip install -r requirements.txt

  4. πŸ”½ Download Pretrained Model

This project uses a pre-trained 'randomforest_model.joblib' (60MB).

To download it: python download_model.py

  1. Run the sniffer and dashboard on seperate terminals for easy analysis of output python sniffer.py # Start traffic monitoring

cd dashboard python app.py # Start the dashboard

πŸ’» Usage

Dashboard URL: http://localhost:5000

Filters: Use the dashboard to filter by time range or IP address.

Export: Click the Download PDF button to export results with timestamps and a custom header.

🧠 Model Info

Dataset: CIC-IDS2017

Algorithms used: RandomForestClassifier

Accuracy: ~99% on test data

Supports: BENIGN, DoS, BruteForce, PortScan (expandable)

Built with Python 🐍

About

CyberHound 🐾 | Real-time AI-powered Intrusion Detection System (IDS) that sniffs network traffic, detects cyber threats like DoS & Port Scans, and visualizes results on a live web dashboard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages