Identifying Products in Online Cybercrime Marketplaces: A Dataset for Fine-grained Domain Adaptation

Greg Durrett, Jonathan K. Kummerfeld, Taylor Berg-Kirkpatrick, Rebecca S. Portnoff, Sadia Afroz, Damon McCoy, Kirill Levchenko, Vern Paxson

Abstract

One weakness of machine-learned NLP models is that they typically perform poorly on out-of-domain data. In this work, we study the task of identifying products being bought and sold in online cybercrime forums, which exhibits particularly challenging cross-domain effects. We formulate a task that represents a hybrid of slot-filling information extraction and named entity recognition and annotate data from four different forums. Each of these forums constitutes its own "fine-grained domain" in that the forums cover different market sectors with different properties, even though all forums are in the broad domain of cybercrime. We characterize these domain differences in the context of a learning-based system: supervised models see decreased accuracy when applied to new forums, and standard techniques for semi-supervised learning and domain adaptation have limited effectiveness on this data, which suggests the need to improve these techniques. We release a dataset of 1,938 annotated posts from across the four forums.

Introduction

Automated analysis of cybercrime forums is vital for security researchers to track emerging threats, but it presents significant challenges for standard Natural Language Processing (NLP) tools. These forums are characterized by niche jargon (e.g., "FUD" for "fully undetectable"), intentional misspellings, and ungrammatical "leetspeak."

The primary challenge addressed in this research is fine-grained domain adaptation. While it is well-established that models trained on news articles perform poorly on social media, this study demonstrates that even within the niche of cybercrime, models do not generalize well across different forums. For instance, a model trained on Darkode (focused on high-end malware) performs poorly on Hack Forums (focused on gaming accounts). The goal is to identify the "primary product" of a post—a task bridging Named Entity Recognition (NER) and slot-filling information extraction—without requiring exhaustive manual annotations for every new forum.

Dataset and Forum Characteristics

The study introduces a dataset of 1,938 annotated posts (comprising over 130,000 tokens) drawn from four distinct marketplaces:

  1. Darkode: High-end cybercriminal wares such as exploit kits and botnets.
  2. Hack Forums: A diverse mix of blackhat and non-cybercrime products, including gaming accounts and basic tools.
  3. Blackhat: Focused primarily on Search Engine Optimization (SEO) techniques.
  4. Nulled: Focused on data-stealing tools and leaked services.
Table 1: Statistics of the four forums included in the dataset, showing variations in post length, product density, and annotation agreement.

Methods

The researchers framed product identification as a token-level classification task, comparing several approaches:

  • Baselines: Simple frequency-based models, dictionary lookups, and a retrained Stanford NER system.
  • Binary SVM/CRF: A learning-based approach utilizing features such as word identity, POS tags, and dependency relations.
  • Post-level Latent SVM: A novel approach treating the "product" as a latent variable. Rather than tagging every mention, it identifies the single most likely noun phrase representing the core product of the post.
  • Domain Adaptation: Techniques tested included Brown Clusters (unsupervised word groupings), Gazetteers (product lists), and the "Frustratingly Easy Domain Adaptation" method (feature duplication into domain-specific and domain-general versions).

Key Insights

The "Fine-Grained" Trap

Cybercrime is not a monolithic domain. Vocabulary and stylistic conventions vary so significantly between forums that they must be treated as separate domains. Context is critical; a word like "Exploit" may be a product in one post but a general noun in another, requiring the model to rely heavily on surrounding cues like "buying" or "selling."

The Power of Limited Supervision

Unsupervised adaptation methods, such as Brown clusters, provided minimal performance gains. However, the researchers found that incorporating a small amount of labeled data from the target forum—as few as 20 to 40 posts—led to significant jumps in F1 scores. This suggests that "human-in-the-loop" annotation is currently more effective than purely algorithmic adaptation for this noisy data.

Figure 1: NP-level F1 scores as a function of the number of labeled posts in the target domain, illustrating the rapid gains from minimal supervision.

Results

  • Within-Forum Performance: On the Darkode forum, the best learning-based system achieved a 78.3 F1 score for product type identification and 87.6% accuracy for identifying the core product of a post.
  • The Domain Gap: Cross-domain performance drops are sharp. A model trained on Hack Forums and tested on Darkode saw an F1 score decrease of 14.6 points compared to a model trained directly on Darkode data.
  • Human Performance: Human annotators achieved an F1 of ~88% and post-level accuracy of 93%, establishing a high "skyline" that current automated models have yet to reach.

Conclusion and Future Work

Current models rely heavily on lexical features, leaving them vulnerable to out-of-vocabulary (OOV) issues as new slang and products emerge. While initial experiments with LSTMs did not yield massive gains, future work may explore more sophisticated neural architectures or better methods for leveraging the vast amounts of unlabeled forum data. This dataset serves as a benchmark for improving information extraction in messy, real-world environments.

Summary updated

BibTeX
@inproceedings{durrett2017identifying,
  author = {Greg Durrett and Jonathan K. Kummerfeld and Taylor Berg-Kirkpatrick and Rebecca S. Portnoff and Sadia Afroz and Damon McCoy and Kirill Levchenko and Vern Paxson},
  title = {{Identifying Products in Online Cybercrime Marketplaces: A Dataset for Fine-grained Domain Adaptation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  url = {https://openreview.net/forum?id=BJWDFzG_bB},
}
Figure