SecureBERT 2.0 Base is a domain-specific transformer model optimized for cybersecurity tasks. It extends the ModernBERT architecture with cybersecurity-focused pretraining to produce contextualized embeddings for both technical text and code. SecureBERT 2.0 supports tasks like masked language modeling, semantic search, named entity recognition, vulnerability detection, and code analysis.
Model Details
Model Description
SecureBERT 2.0 Base is designed for deep contextual understanding of cybersecurity language and code. It leverages domain-specific pretraining on a large, heterogeneous corpus covering threat reports, blogs, documentation, and codebases, making it effective for reasoning across natural language and programming syntax.
Internal held-out subset of cybersecurity and code corpora.
Factors
Evaluated across token categories:
Objects (nouns)
Actions (verbs)
Code tokens
Metrics
Top-n accuracy on masked token prediction.
Results
Top-n
Objects (Nouns)
Verbs (Actions)
Code Tokens
1
56.20 %
45.02 %
39.27 %
2
69.73 %
60.00 %
46.90 %
3
75.85 %
66.68 %
50.87 %
4
80.01 %
71.56 %
53.36 %
5
82.72 %
74.12 %
55.41 %
10
88.80 %
81.64 %
60.03 %
This figure presents a comparative study of SecureBERT 2.0, SecureBERT, and ModernBERT on the masked language modeling (MLM) task. This shows SecureBERT 2.0 outperforms both the original SecureBERT and generic ModernBERT, particularly in code understanding and domain-specific terms.
image
Summary
SecureBERT 2.0 outperforms both the original SecureBERT and ModernBERT on cybersecurity-specific and code-related tasks.
@article{aghaei2025securebert,
title={SecureBERT 2.0: Advanced Language Model for Cybersecurity Intelligence},
author={Aghaei, Ehsan and Jain, Sarthak and Arun, Prashanth and Sambamoorthy, Arjun},
journal={arXiv preprint arXiv:2510.00240},
year={2025}
}
APA:
Cisco AI (2025). SecureBERT 2.0: A Domain-Specific Transformer for Cybersecurity and Code Understanding. arXiv:2510.00240.