Author
Abstract
Malicious URLs pose significant vulnerabilities, leaving users exposed as they navigate the digital world. To counter this, cybersecurity experts develop machine learning models using complex algorithms to protect users from cybercrime. Machine learning models are often referred to as “black boxes” due to their opaque nature. However, understanding the decision-making processes of these models is crucial. In fact, it is through this understanding that we can build robust protections for users and platforms. This research investigates the structural properties of URLs using machine learning models trained to classify them into five categories, specifically, benign, malware, phishing, defacement, and spam. By leveraging LIME and SHAP analysis, we identify key features that influence the model’s decision-making process for each classification. Through detailed analysis, the study highlights influential factors that impact URL classification, including positive, negative, and interactive effects between features. Benign URLs are characterized by simplicity, often shorter with fewer numeric or special characters, and minimal domain complexity. Malware URLs tend to be longer, with a higher density of numeric characters and complex domain structures, masking their malicious intent. Phishing URLs are detected based on features like short query lengths and minimal domain tokens, designed to resemble trusted sources and deceive users. Defacement URLs show complex domain structures and advanced techniques aimed at webpage tampering. Spam URLs exhibit shorter domains and simple paths, making them ideal for bulk distribution in spam campaigns. These insights provide a deeper understanding of how harmful and benign URLs can be distinguished based on structural attributes. The findings contribute to refining URL classification models and improving their effectiveness in the ever-changing threat landscape.
Suggested Citation
Ayush Nair & Fabio Di Troia, 2025.
"A Comparative Analysis of SHAP and LIME in Detecting Malicious URLs,"
Springer Books, in: Mark Stamp & Martin Jureček (ed.), Machine Learning, Deep Learning and AI for Cybersecurity, pages 291-325,
Springer.
Handle:
RePEc:spr:sprchp:978-3-031-83157-7_11
DOI: 10.1007/978-3-031-83157-7_11
Download full text from publisher
To our knowledge, this item is not available for
download. To find whether it is available, there are three
options:
1. Check below whether another version of this item is available online.
2. Check on the provider's
web page
whether it is in fact available.
3. Perform a
for a similarly titled item that would be
available.
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:sprchp:978-3-031-83157-7_11. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.