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.
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.
SecureBERT2.0-base huggingface.co is an AI model on huggingface.co that provides SecureBERT2.0-base's model effect (), which can be used instantly with this cisco-ai SecureBERT2.0-base model. huggingface.co supports a free trial of the SecureBERT2.0-base model, and also provides paid use of the SecureBERT2.0-base. Support call SecureBERT2.0-base model through api, including Node.js, Python, http.
SecureBERT2.0-base huggingface.co is an online trial and call api platform, which integrates SecureBERT2.0-base's modeling effects, including api services, and provides a free online trial of SecureBERT2.0-base, you can try SecureBERT2.0-base online for free by clicking the link below.
cisco-ai SecureBERT2.0-base online free url in huggingface.co:
SecureBERT2.0-base is an open source model from GitHub that offers a free installation service, and any user can find SecureBERT2.0-base on GitHub to install. At the same time, huggingface.co provides the effect of SecureBERT2.0-base install, users can directly use SecureBERT2.0-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.