Shreya934-bot/Malicious-URL-Threat-Detector

GitHub: Shreya934-bot/Malicious-URL-Threat-Detector

Stars: 0 | Forks: 0

# 🛡️ Malicious URL Threat Detector

![Python](https://img.shields.io/badge/Python-3.10+-blue?style=for-the-badge&logo=python) ![TensorFlow](https://img.shields.io/badge/TensorFlow-DeepLearning-orange?style=for-the-badge&logo=tensorflow) ![Gradio](https://img.shields.io/badge/Gradio-WebApp-ff4b4b?style=for-the-badge) ![Cybersecurity](https://img.shields.io/badge/Cybersecurity-URL%20Detection-green?style=for-the-badge) ![Status](https://img.shields.io/badge/Status-Deployed-success?style=for-the-badge)

## 🚀 Live Demo 🔗 **Hugging Face App:** https://shreya934-hybrid-url-detector.hf.space 🔗 **Hugging Face Space:** https://huggingface.co/spaces/shreya934/hybrid-url-detector # 📌 Project Overview Malicious URL Threat Detector is an AI-powered cybersecurity application that detects malicious URLs using a combination of: - 🧠 Deep Learning (BiLSTM) - ⚡ Hybrid Rule-Based Threat Detection - 🔍 Feature Engineering - 🌐 URL Intelligence Analysis The system classifies URLs into: - ✅ Benign - ⚠️ Phishing - 🚨 Malware - 🔥 Defacement This project combines machine learning intelligence with handcrafted cybersecurity logic to improve detection performance and real-world reliability. # ✨ Features ## 🔍 Threat Detection - Phishing URL Detection - Malware URL Detection - Website Defacement Detection - Benign URL Classification ## 🧠 AI Features - BiLSTM Deep Learning Architecture - NLP Tokenization - URL Sequence Processing - Threat Probability Analysis ## 📊 Visualization & Analytics - Interactive Threat Distribution Charts - URL Intelligence Dashboard - Feature Analysis Panel - Threat Risk Scoring ## ⚡ Additional Features - Downloadable Threat Reports - Scan History Tracking - Quick Test URL Simulation - Responsive Cybersecurity UI - Live Threat Analysis # 🧠 Model Architecture The deep learning model uses: - Embedding Layer - Bidirectional LSTM - Dense Neural Layers - Dropout Regularization - Softmax Multi-Class Classification ### Hybrid Detection Logic The application also integrates rule-based threat analysis for: - suspicious keywords - executable file detection - PHP defacement patterns - suspicious TLDs - IP-based URLs # 🛠️ Tech Stack | Technology | Purpose | |---|---| | Python | Core Development | | TensorFlow / Keras | Deep Learning | | Gradio | Web Application | | Plotly | Data Visualization | | NumPy | Numerical Computing | | Pandas | Data Handling | | Scikit-learn | Label Encoding | | NLP Tokenization | URL Processing | # 📂 Project Structure Malicious-URL-Threat-Detector/ │ ├── app.py ├── requirements.txt ├── tokenizer.json ├── label_encoder.pkl ├── bilstm_weights.weights.h5 │ ├── screenshots/ │ ├── homepage.png │ ├── benign_detection.png │ ├── phishing_chart.png │ ├── malware_chart.png │ └── feature_analysis.png │ └── assets/ # 📸 Screenshots ## 🏠 Homepage ![Homepage](https://static.pigsec.cn/wp-content/uploads/repos/2026/05/6f6d96f019224447.png) ## ✅ Benign URL Detection ![Benign](https://static.pigsec.cn/wp-content/uploads/repos/2026/05/121f5dd57b224448.png) ## 🔍 Feature Analysis ![Features](https://static.pigsec.cn/wp-content/uploads/repos/2026/05/e906322081224448.png) ## 📜 Scan History & Download Report ![History](https://static.pigsec.cn/wp-content/uploads/repos/2026/05/cd479d1ec7224449.png) # ⚙️ Installation ## 1️⃣ Clone Repository git clone https://github.com/Shreya934-bot/Malicious-URL-Threat-Detector.git ## 2️⃣ Move Into Project Folder cd Malicious-URL-Threat-Detector ## 3️⃣ Install Requirements pip install -r requirements.txt ## 4️⃣ Run Application python app.py # 🌐 Deployment This project is deployed using: - Hugging Face Spaces - Gradio Framework # 📈 Model Performance ✅ Test Accuracy: **87%** ✅ Multi-Class URL Classification ✅ Hybrid AI + Rule-Based Detection ✅ Real-Time Threat Analysis # 🔮 Future Improvements - 🌐 Real-Time Threat Intelligence APIs - 🧩 Browser Extension Integration - 🤖 Transformer-Based Detection Models - ☁️ Cloud Database Logging - 📡 Live Domain Reputation Scanning - 🔐 Advanced Threat Intelligence Integration # 👩‍💻 Author ## Shreya Verma 🎓 B.Tech CSE (AI & ML) 🛡️ Cybersecurity & AI Enthusiast 💻 Deep Learning Developer # ⭐ If You Like This Project Give this repository a ⭐ on GitHub! # 📜 License This project is licensed under the MIT License.