Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fidaear/detect-DDOS-using-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

πŸ” DDoS Attack Detection using Machine Learning

This project uses supervised Machine Learning algorithms to detect DDoS (Denial of Service) attacks in Wireless Sensor Networks (WSNs). The goal is to distinguish between normal and malicious traffic using classification models.

πŸ“Š Dataset

  • WSN-DS dataset
  • Contains labeled data for normal and DDoS traffic
  • Features include packet length, time intervals, and other network metrics

βš™οΈ Algorithms Used

  • βœ… Random Forest
  • βœ… Logistic Regression
  • βœ… Neural Networks

Each model is trained and evaluated to compare accuracy and performance.

🧠 Main Steps

  1. Data Preprocessing
    • Cleaning, feature selection, and normalization
  2. Model Training
    • Train ML models on training data
  3. Evaluation
    • Test accuracy, confusion matrix, and F1-score
  4. Prediction
    • Detect whether incoming traffic is normal or an attack

πŸ“ Project Structure

β”‚ β”œβ”€β”€ data/ # WSN-DS dataset files β”œβ”€β”€ models/ # Trained models (optional) β”œβ”€β”€ src/ # Python source code β”‚ β”œβ”€β”€ preprocessing.py β”‚ β”œβ”€β”€ train.py β”‚ β”œβ”€β”€ evaluate.py β”‚ └── predict.py β”œβ”€β”€ results/ # Accuracy reports, confusion matrices β”œβ”€β”€ README.md └── requirements.txt # Python dependencies

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /