File size: 9,263 Bytes
085cdba
314ace6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
085cdba
939d901
085cdba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
939d901
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b6af055
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c66f3ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fed3501
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67ead6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
085cdba
 
 
 
 
 
 
939d901
 
 
 
 
 
b6af055
 
 
 
 
 
c66f3ed
 
 
 
 
 
fed3501
 
 
 
 
 
67ead6c
 
 
 
 
 
314ace6
085cdba
314ace6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
---
license: other
task_categories:
- text-classification
- question-answering
- multiple-choice
- text-generation
tags:
- cybersecurity
- industrial-control-systems
- ics
- benchmark
- llm-evaluation
- mirror
size_categories:
- 1K<n<10K
dataset_info:
- config_name: CPST
  features:
  - name: prompt
    dtype: string
  - name: cvss-v3-vector-string
    dtype: string
  - name: answer
    dtype: float64
  splits:
  - name: test
    num_bytes: 29830
    num_examples: 95
  - name: val
    num_bytes: 1570
    num_examples: 5
  download_size: 9305
  dataset_size: 31400
- config_name: CWET
  features:
  - name: url
    dtype: string
  - name: prompt
    dtype: string
  - name: question
    dtype: string
  - name: answer
    dtype: string
  - name: options
    sequence: string
  splits:
  - name: test
    num_bytes: 772303
    num_examples: 959
  - name: val
    num_bytes: 3993
    num_examples: 5
  download_size: 212289
  dataset_size: 776296
- config_name: KCV
  features:
  - name: url
    dtype: string
  - name: prompt
    dtype: string
  - name: question
    dtype: string
  - name: answer
    dtype: string
  splits:
  - name: test
    num_bytes: 1651648
    num_examples: 461
  - name: val
    num_bytes: 25608
    num_examples: 5
  download_size: 263648
  dataset_size: 1677256
- config_name: MAET
  features:
  - name: url
    dtype: string
  - name: prompt
    dtype: string
  - name: question
    dtype: string
  - name: answer
    dtype: string
  - name: options
    sequence: string
  splits:
  - name: test
    num_bytes: 861954
    num_examples: 1067
  - name: val
    num_bytes: 3885
    num_examples: 5
  download_size: 240495
  dataset_size: 865839
- config_name: RERT
  features:
  - name: source-url
    dtype: string
  - name: prompt
    dtype: string
  - name: answer
    dtype: string
  - name: vulnerability-overview
    dtype: string
  splits:
  - name: test
    num_bytes: 3739150
    num_examples: 995
  - name: val
    num_bytes: 16000
    num_examples: 5
  download_size: 1044749
  dataset_size: 3755150
- config_name: VOOD
  features:
  - name: url
    dtype: string
  - name: prompt
    dtype: string
  - name: question
    dtype: string
  - name: answer
    dtype: string
  splits:
  - name: test
    num_bytes: 260849
    num_examples: 461
  - name: val
    num_bytes: 2759
    num_examples: 5
  download_size: 57665
  dataset_size: 263608
configs:
- config_name: CPST
  data_files:
  - split: test
    path: CPST/test-*
  - split: val
    path: CPST/val-*
- config_name: CWET
  data_files:
  - split: test
    path: CWET/test-*
  - split: val
    path: CWET/val-*
- config_name: KCV
  data_files:
  - split: test
    path: KCV/test-*
  - split: val
    path: KCV/val-*
- config_name: MAET
  data_files:
  - split: test
    path: MAET/test-*
  - split: val
    path: MAET/val-*
- config_name: RERT
  data_files:
  - split: test
    path: RERT/test-*
  - split: val
    path: RERT/val-*
- config_name: VOOD
  data_files:
  - split: test
    path: VOOD/test-*
  - split: val
    path: VOOD/val-*
pretty_name: SECURE (Mirror)
---

# Dataset Card for SECURE (RISys-Lab Mirror)

> **⚠️ Disclaimer:** > This repository is a **mirror/re-host** of the original [SECURE benchmark](https://github.com/aiforsec/SECURE).  
> **RISys-Lab is not the author of this dataset.** We are hosting this copy in Parquet format to ensure seamless integration and stability for our internal evaluation pipelines. All credit belongs to the original authors listed below.

## Table of Contents
- [Dataset Description](#dataset-description)
  - [Repository Intent](#repository-intent)
  - [Dataset Summary](#dataset-summary)
  - [Supported Tasks](#supported-tasks)
- [Dataset Structure](#dataset-structure)
  - [Data Splits & Configurations](#data-splits--configurations)
  - [Data Fields](#data-fields)
- [Usage](#usage)
- [Additional Information](#additional-information)
  - [Original Authors](#original-authors)
  - [Citation](#citation)
  - [License](#license)

## Dataset Description

- **Original Repository:** [https://github.com/aiforsec/SECURE](https://github.com/aiforsec/SECURE)
- **Original Paper:** [SECURE: Benchmarking Large Language Models for Cybersecurity Advisory (ArXiv 2405.20441)](https://arxiv.org/abs/2405.20441)
- **Mirror Maintainer:** RISys-Lab (for evaluation pipeline compatibility)

### Repository Intent
This Hugging Face dataset is a re-host of the original **SECURE** benchmark. It has been converted to **Parquet format** to support efficient loading and configuration handling in the `datasets` library. If you are looking for the official release, please visit the [Original GitHub Repository](https://github.com/aiforsec/SECURE).

### Dataset Summary
**SECURE** (Security Extraction, Understanding & Reasoning Evaluation) is a benchmark designed to assess Large Language Models (LLMs) in realistic cybersecurity scenarios, with a specific focus on **Industrial Control Systems (ICS)**.

The benchmark consists of six distinct datasets that evaluate knowledge extraction, understanding, and reasoning based on industry-standard sources (such as CISA advisories and MITRE frameworks).

### Supported Tasks
The dataset is divided into six configurations, each targeting a specific skill:

1.  **MAET (MITRE ATT&CK Extraction Task):** Multiple-choice questions mapping attack behaviors to MITRE ATT&CK techniques.
2.  **CWET (Common Weakness Extraction Task):** Multiple-choice questions identifying Common Weaknesses (CWEs) from descriptions.
3.  **KCV (Knowledge test on Common Vulnerabilities):** A knowledge verification task for CVEs.
4.  **VOOD (Vulnerability Out-of-Distribution):** A task designed to test model performance on out-of-distribution vulnerability data.
5.  **RERT (Risk Evaluation Reasoning Task):** Evaluating the model's ability to reason about risk based on vulnerability overviews (e.g., from CISA ICS advisories).
6.  **CPST (CVSS Problem Solving Task):** A regression/reasoning task where the model must determine the CVSS (Common Vulnerability Scoring System) score.

## Dataset Structure

### Data Splits & Configurations
The dataset is organized into 6 configurations. 

> **Important Note on Validation Splits:** > The original SECURE benchmark provided test sets. To facilitate **few-shot evaluation** in our pipeline, we randomly sampled 5 examples from the original data to create a `val` split for each configuration.

| Config Name | Full Task Name | Validation Size (Few-Shot) | Test Size |
| :--- | :--- | :--- | :--- |
| `MAET` | MITRE ATT&CK Extraction Task | 5 | 1,067 |
| `CWET` | Common Weakness Extraction Task | 5 | 959 |
| `KCV` | Knowledge on Common Vulnerabilities | 5 | 461 |
| `VOOD` | Vulnerability Out-of-Distribution | 5 | 461 |
| `RERT` | Risk Evaluation Reasoning Task | 5 | 995 |
| `CPST` | CVSS Problem Solving Task | 5 | 95 |

### Data Fields

#### `MAET`, `CWET` (Multiple Choice)
- `url` (string): Source URL.
- `prompt` (string): The full input prompt.
- `question` (string): The specific question text.
- `options` (sequence): A list/sequence of answer choices (e.g., `["Option A...", "Option B..."]`).
- `answer` (string): The correct option (e.g., "A").

#### `KCV`, `VOOD` (True / False)
- `url` (string): Source URL.
- `prompt` (string): The full input prompt.
- `question` (string): The question text.
- `answer` (string): The correct answer string.

#### `RERT` (Reasoning)
- `source-url` (string): Source URL (e.g., CISA advisory).
- `prompt` (string): The input prompt requesting a risk evaluation.
- `vulnerability-overview` (string): Context describing the vulnerability.
- `answer` (string): The gold-standard risk evaluation text.

#### `CPST` (Scoring)
- `prompt` (string): The input prompt containing vulnerability details.
- `cvss-v3-vector-string` (string): The CVSS vector string (e.g., `CVSS:3.1/AV:N/AC:L...`).
- `answer` (float64): The correct CVSS Base Score (e.g., `7.5`).

## Usage

You can load a specific task using the configuration name.

```python
from datasets import load_dataset

# Load the MITRE ATT&CK (MAET) test set
dataset = load_dataset("RISys-Lab/Benchmarks_CyberSec_SECURE", "MAET", split="test")

# Load the few-shot examples (val split)
few_shot_examples = load_dataset("RISys-Lab/Benchmarks_CyberSec_SECURE", "MAET", split="val")

# Access an example
print(dataset[0])

```

## Additional Information

### Original Authors

The dataset was developed by:

* **Dipkamal Bhusal**
* **Nidhi Rastogi**
* **Md Tanvirul Alam**
* *(and contributors from Rochester Institute of Technology)*

### Citation

Please cite the original ArXiv paper if you use this dataset:

```bibtex
@misc{bhusal2024securebenchmarkinglargelanguage,
      title={SECURE: Benchmarking Large Language Models for Cybersecurity Advisory}, 
      author={Dipkamal Bhusal and Nidhi Rastogi and Md Tanvirul Alam and Le Nguyen and Xashru Shrestha and Qiben Yan and Rui Li and Tuan Vu and Nathan Lewis and Y. S. Rao},
      year={2024},
      eprint={2405.20441},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2405.20441}, 
}

```

### License

An explicit license file was not found in the original repository. This mirror is provided for research purposes. All rights remain with the original authors.