ccrb / README.md
prshrs's picture
Update README.md
43e2585 verified
|
Raw History Blame Contribute Delete
5.32 kB
---
license: apache-2.0
language:
- en
task_categories:
- text-retrieval
- feature-extraction
tags:
- cybersecurity
- embedding-benchmark
- retrieval
- mteb
- cve
- cwe
- mitre-attack
- code-retrieval
pretty_name: Continuum Cyber Retrieval Benchmark (CCRB)
size_categories:
- 100K<n<1M
configs:
- config_name: cve-corpus
data_files:
- split: corpus
path: data/cve/corpus.jsonl
- config_name: cve-queries
data_files:
- split: dev
path: data/cve/queries_dev.jsonl
- split: test
path: data/cve/queries_test.jsonl
- config_name: cve-qrels
data_files:
- split: dev
path: data/cve/qrels_dev.jsonl
- split: test
path: data/cve/qrels_test.jsonl
- config_name: cwe-corpus
data_files:
- split: corpus
path: data/cwe/corpus.jsonl
- config_name: cwe-queries
data_files:
- split: dev
path: data/cwe/queries_dev.jsonl
- split: test
path: data/cwe/queries_test.jsonl
- config_name: cwe-qrels
data_files:
- split: dev
path: data/cwe/qrels_dev.jsonl
- split: test
path: data/cwe/qrels_test.jsonl
- config_name: attack-corpus
data_files:
- split: corpus
path: data/attack/corpus.jsonl
- config_name: attack-queries
data_files:
- split: dev
path: data/attack/queries_dev.jsonl
- split: test
path: data/attack/queries_test.jsonl
- config_name: attack-qrels
data_files:
- split: dev
path: data/attack/qrels_dev.jsonl
- split: test
path: data/attack/qrels_test.jsonl
- config_name: advisories-corpus
data_files:
- split: corpus
path: data/advisories/corpus.jsonl
- config_name: advisories-queries
data_files:
- split: dev
path: data/advisories/queries_dev.jsonl
- split: test
path: data/advisories/queries_test.jsonl
- config_name: advisories-qrels
data_files:
- split: dev
path: data/advisories/qrels_dev.jsonl
- split: test
path: data/advisories/qrels_test.jsonl
- config_name: remediation-corpus
data_files:
- split: corpus
path: data/remediation/corpus.jsonl
- config_name: remediation-queries
data_files:
- split: dev
path: data/remediation/queries_dev.jsonl
- split: test
path: data/remediation/queries_test.jsonl
- config_name: remediation-qrels
data_files:
- split: dev
path: data/remediation/qrels_dev.jsonl
- split: test
path: data/remediation/qrels_test.jsonl
- config_name: code-corpus
data_files:
- split: corpus
path: data/code/corpus.jsonl
- config_name: code-queries
data_files:
- split: dev
path: data/code/queries_dev.jsonl
- split: test
path: data/code/queries_test.jsonl
- config_name: code-qrels
data_files:
- split: dev
path: data/code/qrels_dev.jsonl
- split: test
path: data/code/qrels_test.jsonl
---
# Continuum Cyber Retrieval Benchmark (CCRB)
The **Continuum Cyber Retrieval Benchmark (CCRB)** evaluates embedding models and semantic retrieval systems on cybersecurity knowledge, vulnerability intelligence, defensive guidance, and security-relevant code.
## Dataset Summary
| Track | Queries (`dev` / `test`) | Documents | Graded Qrel Pairs |
| --- | ---: | ---: | ---: |
| `cve` | 120 / 456 | 24,296 | 7,488 |
| `cwe` | 120 / 480 | 956 | 10,545 |
| `attack` | 120 / 480 | 1,493 | 9,537 |
| `advisories` | 120 / 456 | 69,369 | 7,803 |
| `remediation` | 120 / 480 | 2,922 | 8,880 |
| `code` | 120 / 480 | 4,374 | 8,945 |
| **Total** | **3,552** | **103,410** | **53,198** |
## Loading with `datasets`
Each track provides three BEIR/MTEB-compatible configs (`<track>-corpus`, `<track>-queries`, `<track>-qrels`):
```python
from datasets import load_dataset
corpus = load_dataset("continuum-oss/ccrb", "cwe-corpus", split="corpus")
queries = load_dataset("continuum-oss/ccrb", "cwe-queries", split="test")
qrels = load_dataset("continuum-oss/ccrb", "cwe-qrels", split="test")
```
## Evaluation Protocol
* **Primary Metric:** `nDCG@10` (exponential gain $2^{rel}-1$ over graded relevance `0, 1, 2, 3`)
* **Secondary Metrics:** `MRR@10`, `Recall@10`, `Recall@100`
* **Overall Score:** Equally weighted macro-average across all six tracks (`cve`, `cwe`, `attack`, `advisories`, `remediation`, `code`).
* **Baseline:** Okapi BM25 achieves `0.4393` macro `nDCG@10` on the `test` split (see `results/bm25_test.json`).
## Licensing & Attribution
Original CCRB materials are licensed under **Apache-2.0** (see `LICENSE`). Third-party sources (NVD, CISA KEV, MITRE CWE/CAPEC/ATT&CK, OSV/GHSA, OWASP CheatSheetSeries, SigmaHQ) remain subject to their respective upstream licenses and attribution terms.
## Citation
```bibtex
@misc{continuum_ccrb,
title = {Continuum Cyber Retrieval Benchmark (CCRB)},
author = {{Continuum}},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/continuum-oss/ccrb}},
note = {Benchmark v0.2-dev}
}
```