34 URL Features
Lengths, punctuation, IP hosts, HTTPS, subdomain depth, shortened domains, suspicious TLDs and credential-related keywords.
A Streamlit-based phishing analysis system that extracts 53 deterministic URL and HTML features, evaluates them with classical machine-learning models, and returns a class, probability and feature-level evidence — without ever fetching the live website.
Modern phishing imitates trusted brands with familiar wording and urgent calls to action. The URL is a small artifact, but its hostname, path and structure can still preserve measurable clues about the destination behind it.
This project treats the URL (and optional authorised HTML) as evidence. It extracts a fixed set of signals, compares them with labelled examples, and surfaces the observations so a person can decide what deserves further investigation.
The goal is not an automated verdict. It is a structured inspection that supports cautious review before the click.
Lengths, punctuation, IP hosts, HTTPS, subdomain depth, shortened domains, suspicious TLDs and credential-related keywords.
Forms, password fields, links, scripts, iframes, login patterns and selected JavaScript cues (zero-filled when HTML is absent).
Labelled benign and phishing records streamed into MongoDB with SHA-256 upserts for clean, reproducible experiments.
A fixed-order 53-feature contract shared between offline training and online inference so feature order never drifts.
HTTP/HTTPS URL + optional authorised HTML.
Fixed 53-value vector in training order.
One of six offline-trained classical models.
Class, risk band and non-zero feature list.
Logistic Regression, Linear SVC, Random Forest, Extra Trees, Histogram Gradient Boosting and XGBoost trained offline.
Dataset records, features, model metadata and optional prediction history stored with SHA-256 upserts.
The application never requests the destination. HTML must already be available through an authorised process.
Results describe a controlled experiment, not a guarantee of detection on every future phishing campaign.
190 of 200 test records classified correctly.
76 of 81 phishing cases detected; 5 still missed.
Strong ranking ability across the probability spectrum.
High precision-recall performance under class imbalance.
Non-zero features are surfaced so the analyst can inspect the measurements, not only the final label.
The system never fetches the destination. It only analyses the URL and any HTML the user already possesses.
Phishing techniques change continuously. Static feature assumptions can become less representative over time.
Legitimate pages can look suspicious; sophisticated phishing can avoid obvious signals. Both error types have real consequences.
The reported metrics come from a 1,000-record sample (800/200 split). They are not a deployment benchmark.
Treat every prediction as triage support, never as authorisation to click. A “benign” label is not a safety guarantee.
Incorporate additional contextual and structural signals that remain stable across changing webpage designs.
Refresh training examples so evaluation tracks current phishing patterns rather than a fixed historical sample.
Move from a list of non-zero features toward clearer contribution rankings that help an analyst understand the decision.
Evaluate how the system behaves when attackers intentionally modify URL or HTML characteristics to bypass detection.
A fixed feature contract, offline-trained models and explicit evidence display turn a black-box score into something an analyst can inspect and question.
Extract measurable signals from the link itself.
Compare those signals against labelled examples.
Surface the non-zero features, not only the label.
Use the output for triage, never as permission to click.
Dataset and implementation.