akanksham23/ai-network-intrusion-detection
0
π‘οΈ AI-Based Network Intrusion Detection System (AI-NIDS)
An AI-powered Network Intrusion Detection System that combines Machine Learning (Random Forest) with Generative AI (Groq LLM) to detect, analyze, and explain network attacks, focusing on DDoS traffic from the CIC-IDS2017 dataset.
This project is designed for cybersecurity students to understand how traditional ML and modern LLMs can work together in Security Operations Centers (SOC).
π How to Use
- Enter Groq API Key (Optional) Add your Groq API key in the sidebar to enable AI-based explanations.
- Train the AI Model Click βTrain AI Modelβ. The app automatically loads the CIC-IDS2017 DDoS dataset.
- Simulate Network Traffic Click βSimulate Random Packetβ to analyze a real network flow.
- Analyze Results
- Detects whether traffic is BENIGN or DDoS
- Displays confidence score
- Uses Groq AI to explain why the packet was classified as such
π§ Key Features
- β Random Forestβbased intrusion detection
- π Feature importance visualization
- π Accuracy & performance metrics
- π― Live packet simulation
- π€ LLM-based attack explanation (Groq)
- π‘οΈ SOC-style security reasoning
- π Student-friendly explanations
π Project Structure
<pre> AI-Based Network Intrusion Detection System βββ app.py βββ requirements.txt βββ Friday-WorkingHours-Afternoon-DDos.pcap_ISCX.csv βββ README.md </pre>
π File Details
- app.py β Streamlit application code
- requirements.txt β Python dependencies
- CSV Dataset β CIC-IDS2017 DDoS traffic subset
π Dataset Used
- CIC-IDS2017
- Realistic labeled network traffic
- Industry-standard dataset for IDS research
π Learning Outcomes
- Understand ML-based intrusion detection
- Interpret network traffic features
- Apply explainable AI in cybersecurity
- Bridge ML detection with SOC decision-making
- Gain hands-on experience with Streamlit dashboards
π§ͺ Future Enhancements
- Real-time PCAP capture
- Anomaly-based zero-day detection
- Deep Learning (LSTM / Autoencoders)
- MITRE ATT&CK mapping
- PDF attack reports
π©βπ» Author
Akanksha Vikas Mane BE IT | AI-Driven Security Research
β οΈ Disclaimer
This project is for educational and research purposes only. Not intended for direct production deployment.
