hacker4444/Network_scanner
1
1---2title: AI NIDS Student Project3emoji: ๐ก๏ธ4colorFrom: blue5colorTo: green6sdk: streamlit7sdk_version: 1.39.08app_file: app.py9pinned: false10---11 12# ๐ก๏ธ AI-Based Network Intrusion Detection System (Student Project)13 14This project demonstrates how to use **Machine Learning (Random Forest)** and **Generative AI (Grok)** to detect and explain network attacks (specifically DDoS).15 16## ๐ How to Use171. **Enter API Key:** Paste your Grok API key in the sidebar (optional, for AI explanations).182. **Train Model:** Click the "Train AI Model" button. The system loads the `Friday-WorkingHours...` dataset automatically.193. **Simulate:** Click "Simulate Random Packet" to pick a real network packet from the test set.204. **Analyze:** See if the model flags it as **BENIGN** or **DDoS**, and ask Grok to explain why.21 22## ๐ Files23- `app.py`: The main Python application code.24- `requirements.txt`: List of libraries used.25- `Friday-WorkingHours-Afternoon-DDos.pcap_ISCX.csv`: The dataset (CIC-IDS2017 subset).26 27## ๐ About28Created for a university cybersecurity project to demonstrate the integration of traditional ML and LLMs in security operations.