Skip to content

a2bshek/IntrusionDetectionSystem

Repository files navigation

DATASET

KDD Cup 1999 dataset by DARPA. The whole dataset can be downloaded from-

Intrusion Detection System

This project implements an Intrusion Detection System (IDS) using the KDD Cup 1999 dataset. It includes tools for feature extraction from network traffic and machine learning-based threat detection.

Project Structure

  • DATASET kddcup99/
    Contains the KDD Cup 1999 dataset files used for training and evaluation.

  • FeatureExtraction/
    C++ utility for extracting features from network traffic or pcap files, compatible with the KDD '99 dataset format.

  • Threat Detection/
    Python notebooks and scripts for building, training, and evaluating classifiers on the extracted features.

Getting Started

1. Dataset

Download the KDD Cup 1999 dataset from UCI KDD Archive and place the files in the DATASET kddcup99/ directory.

2. Feature Extraction

The feature extraction tool is implemented in C++ in the FeatureExtraction directory.

Build Instructions (Linux)

  1. Create a build directory:
    mkdir build-files
    cd build-files
  2. Generate build files with CMake:
    cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" ..
  3. Build the project:
    cd ..
    cmake --build ./build-files --target kdd99extractor -- -j 4
  4. The compiled binary will be at build-files/src/kdd99extractor.

For more details, see FeatureExtraction/README.md.

3. Threat Detection

The [Threat Detection](Threat Detection/README.md) directory contains Jupyter notebooks for:

  • Data preprocessing
  • Model training and evaluation
  • Visualization of results

Open the notebooks in JupyterLab or VS Code to run experiments.

Main Components

  • Sniffer: Captures and parses network traffic.
  • IP Reassembler: Handles IP header summaries.
  • Conversation Reconstructor: Reconstructs network conversations and computes intrinsic features.
  • Statistical Engine: Computes derived features for machine learning.

References

License

For educational and research

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published