AI-Based Phishing Website Detection
Research Article • Article ID: IJREK-2026-00218
Abstract
Phishing websites imitate legitimate online services to deceive users into revealing credentials, financial details, or other sensitive information. Static blocklists can identify known malicious URLs but may not recognize newly created or modified phishing pages. This paper studies an AI-based approach for identifying suspicious websites through URL lexical characteristics, domain information, and safely obtained webpage features. It presents a modular architecture covering input validation, feature extraction, machine-learning classification, risk assessment, and result presentation. Candidate methods such as Logistic Regression, Support Vector Machines, Decision Trees, Random Forest, and deep-learning models are discussed. Dataset preparation, leakage-resistant splitting, evaluation using precision, recall, F1-score, and confusion matrices, and deployment safeguards are examined. Attention is given to false positives, false negatives, concept drift, privacy, and the risks of fetching untrusted URLs. This paper provides a technical design and evaluation framework; it does not claim experimental accuracy or results without a completed experiment.
Keywords
1. INTRODUCTION
Online banking, e-commerce, cloud services, and social networking have made websites an essential part of everyday life. This dependence has also increased exposure to phishing attacks. In a phishing attack, an attacker impersonates a trusted organization or service to persuade users to reveal passwords, banking details, one-time passwords, or other sensitive information.
Phishing websites may imitate legitimate login pages, use lookalike domain names, misleading subdomains, shortened links, or copied branding. Traditional blocklists can identify known malicious URLs but may not recognize newly created or modified phishing pages. This creates a need for detection approaches that can identify suspicious patterns beyond previously reported addresses.
Artificial Intelligence (AI) and Machine Learning (ML) can analyse multiple URL and webpage characteristics and learn patterns associated with malicious websites. A detector can convert these characteristics into features, apply a trained classifier, and return a risk assessment to help users make safer decisions.
This paper presents a technical study of an AI-based phishing website detection system. It covers phishing techniques, detection features, dataset preparation, feature engineering, machine-learning algorithms, architecture, evaluation, implementation, security, limitations, and future improvements. It does not claim experimental accuracy or results that have not been measured.
2. PROBLEM STATEMENT AND OBJECTIVES
Users receive suspicious links through email, SMS, advertisements, social media, and messaging applications. A deceptive website can closely resemble a genuine service, making manual inspection difficult. Blocklists are useful for known threats but cannot guarantee detection of new or modified phishing URLs.
The problem is to design a system that accepts a URL or safe webpage-related features and estimates whether the target is likely to be legitimate or phishing. The system should validate input, process features consistently, provide an understandable result, and communicate uncertainty instead of presenting predictions as guarantees.
The objectives are to study phishing methods; identify URL, host, and webpage indicators; design an AI/ML detection pipeline; examine candidate classification algorithms; define evaluation measures; describe a software implementation; and consider privacy, false positives, false negatives, and safe deployment.
3. SCOPE AND APPLICATIONS
The proposed system focuses on detecting suspicious websites through URL-based features and, where safely available, webpage-derived information. A URL-only version can classify a link without loading the target page, reducing exposure to malicious scripts. A richer version may use controlled sandboxing or safe metadata retrieval.
Possible applications include browser safety extensions, email link screening, enterprise web gateways, cybersecurity awareness tools, and security operations workflows. Educational institutions and small organizations may use a detection interface to help users assess unfamiliar links.
The detector is a decision-support tool, not a guarantee that a website is safe. Legitimate websites can be compromised, and phishing pages can evade models. High-risk decisions should combine model output with browser protections, reputation services, threat intelligence, and human review.
4. UNDERSTANDING PHISHING ATTACKS
Phishing is a social-engineering technique in which an attacker impersonates a trusted organization or person to manipulate a victim into an unsafe action. Website-based attacks commonly direct victims to fraudulent forms that collect credentials or payment details. Spear phishing targets selected individuals or organizations, while broad campaigns target many recipients.
Common techniques include typosquatting, lookalike domains, deceptive subdomains, URL shortening, homograph characters, fake login pages, and copied branding. Attackers may use HTTPS certificates to encrypt connections; therefore, HTTPS alone does not prove that a website is trustworthy.
Phishing infrastructure changes rapidly. Attackers rotate domains, use compromised hosting, or modify page content to avoid detection. A reliable detection approach should consider several independent indicators and be updated as threat patterns evolve.
5. INDICATORS AND FEATURES FOR DETECTION
URL lexical features include total URL length, hostname length, number of dots, hyphens, digits, special characters, path depth, query length, and whether the hostname is an IP address. Suspicious tokens and excessive subdomain levels may also be useful, but no single indicator is conclusive.
Host and domain features may include domain age, registration information where accessible, DNS records, name-server patterns, and certificate metadata. Such features can be unavailable, delayed, privacy-protected, or unreliable. Missing values must be handled explicitly, and a certificate must not be treated as proof of legitimacy.
Webpage features, when obtained safely, may include form actions, external resources, redirect behaviour, page-title similarity, favicon information, and credential input fields. Retrieving page content introduces risk and should occur only in an isolated environment. The system must never submit credentials or execute untrusted active content as part of ordinary classification.
6. PROPOSED SYSTEM ARCHITECTURE
The proposed architecture contains input validation, feature extraction, model inference, risk assessment, result presentation, and feedback monitoring. The input module accepts a URL and validates its format. The feature module derives lexical characteristics and optional safe metadata. The classifier predicts a class or score, and a decision layer maps it to a clear risk category.
A practical first version can use URL-only features because they are easier to collect and safer to process than full webpage content. A later version may add domain reputation and sandbox-derived features after security review. The feature extraction logic used during prediction must match the logic used during model training.
The interface should explain the result with a short reason summary when supported, such as suspicious URL structure or a threat-intelligence match. It should not claim certainty beyond the model's validated capability.
Figure 1. Proposed architecture for AI-based phishing website detection.
7. DATASET COLLECTION AND PREPARATION
A supervised model requires examples labelled as phishing or legitimate. Data may come from reputable public cybersecurity datasets and threat-intelligence feeds, subject to their terms and update policies. Documentation should record the source, collection date, label definition, URL status, and coverage limitations.
Data cleaning should remove malformed entries, normalize URL encoding carefully, resolve duplicates, and check for conflicting labels. Labels can become outdated because domains change ownership or hosting behaviour. Time-stamped records help evaluation reflect the changing nature of phishing campaigns.
Training, validation, and test sets must be separated to prevent leakage. Near-duplicate URLs, pages from the same campaign, or related domains should not be carelessly distributed across partitions. A chronological test set can better estimate performance on future threats.
8. FEATURE ENGINEERING AND REPRESENTATION
Feature engineering converts raw URLs and metadata into values suitable for machine learning. Numerical features may represent lengths and counts, while categorical features may represent protocol, top-level domain, or host characteristics. Text-based URL components can be represented using character n-grams or token features.
Character-level representations can capture unusual spelling patterns and inserted symbols that may occur in deceptive domains. Tree-based models can learn non-linear combinations of engineered features, while linear classifiers provide useful baselines. Feature scaling and encoding must be fitted only on training data.
Feature selection should consider validation performance and security relevance. Features requiring external lookups can increase latency and may fail when services are unavailable. A robust implementation should define fallback behaviour for missing or stale metadata.
9. MACHINE LEARNING ALGORITHMS
Logistic Regression is a common baseline for binary classification. It estimates the relationship between input features and class probability and can provide interpretable coefficients. Support Vector Machines can perform effectively with high-dimensional URL character features, although probability estimates may require calibration.
Decision Trees provide understandable rule-based splits but can overfit. Random Forest combines multiple trees and can model non-linear feature interactions. Gradient-boosting methods can also work well on structured features but require careful tuning and monitoring.
Deep-learning models can learn character or token patterns from URLs, and transformer-based approaches may represent complex sequences. Their value should be demonstrated through fair comparison with simpler baselines. Model choice depends on data quality, latency, resources, interpretability, and the cost of different errors.
10. SYSTEM IMPLEMENTATION WORKFLOW
A software implementation may provide a web form where a user enters a URL. The frontend sends it to a backend API over a secure connection. The backend validates the input, extracts features, loads a versioned model, calculates a prediction, and returns a structured result with the classification and supported explanation.
The system should reject unsupported schemes and malformed input, limit URL length, and avoid automatically opening arbitrary URLs from the application server. If page retrieval is required, it should occur in an isolated environment with strict network controls, redirect limits, timeouts, and protection against server-side request forgery.
Results may be stored for operational analysis, but raw URLs can contain personal or session information. Logging should minimize sensitive data and apply access controls and retention limits. User feedback can help identify errors, but it should be reviewed before being used for retraining.
11. EVALUATION AND PERFORMANCE MEASURES
Evaluation must use a test set that was not used for training or model selection. Accuracy measures the fraction of all predictions that are correct, but can be misleading when legitimate URLs greatly outnumber phishing URLs. Precision measures how many URLs predicted as phishing are actually phishing, while recall measures how many phishing examples are detected.
F1-score combines precision and recall through their harmonic mean. A confusion matrix records true positives, true negatives, false positives, and false negatives. False positives can block legitimate websites and frustrate users; false negatives can allow phishing pages to pass through. Both error types must be analysed.
Evaluation may also consider ROC-AUC or precision-recall curves, especially with imbalanced classes. Time-based testing, campaign-level separation, and evaluation on unseen domains can better measure generalization. No performance score should be reported unless it comes from a reproducible experiment on a documented dataset.
Figure 2. URL analysis and classification workflow.
12. SECURITY, PRIVACY AND DEPLOYMENT
A phishing detector is itself a security-sensitive service. It should validate input, use secure API communication, restrict administrative access, and protect model files and datasets. If external reputation APIs are used, credentials should be stored securely and rate limits respected.
Fetching arbitrary URLs can expose the backend to server-side request forgery, internal network scanning, malicious downloads, redirect loops, and resource exhaustion. The safest first version should classify URL-derived features without fetching the target page. If retrieval is essential, use an isolated sandbox, outbound network restrictions, strict timeouts, redirect limits, and content-size limits.
Privacy controls should minimize stored user data and avoid collecting credentials or form contents. Users should be told that predictions are automated and may be wrong. Logs and feedback data should be retained only for a defined purpose and period.
| Metric | Interpretation | Importance |
|---|---|---|
| Precision | Correct phishing predictions / all phishing predictions | Controls false alarms |
| Recall | Detected phishing URLs / all phishing URLs | Measures missed threats |
| F1-score | Harmonic mean of precision and recall | Balances both |
| Accuracy | Correct predictions / all predictions | Can mislead on imbalanced data |
| Confusion matrix | Counts TP, TN, FP and FN | Shows error types |
13. CHALLENGES AND LIMITATIONS
Attackers continuously change domains, page templates, hosting providers, and URL patterns. A model trained on historical data may become less effective as campaigns evolve. This is concept drift and requires periodic evaluation and carefully governed updates.
Legitimate websites can have unusual URLs, newly registered domains, or complex redirects, causing false positives. Phishing sites may use clean-looking URLs, trusted hosting platforms, and valid HTTPS certificates. No single feature is sufficient for a reliable decision.
Dataset bias, stale labels, duplicate campaigns, and leakage can produce misleading evaluation. Models may behave differently across languages, regions, and website categories. A practical system should communicate uncertainty, support analyst review, and combine ML with established security controls.
14. FUTURE ENHANCEMENTS
Future versions may combine URL lexical features with domain reputation, DNS observations, certificate metadata, and sandbox-derived webpage features. Multi-source analysis can improve coverage, provided each source is validated and its privacy and security implications are understood.
Explainable AI methods may identify which features contributed to a risk prediction. Browser extensions and email integrations can provide warnings closer to the point where users encounter suspicious links. A feedback workflow can support analyst review and carefully curated dataset updates.
Further research may investigate continual learning, adversarial robustness, multilingual phishing detection, graph-based analysis of related domains, and efficient models for edge devices. Each enhancement should be evaluated against realistic, time-separated data and tested for security weaknesses.
15. CONCLUSION
AI-based phishing website detection can help identify suspicious web addresses by analysing URL, domain, and safely obtained webpage characteristics. Machine-learning methods learn patterns from labelled examples and produce a risk assessment that can support users and security teams.
A dependable solution requires representative datasets, careful feature engineering, leakage-resistant evaluation, and attention to false positives and false negatives. URL-only detection offers a safer starting point, while webpage inspection should be isolated and tightly controlled. Model outputs should be treated as guidance rather than an absolute guarantee of safety.
The proposed architecture provides a modular foundation for a software-based phishing detection application. Future development should prioritize real-world evaluation, model maintenance, privacy, secure URL handling, and integration with established cybersecurity protections. No unsupported accuracy or experimental result is claimed in this paper.
MODEL COMPARISON AND SELECTION
A fair model comparison should begin with a transparent baseline and then test more complex approaches. Logistic Regression can provide an interpretable reference model. Support Vector Machines are suitable for sparse character n-gram features. Random Forest and gradient-boosting methods can learn non-linear relationships among engineered URL and domain attributes. Neural models may learn sequence patterns directly, but their added complexity should be justified by measured improvements.
| Method | Potential strength | Consideration |
|---|---|---|
| Logistic Regression | Fast, interpretable baseline | Needs useful features |
| SVM | Effective with sparse text features | Tuning and calibration |
| Random Forest | Non-linear feature interactions | Less transparent |
| Gradient Boosting | Structured-data modelling | Careful tuning |
| Deep Learning | Learns complex sequences | More data and compute |
Model selection should use validation data and a protocol that reflects deployment. Accuracy alone is insufficient when the dataset is imbalanced. Precision-recall trade-offs, false-alarm cost, missed-threat cost, latency, model size, and explainability should all be considered.
SAFE TESTING AND MAINTENANCE
Testing should cover malformed and unusually long URLs, Unicode and internationalized domain names, redirects, missing metadata, unavailable reputation services, and legitimate websites with uncommon structures. Unit tests can validate URL parsing and feature extraction. Integration tests can verify the API response and frontend display. Model tests should include previously unseen domains and campaigns.
Automatically visiting a user-supplied URL from the backend can expose internal services or cloud metadata endpoints through server-side request forgery. A safer first version classifies URL-derived features without fetching the target page. If retrieval is essential, it must be isolated with network egress controls, timeouts, redirect limits, and content restrictions.
Maintenance should include model version control, periodic testing against fresh and lawfully sourced data, drift monitoring, and a documented rollback procedure. Analyst feedback should be reviewed before it is added to training data. These practices help prevent stale labels and accidental model degradation.
How to Cite this Contribution
Rutuj Dhundale et al. (2026). AI-Based Phishing Website Detection. International Journal of Research, Exploration & Knowledge (IJREK), 1(1).
Distributed under Creative Commons Attribution 4.0 International (CC BY 4.0).
