A deep learning-based DDoS detection system built using Convolutional Neural Networks (CNN). This project performs data preprocessing, trains a CNN model, and evaluates it on network traffic data to identify potential DDoS attacks.
- Preprocessing support for large datasets (tested on 7GB+ CSV files using pandas chunking)
- Automatically handles varying column names and standardizes them using
config.py - CNN architecture with 2D convolution layers, pooling, and fully connected layers
- Modular scripts: preprocessing, training (
model.py), and evaluation (testing.py) run.pyscript automates full pipeline
git clone https://github.com/Avadhoot4757/DDOS-Detection-With-CNN.git
cd DDOS-Detection-With-CNN
python3 -m venv myenv
source myenv/bin/activate
pip install -r requirements.txt
Place your large dataset (CSV file). We have included a balanced sample dataset sample_dataset.csv (under 10MB) containing equal entries from benign and DDoS classes, useful for quick testing under data/raw directory in root.
python3 run.py
This will:
- Preprocess the dataset
- Train the CNN model
- Save and evaluate the model
- Start the testing interface
- Balanced Dataset: https://www.kaggle.com/datasets/devendra416/ddos-datasets
- Research Paper (Referenced): A_Deep_CNN_Ensemble_Framework_for_Efficient_DDoS_Attack_Detection_in_Software_Defined_Networks.pdf