xashru/cti-bench

[NeurIPS'24, Spotlight] CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligence

Jupyter Notebook

94

21 commits

updated May 7, 2026

See the code

README

CTIBench

CTIBench is a benchmark for evaluating large language models on practical Cyber Threat Intelligence (CTI) tasks. It covers CTI knowledge, vulnerability root-cause mapping, vulnerability severity prediction, ATT&CK technique extraction, and threat actor attribution.

Project Page arXiv Paper PDF Dataset NeurIPS 2024 Spotlight

CTIBench overview

Highlights

  • First broad CTI benchmark for evaluating LLMs across practical intelligence tasks
  • 5 task families covering CTI knowledge, CVE/CWE reasoning, CVSS scoring, ATT&CK technique extraction, and threat attribution
  • 4,610 released benchmark examples plus a 2021 root-cause mapping comparison split
  • Evaluations for ChatGPT-3.5, ChatGPT-4, Gemini-1.5, LLAMA3-70B, and LLAMA3-8B
  • Released datasets, formatted model responses, raw logs, evaluation notebooks, and project page

Resources

Repository Layout

PathDescription
data/CTIBench task TSV files
evaluation/Evaluation and model-prediction notebooks
evaluation/responses/Formatted model responses used by the evaluation notebook
logs/Raw model outputs for ChatGPT-3.5, ChatGPT-4, and Gemini-1.5
docs/Minimal static project page for GitHub Pages

Dataset Overview

TaskFileExamplesTarget
CTI-MCQdata/cti-mcq.tsv2,500Multiple-choice CTI knowledge answer
CTI-RCMdata/cti-rcm.tsv1,000CWE root-cause mapping
CTI-RCM-2021data/cti-rcm-2021.tsv1,0002021 comparison split for CWE mapping
CTI-VSPdata/cti-vsp.tsv1,000CVSS v3.1 vector string
CTI-ATEdata/cti-ate.tsv60MITRE ATT&CK technique IDs
CTI-TAAdata/cti-taa.tsv50Threat actor attribution prompt inputs

For CTI-TAA, data/cti-taa.tsv contains the URL, anonymized report text, and prompt. The formatted response file evaluation/responses/cti-taa-responses.tsv includes the ground-truth threat actor labels used by the evaluation notebook.

Dataset details are also available on Hugging Face: https://huggingface.co/datasets/AI4Sec/cti-bench

Evaluation

The evaluation/ directory contains notebooks for generating predictions and evaluating formatted responses. The response TSVs include predictions for:

  • ChatGPT-3.5
  • ChatGPT-4
  • Gemini-1.5
  • LLAMA3-70B
  • LLAMA3-8B

The main evaluation metrics are accuracy for CTI-MCQ and CTI-RCM, mean absolute deviation for CTI-VSP, F1 for CTI-ATE, and correct/plausible accuracy for CTI-TAA.

Star History

Star History Chart

Citation

If you use CTIBench, please cite:

@article{alam2024ctibench,
  title={Ctibench: A benchmark for evaluating llms in cyber threat intelligence},
  author={Alam, Md Tanvirul and Bhusal, Dipkamal and Nguyen, Le and Rastogi, Nidhi},
  journal={Advances in Neural Information Processing Systems},
  volume={37},
  pages={50805--50825},
  year={2024}
}

Contributors

maveryn

21 commits

xashru/cti-bench

[NeurIPS'24, Spotlight] CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligence

Jupyter Notebook

94

21 commits

updated May 7, 2026

See the code

README

CTIBench

CTIBench is a benchmark for evaluating large language models on practical Cyber Threat Intelligence (CTI) tasks. It covers CTI knowledge, vulnerability root-cause mapping, vulnerability severity prediction, ATT&CK technique extraction, and threat actor attribution.

Project Page arXiv Paper PDF Dataset NeurIPS 2024 Spotlight

CTIBench overview

Highlights

  • First broad CTI benchmark for evaluating LLMs across practical intelligence tasks
  • 5 task families covering CTI knowledge, CVE/CWE reasoning, CVSS scoring, ATT&CK technique extraction, and threat attribution
  • 4,610 released benchmark examples plus a 2021 root-cause mapping comparison split
  • Evaluations for ChatGPT-3.5, ChatGPT-4, Gemini-1.5, LLAMA3-70B, and LLAMA3-8B
  • Released datasets, formatted model responses, raw logs, evaluation notebooks, and project page

Resources

Repository Layout

PathDescription
data/CTIBench task TSV files
evaluation/Evaluation and model-prediction notebooks
evaluation/responses/Formatted model responses used by the evaluation notebook
logs/Raw model outputs for ChatGPT-3.5, ChatGPT-4, and Gemini-1.5
docs/Minimal static project page for GitHub Pages

Dataset Overview

TaskFileExamplesTarget
CTI-MCQdata/cti-mcq.tsv2,500Multiple-choice CTI knowledge answer
CTI-RCMdata/cti-rcm.tsv1,000CWE root-cause mapping
CTI-RCM-2021data/cti-rcm-2021.tsv1,0002021 comparison split for CWE mapping
CTI-VSPdata/cti-vsp.tsv1,000CVSS v3.1 vector string
CTI-ATEdata/cti-ate.tsv60MITRE ATT&CK technique IDs
CTI-TAAdata/cti-taa.tsv50Threat actor attribution prompt inputs

For CTI-TAA, data/cti-taa.tsv contains the URL, anonymized report text, and prompt. The formatted response file evaluation/responses/cti-taa-responses.tsv includes the ground-truth threat actor labels used by the evaluation notebook.

Dataset details are also available on Hugging Face: https://huggingface.co/datasets/AI4Sec/cti-bench

Evaluation

The evaluation/ directory contains notebooks for generating predictions and evaluating formatted responses. The response TSVs include predictions for:

  • ChatGPT-3.5
  • ChatGPT-4
  • Gemini-1.5
  • LLAMA3-70B
  • LLAMA3-8B

The main evaluation metrics are accuracy for CTI-MCQ and CTI-RCM, mean absolute deviation for CTI-VSP, F1 for CTI-ATE, and correct/plausible accuracy for CTI-TAA.

Star History

Star History Chart

Citation

If you use CTIBench, please cite:

@article{alam2024ctibench,
  title={Ctibench: A benchmark for evaluating llms in cyber threat intelligence},
  author={Alam, Md Tanvirul and Bhusal, Dipkamal and Nguyen, Le and Rastogi, Nidhi},
  journal={Advances in Neural Information Processing Systems},
  volume={37},
  pages={50805--50825},
  year={2024}
}

Contributors

maveryn

21 commits

Languages

Jupyter Notebook

100.0%