[Paper Review] Breaking Bad: Detecting malicious domains using word segmentation
This paper proposes a lightweight, interpretable method for detecting malicious domains by applying word segmentation to domain names, significantly improving detection accuracy over traditional lexical features alone. By identifying meaningful subwords in domain strings—such as 'free' or 'login'—the approach boosts AUC performance and enables near-real-time analysis without requiring complex feature engineering or external data sources.
In recent years, vulnerable hosts and maliciously registered domains have been frequently involved in mobile attacks. In this paper, we explore the feasibility of detecting malicious domains visited on a cellular network based solely on lexical characteristics of the domain names. In addition to using traditional quantitative features of domain names, we also use a word segmentation algorithm to segment the domain names into individual words to greatly expand the size of the feature set. Experiments on a sample of real-world data from a large cellular network show that using word segmentation improves our ability to detect malicious domains relative to approaches without segmentation, as measured by misclassification rates and areas under the ROC curve. Furthermore, the results are interpretable, allowing one to discover (with little supervision or tuning required) which words are used most often to attract users to malicious domains. Such a lightweight approach could be performed in near-real time when a device attempts to visit a domain. This approach can complement (rather than substitute) other more expensive and time-consuming approaches to similar problems that use richer feature sets.
Motivation & Objective
- To address the growing threat of malicious domains used in mobile attacks.
- To improve detection of malicious domains using only lexical features of domain names.
- To explore whether word segmentation can enhance feature representation for malicious domain detection.
- To develop a lightweight, near-real-time detection method that complements existing, more resource-intensive approaches.
- To enable interpretable identification of high-frequency words used in malicious domains.
Proposed method
- Applying a word segmentation algorithm to break domain names into meaningful subwords (e.g., 'free' in 'freeshipping.com').
- Expanding the feature set by including segmented words as additional lexical features.
- Combining segmented features with traditional quantitative features such as length, entropy, and character distribution.
- Training a machine learning classifier (e.g., SVM or random forest) on the expanded feature set to distinguish malicious from benign domains.
- Using the model to identify which segmented words are most predictive of malicious intent.
- Validating the approach on real-world cellular network data to assess performance and interpretability.
Experimental results
Research questions
- RQ1Can word segmentation of domain names improve the detection of malicious domains compared to traditional lexical features alone?
- RQ2How does the inclusion of segmented words affect the misclassification rate and AUC of malicious domain detection models?
- RQ3To what extent can the model identify and interpret the linguistic patterns used in malicious domains?
- RQ4Can this approach be deployed in near-real time with minimal computational overhead?
- RQ5How does the performance of the segmented approach compare to non-segmented baselines in practical network environments?
Key findings
- The inclusion of word segmentation significantly improved detection performance, reducing misclassification rates compared to models without segmentation.
- The method achieved higher areas under the ROC curve (AUC) than baseline approaches using only quantitative domain features.
- The model successfully identified high-frequency words commonly used in malicious domains, such as 'free', 'login', and 'account', demonstrating interpretability.
- The approach enabled near-real-time analysis, making it suitable for deployment in live network environments.
- The technique required little supervision or hyperparameter tuning, enhancing its practicality for operational use.
- The method complements, rather than replaces, more complex detection systems that rely on richer, more computationally expensive features.
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.