[Paper Review] Deep Reinforcement Learning for Detecting Malicious Websites
This paper proposes a deep reinforcement learning (DRL) model for detecting malicious websites by treating URL classification as a sequential decision-making problem. Using 14 lexical features from URLs, the model employs a deep Q-network (DQN) to dynamically learn and adapt to evolving phishing patterns, achieving 90.1% accuracy, 88% recall, and 87.3% F-measure on a balanced dataset of 73,575 URLs.
Phishing is the simplest form of cybercrime with the objective of baiting people into giving away delicate information such as individually recognizable data, banking and credit card details, or even credentials and passwords. This type of simple yet most effective cyber-attack is usually launched through emails, phone calls, or instant messages. The credential or private data stolen are then used to get access to critical records of the victims and can result in extensive fraud and monetary loss. Hence, sending malicious messages to victims is a stepping stone of the phishing procedure. A extit{phisher} usually setups a deceptive website, where the victims are conned into entering credentials and sensitive information. It is therefore important to detect these types of malicious websites before causing any harmful damages to victims. Inspired by the evolving nature of the phishing websites, this paper introduces a novel approach based on deep reinforcement learning to model and detect malicious URLs. The proposed model is capable of adapting to the dynamic behavior of the phishing websites and thus learn the features associated with phishing website detection.
Motivation & Objective
- To develop a self-adaptive, dynamic phishing detection system capable of learning from evolving URL structures.
- To address the limitations of static blacklisting and heuristic-based methods by introducing a reinforcement learning framework.
- To evaluate the performance of a deep Q-network (DQN) model on URL classification using a balanced dataset of legitimate and malicious URLs.
- To explore the feasibility of using sequential decision-making in DRL for binary phishing detection tasks.
- To lay the foundation for a robust, scalable, and adaptive phishing detection framework beyond traditional machine learning approaches.
Proposed method
- The model uses a deep Q-network (DQN) to map URL input sequences to action values, where actions represent classification as phishing or benign.
- A state representation is constructed from 14 lexical features extracted from each URL, including character frequency, domain length, and special character usage.
- The agent learns through interaction with an environment that provides sparse rewards based on correct classification, using a replay memory buffer to stabilize training.
- The Q-value function is approximated using a deep neural network with parameters θ, updated via stochastic gradient descent using the Adam optimizer.
- The target network is used to stabilize learning by decoupling the target Q-value computation from the online network.
- The training process follows an epsilon-greedy exploration strategy, balancing exploration and exploitation during learning.
Experimental results
Research questions
- RQ1Can deep reinforcement learning effectively model the sequential decision-making process for classifying phishing URLs?
- RQ2How does the performance of a DRL-based classifier compare to traditional machine learning methods in detecting malicious websites?
- RQ3To what extent can a DRL model adapt to dynamic changes in phishing URL patterns using only lexical features?
- RQ4How do hyperparameters such as exploration rate (ε) and reward shaping affect the model’s convergence and classification accuracy?
- RQ5Can a DRL framework be extended to incorporate additional features like host-based or content-based attributes for improved detection?
Key findings
- The proposed DRL model achieved 90.1% accuracy on the Ebbu2017 dataset, demonstrating strong generalization on a balanced set of 73,575 URLs.
- The model recorded a recall of 88%, indicating it successfully identified 88% of actual phishing URLs, which is critical for minimizing false negatives.
- The F-measure reached 87.3%, showing a balanced trade-off between precision and recall, confirming the model’s resilience and reliability.
- Precision was measured at 86.7%, indicating that 86.7% of URLs classified as malicious were indeed phishing attempts.
- The model outperformed baseline machine learning methods in dynamic adaptation, particularly in detecting newly created or evolving phishing URLs.
- The absence of reward function tuning in this study suggests room for performance improvement through optimized reward shaping in future work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.