TL;DR
This paper introduces a novel algorithm for generating illegal domain names by leveraging character similarity within domain name structures. By clustering similar domain names and then training an adversarial generative network (SeqGAN) on these clusters, the method aims to efficiently discover and generate a wider variety of potential illegal domain names, outperforming traditional enumeration techniques.
What Problem Does This Paper Address?
The proliferation of illegal websites, particularly those involved in gambling and pornography, poses a significant threat to internet users, leading to financial losses, privacy breaches, and psychological distress. A key challenge in combating these sites is the timely and accurate detection of their domain names. Traditional methods for identifying and generating illegal domain names are often inefficient, inaccurate, or limited to specific types of illegal content. This paper tackles the problem of proactively generating a diverse range of potential illegal domain names by analyzing the structural similarities within existing ones, thereby improving detection and control efforts.
Methods
The proposed method involves a two-stage process:
- Illegal Domain Name Clustering: The authors employ the Mini-Batch K-means algorithm to group illegal domain names that share similar structural characteristics. This step aims to organize the vast number of illegal domain names into meaningful clusters, facilitating more targeted generation. Feature extraction for clustering involves analyzing second-level domain substrings (using 3-gram features) and top-level domains (using one-hot encoding).
- Illegal Domain Name Generation: The clustered domain names are then fed into a Sequence Generative Adversarial Network (SeqGAN). SeqGAN, a combination of Generative Adversarial Networks (GANs) and reinforcement learning, is used to generate new, potentially illegal domain names. The generator in SeqGAN is built upon a Gated Recurrent Unit (GRU) layer, known for its ability to handle sequential data and long-distance dependencies. The discriminator, a character-level language model using convolutional neural networks, is trained to distinguish between real and generated domain names. The training process involves pre-training the generator and discriminator, followed by adversarial training using policy gradients to overcome challenges in generating discrete sequences.
Datasets
The paper utilizes a dataset of 750,000 marked illegal domain names for clustering and a subset of 50,000 illegal domain names for training the SeqGAN model. The training data is further split into 40,000 for training and 10,000 for testing the discriminator's ability.
Key Insights and Ideas
- Structure Matters: The core idea is that domain name structure, specifically character similarity, is a strong indicator of potential illegality and can be leveraged for generation.
- Clustering for Efficiency: Grouping similar domain names before generation significantly improves the efficiency and focus of the generative process, preventing the generation of overly generic or irrelevant names.
- SeqGAN for Discrete Data: The application of SeqGAN is crucial for generating discrete sequences like domain names, overcoming limitations of standard GANs in this domain.
- Adversarial Training for Realism: The adversarial nature of SeqGAN pushes the generator to produce domain names that are increasingly indistinguishable from real ones, enhancing the effectiveness of detection.
Key Results
The proposed algorithm demonstrates significant improvements over traditional enumeration methods:
- Efficiency: The generation algorithm takes approximately 10 hours to train and 33 seconds to generate a batch of domain names, compared to nearly 96 hours for enumeration to achieve a similar scale.
- Concentration: The average concentration of illegal domain names in generated batches is 23.82%, with a maximum of 32.03%.
- Effective Concentration: The average effective concentration (proportion of illegal domain names in generated valid domain names) is 63.54%, with a peak of 84.42%.
- Expansion Degree: The algorithm achieves an expansion degree of 7.5, meaning it can generate significantly more new illegal domain names from a given set of initial data.
- Clustering Quality: The Mini-Batch K-means clustering achieved an optimal silhouette coefficient of 0.4 with 15 clusters, indicating good quality and similarity within clusters.
- Discriminator Performance: The discriminator's accuracy in distinguishing real from fake domain names reached about 83% after pre-training and peaked around 86% during confrontation training.
Limitations and Future Work
- Limited Scope of "Similarity": The current method primarily relies on character similarity. The authors acknowledge that this might not capture all nuances of illegal domain name generation.
- Infinite Generation Bound: The paper suggests that the illegal domain name generation algorithm cannot generate new domain names infinitely, implying an upper bound on unique generated names.
- Future Work: The authors propose to enhance the generation by incorporating other attributes and characteristics of illegal websites beyond just domain name structure. This would involve integrating various website features to improve the breadth and effectiveness of illegal website generation.
Summary updated