What Is DarkBERT? How a Language Model Was Built to Study the Dark Web

DarkBERT is a research language model built by KAIST and the security company S2W, described in a 2023 paper accepted at ACL 2023. It starts from the RoBERTa base model and was further trained, using masked language modelling, on text crawled from the Tor network.

Mar 01, 2025 - 10:01
Updated: 
110.6k

AI in Cybersecurity in Cybersecurity & Ethical Hacking · Explainer

Cyber Threats, Scams & Online Safety

What Is DarkBERT? How a Language Model Was Built to Study the Dark Web

Quick answer: DarkBERT is a research language model built by KAIST and the security company S2W, described in a 2023 paper accepted at ACL 2023. It starts from the RoBERTa base model and was further trained, using masked language modelling, on text crawled from the Tor network. The team reports a raw corpus of 5.83 GB and 5.20 GB after preprocessing, which removed low-information pages, balanced categories, removed duplicates and masked identifiers such as emails and addresses. DarkBERT is not a chatbot and was not built for criminals. It is an encoder model for classifying and understanding dark web text, and access is restricted to academic researchers by request.

Key takeaways

  • DarkBERT is a research model from KAIST and S2W, published in 2023.
  • It is based on RoBERTa and trained on Tor-crawled text.
  • It classifies and understands text; it does not chat or generate long answers.
  • Sensitive identifiers were masked during preprocessing.
  • Access is restricted to academic use by request.

Table of Contents

What Exactly Is DarkBERT?

The paper DarkBERT: A Language Model for the Dark Side of the Internet was posted to arXiv in May 2023 by researchers from KAIST and S2W and accepted at ACL 2023. The authors argue that dark web language (slang, product listings, leak announcements) differs from the surface web, so general models trained on sites like Wikipedia understand it poorly. According to S2W's explanation, they started from RoBERTa base and continued pretraining with masked language modelling on dark web text.

What Was It Trained On?

ItemReported detail
SourcePages crawled from the Tor network
Raw corpus size5.83 GB of text
Processed corpus size5.20 GB of text
PreprocessingRemoved low-information pages, balanced categories, deduplicated
Privacy stepMasked common identifiers and sensitive information
Base modelRoBERTa base

Details are from the ACL 2023 paper.

What Tasks Was It Tested On?

The authors compared DarkBERT with general models on dark web classification and on security-focused use cases such as spotting ransomware leak sites, flagging forum threads worth an analyst's attention, and inferring keywords related to threats. These are triage tasks: helping humans decide what to read first. Results are reported in the paper and apply to the authors' datasets; performance on other data is not guaranteed.

The paper also matters for its method. It shows that a smaller, focused model trained on the right text can beat larger general models on a narrow domain. Security teams building classifiers for phishing pages, scam adverts or leak announcements can apply the same lesson: curate representative data, remove duplicates and protect personal information before training.

What Is DarkBERT Not?

Common claimReality
A dark web ChatGPTAn encoder model for understanding text, not a chat assistant
A hacking toolA research model for analysis and classification
Freely downloadableAccess by request for academic research
Same as fake DarkBERT adsUnrelated offerings using the name are not the research model

Who Can Use DarkBERT?

The Hugging Face page and related discussion show the authors gate access through a request process for academic research. Public release was not offered given the training data. We could not confirm the exact approval criteria from an official page, so check with the authors before planning research around it.

What Can Defenders Learn From It?

  • Domain-specific training helps models understand specialist language.
  • Privacy masking should be built into any dark web dataset; collected text can include personal data covered by the DPDP Act 2023.
  • Models triage; analysts confirm. Govern use with the NIST AI RMF.
  • Attackers also mine closed sources (ATT&CK T1597), so monitoring them has defensive value.

Related reading: DarkBERT in threat intelligence and AI analysis of dark web forums. WebAsha offers AI in cybersecurity training.

References

Frequently Asked Questions

Researchers from KAIST and the South Korean security company S2W, in a paper accepted at the ACL 2023 conference.

It starts from RoBERTa base and was further pretrained with masked language modelling on text crawled from the Tor network.

The paper reports 5.83 GB of raw text and 5.20 GB after preprocessing, deduplication and category balancing were applied.

No. It is an encoder model used for understanding and classifying text, not for holding conversations or writing long answers.

No. The authors restrict access to academic researchers through a request process because of the sensitive training data.

Dark web page classification and security use cases such as spotting ransomware leak sites and flagging noteworthy forum threads.

The authors masked common identifiers and sensitive information during preprocessing to reduce privacy risks in the corpus.

There is no verified evidence of that. It is a gated research model, and unrelated products have misused the name.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.