NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Counteracting Dark Web Text-Based CAPTCHA with Generative Adversarial Learning for Proactive Cyber Threat Intelligence

Ning Zhang, Mohammadreza Ebrahimi, Weifeng Li, Hsinchun Chen

TL;DR

This paper introduces DW-GAN, a novel framework that uses Generative Adversarial Networks (GANs) to automatically break text-based CAPTCHAs found on the dark web. By effectively handling noisy backgrounds and variable character lengths, DW-GAN significantly improves dark web data collection for Cyber Threat Intelligence (CTI) and achieves over 94.4% success rate.

What Problem Does This Paper Address?

Collecting data from the dark web is crucial for developing proactive Cyber Threat Intelligence (CTI), helping organizations anticipate and defend against cyber threats. However, dark web platforms employ sophisticated anti-crawling measures, with text-based CAPTCHAs being a particularly significant hurdle. These CAPTCHAs are designed to be difficult for automated bots, featuring noisy backgrounds and variable character lengths that challenge existing CAPTCHA-breaking methods. This often necessitates manual intervention, making large-scale data collection labor-intensive and time-consuming. The paper aims to bridge this gap by proposing an automated solution that can effectively tackle these dark web-specific CAPTCHA challenges.

Methods

The proposed framework, DW-GAN, is composed of three main components:

  • Background Denoising (CAPTCHA GAN): This component utilizes a Generative Adversarial Network (GAN) to learn how to remove complex background noise from CAPTCHA images. Unlike previous GAN approaches that operated at the image level, DW-GAN's GAN is designed to work with individual CAPTCHA images, generating noise-free counterparts. This allows for training with a smaller labeled dataset.
  • Residual Noise Removal: After the GAN-based denoising, a series of image processing techniques (grayscale conversion, Gaussian smoothing, and normalization) are applied to further clean up any remaining noise.
  • Character Segmentation (Enhanced Border Tracing): To address the challenge of variable character lengths, an enhanced border tracing algorithm is used. This algorithm is augmented with a region enlargement procedure that combines border tracing with interval-based segmentation to ensure that entire characters are encompassed, even when they are close or overlapping.
  • Character Recognition (CNN): A Convolutional Neural Network (CNN) is employed to recognize the segmented characters. This is a standard approach for character recognition, but here it's applied to the output of the novel segmentation and denoising steps.

Datasets

The authors evaluated DW-GAN on a testbed comprising:

  • Dark Web CAPTCHA Datasets:
    • Rescator-1: 500 digit CAPTCHAs.
  • Rescator-2: 500 digit CAPTCHAs.
  • Yellow Brick: 500 digit+letter CAPTCHAs. These datasets were collected from carding shops and a dark net market, labeled by CTI experts.

  • Open-Source Synthesizer: 11,000 CAPTCHAs per character length (4, 5, 6, 7) for digit+letter types. This synthesizer was used to generate CAPTCHAs with controllable security measures for fair comparison and to test variable character lengths.

Key Insights and Ideas

  • GANs for Dark Web CAPTCHA Denoising: The paper demonstrates that GANs can be effectively adapted to remove the unique and complex background noise found in dark web CAPTCHAs, a significant improvement over traditional image processing techniques.
  • Character-Level Processing is Key for Variable Lengths: By segmenting CAPTCHAs into individual characters, the framework avoids the exponential increase in class labels and the need for massive datasets that plague image-level CAPTCHA breakers when dealing with variable lengths.
  • Combining Denoising and Segmentation is Crucial: The success of DW-GAN lies in the synergistic effect of its components. Background denoising makes segmentation easier, and robust segmentation allows the CNN to perform accurate character recognition, even with challenging inputs.
  • Real-World Applicability: The case study on a dark net marketplace shows that DW-GAN can be seamlessly integrated into a dark web crawler, enabling automated data collection without human intervention.

Key Results

  • Benchmark Performance: DW-GAN significantly outperformed state-of-the-art benchmark methods on dark web CAPTCHA datasets, achieving success rates of 94.4% (Rescator-1), 97.50% (Rescator-2), and 95.98% (Yellow Brick).
  • Ablation Study: Eliminating the background denoising component resulted in an average performance drop of approximately 28%. Removing border tracing and interval-based segmentation also led to significant performance decreases (27% and 40% respectively), highlighting the importance of each component.
  • Variable Length Robustness: DW-GAN maintained a relatively consistent success rate across different character lengths (4-7), outperforming image-level methods whose performance drastically decreased with increasing length.
  • Case Study: In a real-world dark net marketplace (Yellow Brick), DW-GAN successfully broke CAPTCHAs within an average of 3 attempts, enabling automated collection of 1,831 illegal product pages without human intervention.

Limitations and Future Work

  • Limitations: The paper acknowledges that while DW-GAN performs well, it might struggle with "severe cases of overlapping characters, where it could be also difficult for a human observer to distinguish characters."
  • Future Work: The authors suggest extending DW-GAN to counteract more sophisticated CAPTCHA patterns, such as those that incorporate "question-answering" challenges, and to address emerging CAPTCHA types. They also plan to make the DW-GAN code publicly available as an open-source tool.

Summary updated

BibTeX
@article{zhang2022counteracting,
  author = {Ning Zhang and Mohammadreza Ebrahimi and Weifeng Li and Hsinchun Chen},
  title = {{Counteracting Dark Web Text-Based CAPTCHA with Generative Adversarial Learning for Proactive Cyber Threat Intelligence}},
  journal = {ACM Transactions on Management Information Systems},
  year = {2022},
  doi = {10.1145/3505226},
}
Figure