Skip to content

The AI-Based Network Intrusion Detection System is a machine learning–based security application designed to identify malicious activities in network traffic. It uses a Random Forest algorithm trained on intrusion detection data to classify network behavior as normal or suspicious.

Notifications You must be signed in to change notification settings

CodeWhizX/Ai-based

Repository files navigation

title emoji colorFrom colorTo sdk sdk_version app_file pinned
AI NIDS Student Project
🛡️
blue
green
streamlit
1.39.0
app.py
false

🛡️ AI-Based Network Intrusion Detection System (Student Project)

This project demonstrates how to use Machine Learning (Random Forest) and Generative AI (Grok) to detect and explain network attacks (specifically DDoS).

🚀 How to Use

  1. Enter API Key: Paste your Grok API key in the sidebar (optional, for AI explanations).
  2. Train Model: Click the "Train AI Model" button. The system loads the Friday-WorkingHours... dataset automatically.
  3. Simulate: Click "Simulate Random Packet" to pick a real network packet from the test set.
  4. Analyze: See if the model flags it as BENIGN or DDoS, and ask Grok to explain why.

📂 Files

  • app.py: The main Python application code.
  • requirements.txt: List of libraries used.
  • Friday-WorkingHours-Afternoon-DDos.pcap_ISCX.csv: The dataset (CIC-IDS2017 subset).

🎓 About

Created for a university cybersecurity project to demonstrate the integration of traditional ML and LLMs in security operations.

About

The AI-Based Network Intrusion Detection System is a machine learning–based security application designed to identify malicious activities in network traffic. It uses a Random Forest algorithm trained on intrusion detection data to classify network behavior as normal or suspicious.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages