Final Implementation Paper
Final Implementation Paper
Abstract— Phishing is one of the stealthy and ominous resulting in irreversible financial and reputational loss.
tactics used by cybercriminals to deceive individuals and Despite thorough studies and countermeasures, the attackers
gain unauthorized access to their personal information continue to innovate with more advanced techniques,
such as login information, financial and personal rendering traditional detection tools such as rule-based
information by pretending trusted organizations such as heuristics and blacklists insufficient for new or evasive
banks or social media. With security increasing, the attacks. This limitation requires sophisticated, automated
modus operandi of phishing is being studied at a greater means of real-time detection of advanced attacks. To address
pace than conventional detection technologies such as these issues, we propose PhishNetGuard as a solution in this
blacklisting and heuristic-based systems based on static paper, an AI system which uses ML to identify phishing web
rules or known attack signatures. Such technologies fail sites with high accuracy. PhishNetGuard differs from
to detect new or rapidly changing phishing attacks traditional systems by analyzing more informative features
against individuals and businesses, with threats of like URL syntax, domain attributes, web-page content, and
information hijacking and financial deception. The behavioral indicators to identify malicious web sites
traditional systems are limited to learning predefined dynamically. Utilizing deep learning methodologies such as
phishing patterns, ML models can be trained to analyze Long Short-Term Memory (LSTM) networks, the system
complex patterns in website attributes – URL patterns, analyzes sequential and context-dependent URL and web-
traffic abnormalities, and content – to detect malicious content anomalies with fewer false alarms and sensitivity to
intent in real-time. new attack patterns.
This paper introduces PhishNetGuard, an ML-powered
high-accuracy and scalable detector of phishing websites.
By using ensemble approaches and deep neural networks This essay follows the following pattern:
and feature engineering, PhishNetGuard outgrows rule- ● Section II provides a literature survey, highlighting recent
based approaches and provides active defense for zero- advancements in phishing detection and identifying gaps
day phishing attacks. Experimental results show it to be in existing models.
efficient in phishing-versus-legitimate website ● Section III describes the methodology, with the
discrimination across varied datasets and risk architecture of the proposed PhishNetGuard system and
minimization in today's highly connected digital world. the machine learning techniques employed.
Real-time execution and adaptability make it an effective ● Section IV discusses the results, analyzing the
tool to guard user trust and cybersecurity infrastructure. performance metrics across different datasets and model
configurations.
Keywords— Phishing, LSTM, URL Vectorization ● Section V explores future directions for improvement,
such as incorporating hybrid models and federated
I. Introduction learning.
Phishing is among the most widespread and most destructive ● Section VI concludes the paper.
types of cyberattacks, which exploit the trust of human beings ● Section VII includes relevant references.
to utilize sensitive financial and personal information, usually
PhishNetGuard brings the gap between theoretical research could improve its effectiveness and usability in real-world
and practical deployment in real-world cybersecurity close applications.
by. D. “Real-time phishing detection using deep learning
II. LITERATURE SURVEY methods by extensions”, 2024 [4]:
Dam Minh Linh et al., 2024 in [4] introduced a variety of
A. “Improved Detection of Phishing Websites using machine learning models as well as deep learning models,
Machine Learning “, 2024 [1]: including Logistic regression, Decision tree, Random forest,
Sumo Sami M Aldaham et al., 2024 in [1] used multiple Support vector machine, CNN, and CNN-LSTM to detect
machines to detect phishing websites. The paper highlights fake/phished URL dataset using evaluation metrics such as
that increased threats are becoming more advanced over time accuracy, precision, and detection rate (i.e. recall), in order to
and especially in targeted forms like spear phishing and propose a browser extension for real-time phishing detection
whaling and it becomes hard to figure them using the that can be installed on the web browser with the Chromium
traditional rule-based systems. There are four machine kernel (e.g., Google Chrome and Microsoft edge). The
learning models: Decision Tree (DT), Random Forest (RF), extension, developed using JavaScript, receives the URL
Support Vector Machine (SVM), and Artificial Neural from the user's browser, transmits it to a server where it is
Network (ANN) which are evaluated using a dataset classified as phishing or legitimate using a pre-trained CNN,
containing 10,000 samples obtained from [Link]. As and then alerts the user with a pop-up if a malicious URL is
a result, the performance of Decision Tree and Random detected. The model utilized 651,191 URL samples with a set
Forest Models was achieving the accuracy of 96.2% and of 270 characters and an embedding size of 128 to capture
97.4% respectively with low error rate, while SVM and ANN patterns in URL effectively. Hence, CNN algorithm achieved
model showed comparatively lower accuracy, 90.1% and the highest accuracy of 98.4% at an 8:2 train-test split among
88.7% respectively, and needs to be improved specifically in the other models including CNN-LSTM, which, while
reducing false negatives. effective, did not surpass the standalone CNN in accuracy.
This extension identifies malicious sites and alert users, and
B. “A Machine Learning Approach for Phishing Attack
therefore reduces the risk of users falling for phishing attacks.
Detection”, 2023 [2]:
Using two dataset samples, [Link] and UCI, E. “Phishing URL Detection Using CNN-LSTM and
Tarun Choudhary et al., 2023 in [2] discuss the solid basis for Random Forest Classifier”, 2022 [5]:
feature-based phishing detection by employing five In order to enhance phishing URL identification using
algorithms: Random Forest, Extreme Gradient Boosting, techniques like machine learning and deep learning
Logistic Regression, Decision Tree, and Support Vector techniques, Sopnil Nepal et al., 2022 in [5] used a CNN-
Machine and used two dataset samples, [Link] and LSTM model with a Random Forest classifier. For the
UCI, where 25 and 30 features were extracted respectively, Random Forest approach, they used 100 estimators to train
including URL structure, anchor tags, port usage, abnormal the model after extracting 14 features from every URL.
URLs, and use of non-standard ports from UCI dataset. The However, CNN-LSTM segmented URLs at character level,
performance of models was evaluated using K-fold cross- encoded them into embeddings, passed through a 1D
validation, feature selection techniques, and hyperparameter convolution and pooling layer to extract features, then fed
tuning. In addition, this model focuses on traditional machine them into an LSTM layer to learn sequential patterns and
learning models and doesn't use deep learning methods such finally classified as a sigmoid activation function. As
as CNNs or LSTMs, which have shown higher efficiency in Random forest is dependent on manually derived features,
sequence-based data like URLs. Also, the Random Forest this model achieved an accuracy of 70.25%, and CNN-LSTM
model achieved the maximum accuracy of 98.80% on achieved an accuracy of 94.3%, highlighting the ability and
PhishTank and 97.87% on UCI, with precision, recall, and accuracy of deep learning in phishing URL detection.
F1-score values reaching up to 99%, highlighting the ability
and accuracy of ensemble models in phishing detection. F. “Detecting phishing attacks using a combined model of
LSTM and CNN”, 2020 [6]:
C. "Detecting phishing websites using machine learning Another LSTM-CNN model was introduced by Subhash
technique”,2021 [3]: Ariyadasa et al., 2020 [6]. The authors put forward a hybrid
Ashit Kumar Dutta, 2021 in [3] discusses the use of a deep learning model that groups LSTM and CNN to detect
Recurrent Neural Network (RNN) along with an LSTM phishing websites using both URL strings and manually
network for the identification of phishing web pages. The extracted HTML features which helps to find out sequential
model makes use of 14 lexical features extracted from URLs format in URL structures and extract local patterns, hence
and is trained using a dataset that involves 5800 legitimate achieves high accuracy of 98.34% and precision on a large
URLs and 7900 phishing URLs. With the use of LSTM, labeled URL dataset. What's different from other LSTM-
RNNs can retain input sequences over longer durations, CNN models is that this approach uses lightweight, character-
which improves their ability to detect malicious websites level URL embeddings— along with manually extracted
effectively. The author discusses the drawbacks of traditional HTML features but without relying on external metadata like
procedures like blacklists and rule-based heuristics, DNS or WHOIS data, which reduces the need for feature
emphasizing the increasing demand for robust systems that engineering and improves scalability. They use LSTM layers
can adapt by learning from past phishing activities. The after 1D convolution layers to learn sequence patterns and
LURL model achieved an accuracy of over 96% by detecting identify key subsequences, unlike other models where CNN
sequential patterns within URLs and can manage large comes before LSTM. This model has limitations as only
amounts of data efficiently. That said, it currently doesn't relying on URL features won’t work against obfuscated or
analyze webpage content or screenshot-based analysis, nor is lookalike phishing URLs. Performance depends on the
it linked with real-time browser protection, both of which dataset and may not work for new phishing attacks. Also
hybrid architecture increases computational cost and training Year Literature
time which is a problem for real time deployment. and
Cite Main Idea Presented Relevance Research Gaps
G. “Multimodel Phishing URL Detection Using LSTM, No.
Bidirectional LSTM, and GRU Models”, 2022 [7]: CNN-LSTM
Closely mirrors underperform
Sanjiban Sekhar Roy et al., 2022 in [7], introduced a deep Introduced CNN and
PHISHNETGU ed CNN;
CNN-LSTM models
learning solution to phishing URL detection with character- ARD’s real- model limited
2024 for real-time browser
level representation from a labeled phishing and normal URL time and to URL
[4] extension. CNN
browser- string—no
data [Link] of the models get character-level URL processing achieved 98.4%
integrated HTML or
with embeddings so that they can learn sequential patterns accuracy.
goals. domain
without feature [Link] highest accuracy achieved features.
was 99% by Bidirectional LSTM since it can learn both Closely
RF depends
forward and backward contextual information and thus is Combined CNN- on manual
resembles
more efficient in understanding of URL sequences typically LSTM with Random features;
PHISHNETGU
2022 Forest for phishing CNN-LSTM
representing [Link] to the study, the application [5] URL detection. CNN-
ARD's hybrid
accuracy is
of character-level sequences with deep learning models such design and
LSTM achieved lower than
as BiLSTM improves detection in phishing attacks through dual-path
94.3% accuracy. other DL
architecture.
identification of the URL itself without depending upon other benchmarks.
metadata such as WHOIS or domain features. For future LSTM-CNN hybrid Supports hybrid High
work, the authors would like to explore other deep learning with character-level architecture; computational
2020 URL input and unique for cost; may not
algorithms to detect phishing websites using large [6] HTML-based using HTML scale well in
imbalanced datasets. features. Achieved tags with real-time
98.34% accuracy. LSTM. settings.
H. “Enhancing Phishing Detection: A Novel Hybrid Deep Used LSTM, No use of
Learning Framework for Cybercrime Forensics”, 2024 BiLSTM, and GRU
Strong
domain/SSL/
endorsement of
[8]: 2022
models with
sequential deep
content-based
character-level features;
Faisal S. Alsubaei and other authors utilized a novel [7]
embeddings. BiLSTM
models;
purely URL-
hybrid deep learning skeleton called RNT-J for real-time character-level
achieved 99% based
relevance.
phishing detection. This framework is a combination of accuracy. detection.
ResNeXt, used to extract useful patterns from heavy data, Complex
with a GRU (Gated Recurrent Unit) that learns evolving model; higher
Proposed hybrid deep Highly flexible
computational
phishing behavior. To address the problem of imbalanced learning framework hybrid
demand; no
phishing and normal data, SMOTE balances the data set, 2024 (ResNeXt + GRU + architecture;
integration
while an ensemble approach (EARN), which includes [8] ensemble + SMOTE). supports
with browser-
Achieved 98% adaptability to
autoencoders and ResNeXt, digs deeper to feature extract to accuracy. new attacks.
side detection
enhance detection. During the initial stage, the Jaya algorithm or live
updates.
helped improve the model so that the model could efficiently
detect new phishing threats. The model reached an accuracy
of 98%. While the paper acknowledges the fact that methods III. PROPOSED METHODOLOGY
of phishing are evolving continuously, it addresses the
model's flexibility along with generalizability in such This section illustrated the layout and development of the
scenarios. PHISHNETGUARD system in terms of data gathering,
preprocessing it, feature extraction, model building, training.
TABLE I. LITERATURE REVIEW SUMMARY Fig 1. Block diagram of the PHISHNETGUARD system flow.
Year Literature
and
Cite Main Idea Presented Relevance Research Gaps
No.
Establishes
Compared classical No deep
baseline ML
ML models (DT, RF, learning; lacks
performance;
SVM, ANN) on URL sequential
2024 useful for
datasets for phishing pattern
[1] comparison
detection. RF modeling and
with deep
achieved the highest real-time
learning
accuracy of 97.4%. integration.
models.
Strong on No deep
Used ensemble and A. Data Collection
handcrafted learning;
feature-based ML
2023 methods on
feature doesn't Phishing detection models need high-quality, labeled data. A
extraction; capture well-distributed dataset of phishing and legitimate URLs was
[2] PhishTank and UCI
highlights sequential
datasets. RF achieved obtained from public repositories, e.g., the Phishing Websites
importance of URL
98.8% accuracy. Data Set, PhishTank, and so on. The model has the ability to
URL structure. behavior.
Applied RNN + Supports use of
Lacks content recognize unbiased patterns when the classes are evenly
and visual distributed. Additionally, the collected data included
LSTM on lexical URL LSTM for
analysis; not
2021 features. Emphasized sequence
designed for metadata like submission timestamps and domain age,
[3] learning from modeling in providing a comprehensive temporal overview of phishing
real-time or
historical phishing phishing
patterns. detection.
browser-side activity, including both newly registered and existing
detection. phishing domains.
B. Data Preprocessing The model consists of some blocks of convolutional, LSTM,
To enable the data to be consistent we performed the fully connected and dropout regularization, also there is use
following pre-processing: of Sigmoid activation used for the last layer, to achieve binary
● Tokenization: URLs are tokenized into structured
tokens, domain name, path, subdomains, query
parameters and file extensions to capture structural
and contextual patterns.
● Normalization: URLs are converted to lowercase,
special characters are removed and encoding
schemes are normalized to prevent evasion based on
slight text variation.
● Labeling: URLs from legitimate domains are
labelled as "legitimate" whereas in phishing
databases are labelled as "phishing". classification.
● Missing Data Handling: When there is missing Fig 3. Hybrid CNN-LSTM model architecture for phishing
data they are either replaced by calculated values or detection.
omitted depending on the significance of the
missing components. E. Model Training
● Dataset Splitting: Dataset was splitted into 80% for The training procedure was:
training and 20% for testing with a validation set ● Hyperparameter Tuning: Hyperparameter tuning
drawn from the training data for hyperparameter for learning rate, batch size, quantity of CNN filters,
optimization; hence, ensures data is uniform, number of LSTM units and dropout ratios was
normalized and is ready for future analysis and performed by applying Grid or Random Search
model building. upon the validation set.
● Loss Function: We used binary cross-entropy loss
C. Feature Extraction Techniques in binary classification.
Features were designed to improve model performance at ● Optimization Algorithm: The Adam optimizer was
detecting phishing patterns: utilized since it possessed an adaptive learning rate.
● WHOIS-Based Features: Domain age, registrar ● Evaluation Metrics: Accuracy, precision, recall,
and registering country to determine legitimacy of F1-score and AUC-ROC were utilized for the
domain. performance measurement of both phishing and
● SSL Certificate Features: If SSL certificates normal classes.
(HTTPS) are present and valid, then it determines ● Regularization: Dropout and batch normalization
whether the website is encrypted or not. were used to stop overfitting of the model and
● Content-Based Features: Utilization of NLP for generalizing to new data.
suspicious words like (e.g., "login", "secure",
"update") in URLs. F. Model Evaluation
● Visual Features: CNNs to compare visual Final evaluation was done on an independent 20% test set.
similarity of page items (e.g. favicons) to pages on Results were reported using accuracy, precision, recall, F1-
legitimate websites. score and AUC-ROC. Also, a confusion matrix was analyzed
● Reputation-Based Features: DNS and IP level to see the distribution of false positives and false negatives to
checks to verify domain is associated with understand the classification behavior.
recognized malicious networks.
IV. RESULTS
The performance of the model was evaluated against a test
set of URLS, and the features of PHISHNETGUARD were
evaluated and presented in this section, with the help of
different evaluation metrics such as accuracy, precision,
recall, F1-score, confusion matrix, and ROC AUC score.