Update README.md
Browse files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379---license: apache-2.0task_categories:- text-retrievallanguage:- enpretty_name: Continuum Cyber Retrieval Benchmarksize_categories:- n<1Ktags:- cybersecurity- information-retrieval- semantic-search- embeddings- retrieval- evaluation- benchmark- continuum---# Continuum Cyber Retrieval Benchmark (CCRB)**A benchmark suite for evaluating semantic retrieval systems on cybersecurity knowledge and technical information.**The **Continuum Cyber Retrieval Benchmark (CCRB)** is an evaluation framework designed to measure how effectively embedding models and retrieval systems understand, index, and retrieve cybersecurity-related information.CCRB focuses on the challenges of cybersecurity retrieval: specialized terminology, technical relationships, vulnerability identifiers, security classifications, software documentation, and relationships between security concepts.The benchmark is being developed by **Continuum**.---## OverviewGeneral-purpose retrieval benchmarks do not necessarily capture the specialized knowledge and terminology required for cybersecurity applications.A cybersecurity retrieval system may need to connect:- A vulnerability description to its corresponding CVE record.- A security weakness to its CWE classification.- A security behavior to a relevant MITRE ATT&CK technique.- A vulnerability to relevant vendor advisories.- A security issue to relevant remediation guidance.- A technical security question to relevant code documentation.CCRB is designed to evaluate these retrieval capabilities through standardized queries, document collections, and relevance judgments.### Benchmark objectivesCCRB aims to:1. Evaluate semantic retrieval performance in cybersecurity-specific domains.2. Measure retrieval quality across different types of security information.3. Provide a consistent evaluation protocol for embedding models.4. Enable reproducible comparisons between retrieval systems.5. Identify weaknesses in general-purpose embedding models when applied to specialized technical domains.---## Benchmark TracksCCRB is designed around six evaluation tracks.| Track | Description ||---|---|| CVE Retrieval | Retrieve relevant Common Vulnerabilities and Exposures records. || CWE Retrieval | Retrieve relevant Common Weakness Enumeration entries. || ATT&CK Retrieval | Retrieve relevant MITRE ATT&CK techniques and related knowledge. || Advisory Retrieval | Retrieve relevant security advisories and vulnerability documentation. || Remediation Retrieval | Retrieve relevant defensive remediation and mitigation guidance. || Security Code Retrieval | Retrieve relevant security-related code documentation and technical references. |Each track evaluates a different retrieval problem. Results should be reported independently before calculating an overall benchmark score.### 1. CVE RetrievalEvaluates the ability to retrieve vulnerability records from natural-language descriptions, technical summaries, and vulnerability-related queries.### 2. CWE RetrievalEvaluates the ability to connect descriptions of software weaknesses with relevant CWE classifications and documentation.### 3. ATT&CK RetrievalEvaluates retrieval of relevant MITRE ATT&CK techniques, tactics, and supporting documentation.### 4. Advisory RetrievalEvaluates retrieval of relevant security advisories, vendor documentation, and vulnerability-related technical notices.### 5. Remediation RetrievalEvaluates retrieval of defensive remediation information, mitigation guidance, and secure configuration documentation.### 6. Security Code RetrievalEvaluates retrieval of relevant security-related code documentation, secure implementation references, and defensive programming material.---## Dataset StructureThe benchmark uses separate query, corpus, and relevance-judgment files.The planned repository structure is:```textccrb/├── README.md├── LICENSE├── DATASET_CARD.md├── CITATION.cff│├── data/│ ├── queries/│ │ ├── cve.jsonl│ │ ├── cwe.jsonl│ │ ├── attack.jsonl│ │ ├── advisories.jsonl│ │ ├── remediation.jsonl│ │ └── code.jsonl│ ││ ├── documents/│ │ └── README.md│ ││ └── qrels/│ ├── cve.tsv│ ├── cwe.tsv│ ├── attack.tsv│ ├── advisories.tsv│ ├── remediation.tsv│ └── code.tsv│├── evaluation/│ ├── evaluate.py│ ├── metrics.py│ └── config.yaml│├── scripts/│ └── validate_dataset.py│└── results/└── README.md```The repository structure may evolve as the benchmark develops.### Query formatQueries are stored in JSONL format.Example:```json{"query_id": "cve_q_000001","query": "Find vulnerability records involving improper input validation.","track": "cve"}```### Document formatDocuments are represented using a consistent schema.Example:```json{"document_id": "cve_doc_000001","title": "Example vulnerability record","text": "Document text goes here.","source": "Example source","track": "cve"}```### Relevance judgmentsRelevance judgments are stored in tab-separated value (TSV) files.The format is:```textquery_id document_id relevance```Relevance grades:| Grade | Meaning ||---:|---|| 0 | Not relevant || 1 | Marginally relevant || 2 | Relevant || 3 | Highly relevant |Relevance judgments should be based on documented criteria and validated before release.---## Evaluation MethodologyCCRB is intended to evaluate embedding models and retrieval systems under a consistent retrieval protocol.### Primary metric**Normalized Discounted Cumulative Gain at 10 (nDCG@10)**nDCG@10 measures the quality of the top 10 retrieved documents while accounting for graded relevance judgments and ranking position.### Secondary metrics| Metric | Purpose ||---|---|| MRR@10 | Measures the rank of the first relevant result. || Recall@10 | Measures the proportion of relevant documents retrieved in the top 10. || Recall@100 | Measures retrieval coverage within the top 100 results. |### Overall scoreThe intended overall CCRB score is an equally weighted macro-average across the six benchmark tracks.Each track is evaluated independently. Track-level scores are calculated first, followed by the overall average.This prevents tracks with larger query counts from automatically dominating the final score.The aggregation protocol will be finalized and documented before the first official benchmark release.---## Evaluation StandardsFor comparisons to be meaningful, participating models should be evaluated using consistent procedures.The evaluation framework aims to standardize:- Query and document collections.- Relevance judgments.- Text preprocessing.- Document chunking.- Embedding normalization.- Similarity functions.- Retrieval depth.- Evaluation metrics.- Model revision and configuration.For every evaluated model, the following information should be recorded:| Field | Description ||---|---|| Model | Model name and identifier. || Revision | Exact model revision or checkpoint. || Dimensions | Embedding dimensionality. || Similarity | Similarity function used. || Normalization | Whether vectors are L2-normalized. || Maximum length | Maximum input sequence length. || Instructions | Any query or document prefixes. || Evaluation date | Date of evaluation. |Models should be compared under the same evaluation conditions wherever possible.---## Data Sources and LicensingCCRB may incorporate information from established cybersecurity knowledge bases, vulnerability databases, technical documentation, and software repositories.Potential source categories include:- National Vulnerability Database (NVD).- Common Vulnerabilities and Exposures (CVE).- Common Weakness Enumeration (CWE).- MITRE ATT&CK.- Common Attack Pattern Enumeration and Classification (CAPEC).- GitHub Security Advisories.- Vendor security advisories.- Defensive security documentation.- Secure software development references.Each source must be reviewed for licensing, redistribution permissions, attribution requirements, and applicable terms before inclusion.**The Apache-2.0 license applies to original CCRB materials where the project has the rights to license them. It does not override the licenses or terms of third-party source material.**Source attribution and licensing information will be maintained alongside the dataset documentation.---## Intended UseCCRB is intended for:- Evaluating text embedding models.- Evaluating semantic search systems.- Researching cybersecurity information retrieval.- Comparing general-purpose and domain-specialized embeddings.- Developing defensive security knowledge retrieval systems.- Studying retrieval quality across technical domains.CCRB is an information-retrieval benchmark. It is not intended to provide instructions for exploiting vulnerabilities, conducting unauthorized access, or compromising systems.---## LimitationsCCRB results should be interpreted with several limitations in mind.1. **Source coverage:** The benchmark can only evaluate knowledge represented in its included sources.2. **Language coverage:** Initial development focuses on English-language retrieval.3. **Temporal coverage:** Cybersecurity information changes continuously. Dataset versions will represent specific collection periods.4. **Judgment quality:** Relevance judgments may involve human interpretation and require ongoing validation.5. **Model sensitivity:** Performance can vary depending on preprocessing, chunking, instructions, and retrieval configuration.6. **Benchmark contamination:** Publicly available evaluation data may eventually appear in model training corpora.Benchmark versions should document their collection dates, evaluation splits, and known limitations.---## Benchmark IntegrityCCRB aims to support reproducible and meaningful model comparisons.To reduce benchmark contamination and evaluation leakage, the project intends to distinguish between development and held-out evaluation data.The benchmark will document:- Dataset version.- Source collection dates.- Query-generation methodology.- Relevance-judgment methodology.- Train, development, and test splits where applicable.- Known contamination risks.- Evaluation software version.Official results should identify the exact dataset and evaluation versions used.Unverified or incomplete results must not be presented as official benchmark scores.---## Benchmark Status**Development — Initial framework**CCRB is currently under development.The benchmark tracks, data schemas, evaluation methodology, and validation procedures are being established.No official benchmark scores are published at this stage.The first release will establish a validated evaluation dataset and reproducible baseline results. Additional tracks will be incorporated as their data and relevance judgments are completed.---## CitationIf you use CCRB in academic research, technical reports, or benchmark comparisons, please cite the project.BibTeX metadata will be added when the first official version is released.```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 under development}}```---## Project**Developed by:** Continuum**Dataset:** `continuum-oss/ccrb`**Status:** In development**License:** Apache-2.0 for eligible original project materialsCCRB aims to provide a rigorous, reproducible evaluation framework for the next generation of cybersecurity retrieval systems.
README.md+376