Skip to content

KnOX-07/ThreatSnare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UI

App Logo Threat Snare

A Malicious URL Detection App

ThreatSnare is a lightweight and intelligent web-based tool built using Flask and Machine Learning that analyzes and detects potentially malicious, phishing, defacement, or malware-infected URLs in real-time.

It uses an ML model trained on URL-based features and provides instant feedback on whether a website is safe or unsafe.


🚀 Features

  • 🧠 Machine Learning Model (LightGBM) trained on real-world malicious URL datasets.
  • Instant URL Prediction — just enter a link and get classified results.
  • 🌐 Smooth & Responsive Web Interface built with Flask and Tailwind CSS.
  • 🔒 Session-based results (no persistent storage).
  • ☁️ Deployed on Render with a custom domain and real-time monitoring via UptimeRobot.

🧩 Tech Stack

Component Technology
Frontend HTML, Tailwind CSS
Backend Flask (Python)
ML Model LightGBM
Deployment Render
DNS Hosting InfinityFree (custom domain)

🧠 Model Overview

The app uses URL-based feature extraction — such as the number of dots, presence of IP address, suspicious keywords, URL length, and other heuristics — to generate a feature vector for prediction.
The model then classifies URLs into one of four categories:

Label Meaning
SAFE No threat detected
DEFACEMENT Suspicious modifications
PHISHING Credential stealing attempt
MALWARE Harmful or infected link

🛠️ Setup (Local Development)

1. Clone the repository

git clone https://github.com/KnOX-07/ThreatSnare.git
cd ThreatSnare

2. Create a virtual environment (if you prefer)

python -m venv venv
source venv/bin/activate   # (on macOS/Linux)
venv\Scripts\activate      # (on Windows)

3. Install dependencies

pip install -r requirements.txt

4. Run the Flask app

python app.py

App will be available at: http://127.0.0.1:5000


🧑‍💻 Author

Rupal Mandal
📂 GitHub: @_ruP4L
🌐 Project: ThreatSnare
📧 Email: rupalmandal009@gmail.com

About

Threat Snare is a web-based threat intelligence and URL scanning tool.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors