Text Generation
Transformers
Safetensors
English
llama
cybersecurity
pretraining
conversational
text-generation-inference
File size: 4,520 Bytes
ff5ed7a
 
 
 
0d1ae6c
ff5ed7a
 
 
 
 
 
 
 
 
daf99f4
 
 
 
 
0d1ae6c
 
 
 
 
daf99f4
 
 
 
 
 
 
 
 
 
 
ff5ed7a
 
 
 
cde4ace
ff5ed7a
d067cca
ff5ed7a
 
 
 
 
 
 
 
 
 
 
2a58a04
ff5ed7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328c7d5
5295f5a
328c7d5
ff5ed7a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
license: mit
datasets:
- trendmicro-ailab/Primus-FineWeb
- trendmicro-ailab/Primus-Seed
language:
- en
base_model:
- meta-llama/Llama-3.1-8B-Instruct
pipeline_tag: text-generation
library_name: transformers
tags:
- cybersecurity
- pretraining
extra_gated_fields:
  Affiliation: text
  Country: country
  I want to use this model for:
    type: select
    options:
    - Research
    - Commercial
    - label: Other
      value: other
  Job title:
    type: select
    options:
    - Student
    - Research graduate
    - AI researcher
    - AI developer/engineer
    - Cybersecurity researcher
    - Reporter
    - Other
  geo: ip_location
---

# Primus: A Pioneering Collection of Open-Source Datasets for Cybersecurity LLM Training

<img src="https://i.imgur.com/PtqeTZw.png" alt="Primus Overview" width="60%">

> TL;DR: Llama-Primus-Base is a foundation model based on Llama-3.1-8B-Instruct, continually pre-trained on Primus-Seed (0.2B) and Primus-FineWeb (2.57B). Primus-Seed is a high-quality, manually curated cybersecurity text dataset, while Primus-FineWeb consists of cybersecurity texts filtered from FineWeb, a refined version of Common Crawl. By pretraining on such a large-scale cybersecurity corpus, it achieves a 🚀**15.88%** improvement in aggregated scores across multiple cybersecurity benchmarks, demonstrating the effectiveness of cybersecurity-specific pretraining.

**🔥 For more details, please refer to the paper: [[📄Paper]](https://arxiv.org/abs/2502.11191).**

## Introduction

Large Language Models (LLMs) have demonstrated remarkable versatility in recent years, with promising applications in specialized domains such as finance, law, and biomedicine. However, in the domain of cybersecurity, we noticed a lack of open-source datasets specifically designed for LLM pre-training—even though much research has shown that LLMs acquire their knowledge during pre-training.  To fill this gap, we present a collection of datasets covering multiple stages of cybersecurity LLM training, including pre-training (_Primus-Seed_ and _Primus-FineWeb_), instruction fine-tuning (_Primus-Instruct_), and reasoning data for distillation (_Primus-Reasoning_).  Based on these datasets and Llama-3.1-8B-Instruct, we developed _Llama-Primus-Base_, _Llama-Primus-Merged_, and _Llama-Primus-Reasoning_. This model card is **Llama-Primus-Base**.

  >  **Note:** No TrendMicro customer information is included.

## Cybersecurity Benchmark Results

| **Metric** (5-shot, w/o CoT)| **Llama-3.1-8B-Instruct** | **Llama-Primus-Base** |
|---------------------------------|---------------------------|------------------------------|
| **CISSP (Exams in book)** | 0.7073 | **0.7230** |
| **CTI-Bench (MCQ)** | 0.6420 | **0.6676** |
| **CTI-Bench (CVE → CWE)** | 0.5910 | **0.6780** |
| **CTI-Bench (CVSS, _lower is better_)** | 1.2712 | **1.0912** |
| **CTI-Bench (ATE)** | 0.2721 | **0.3140** |
| **CyberMetric (500)** | 0.8560 | **0.8660** |
| **SecEval** | 0.4966 | **0.5007** |
| **_Agg._** | 2.29 | **2.66****15.88%** 🔥 |

CTI-Bench (CVSS) is scored using Mean Absolute Deviation (_lower is better_), CTI-ATE uses F1 score, and the others use accuracy. The aggregate score (_Agg._) is the sum of all benchmarks, with CTI-Bench (CVSS) negated.

References:
-  **CyberMetric**: [CyberMetric: A Benchmark Dataset based on Retrieval-Augmented...](https://arxiv.org/abs/2402.07688)
-  **CtiBench**: [CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligence](https://arxiv.org/abs/2406.07599)
-  **SecEval**: [SecEval: A Comprehensive Benchmark for Evaluating Cybersecurity Knowledge of Foundation Models](https://xuanwuai.github.io/SecEval/)

## About _Primus_
_Primus_ is Trend Micro's pioneering family of lightweight, state-of-the-art open cybersecurity language models and datasets. Developed through our cutting-edge research initiatives and advanced technology, these resources share the innovative foundation that powers our enterprise-class [Trend Cybertron](https://newsroom.trendmicro.com/2025-02-25-Trend-Micro-Puts-Industry-Ahead-of-Cyberattacks-with-Industrys-First-Proactive-Cybersecurity-AI) solution. As an industry leader in cybersecurity, Trend Micro is proud to contribute these powerful, efficiency-optimized models and datasets to the community, while maintaining the excellence and reliability that define our global security standards.

## License
This model is based on the MIT license, but you must also comply with the Llama 3.1 Community License Agreement.