TL;DR
Large Language Models (LLMs) show promise in cybersecurity but struggle with accuracy and truthfulness. This paper introduces SECURE, a new benchmark specifically designed to evaluate LLMs on realistic cybersecurity tasks, particularly within the Industrial Control System (ICS) domain, to improve their reliability as cyber advisory tools.
What Problem Does This Paper Address?
While LLMs have demonstrated impressive capabilities across various domains, their application in cybersecurity is hampered by issues like hallucinations and a lack of truthfulness. Existing general-purpose LLM benchmarks don't adequately capture the nuances and practical demands of cybersecurity tasks. This gap is critical because cybersecurity professionals need reliable tools to navigate complex threat landscapes, and current LLMs often fall short, sometimes even providing confidently incorrect information, as illustrated by the ChatGPT example in Figure 1. The paper aims to bridge this gap by providing a specialized benchmark for evaluating LLMs in cybersecurity, focusing on the critical area of Industrial Control Systems (ICS).
Methods
The authors developed the SECURE benchmark, which comprises six datasets focused on three core abilities: Extraction, Understanding, and Reasoning. These datasets are built upon industry-standard sources like MITRE ATT&CK, CVE, CWE, and CISA advisories.
- Extraction Tasks (MAET, CWET): These are multiple-choice questions designed to test an LLM's ability to recall specific facts from its knowledge base without explicit context.
- Understanding Tasks (KCV, VOOD): KCV uses CVE descriptions to test if LLMs can correctly identify true/false statements. VOOD is a crucial out-of-distribution task that assesses LLMs' ability to recognize when they lack sufficient information to answer, by presenting questions without context.
- Reasoning Tasks (RERT, CPST): RERT evaluates an LLM's ability to summarize and reason about complex cybersecurity advisories to predict risk evaluations. CPST tests problem-solving skills by requiring LLMs to calculate CVSS scores from vector strings.
The evaluation involved seven state-of-the-art LLMs, including both open-source (Llama3, Mistral, Mixtral) and closed-source (ChatGPT, Gemini) models.
Datasets
The SECURE benchmark consists of six newly created datasets:
- MAET (Mitre Attack Extraction Task): Focuses on extracting information related to MITRE ATT&CK for ICS.
- CWET (Common Weakness Extraction Task): Focuses on extracting information related to Common Weakness Enumeration (CWE) for ICS.
- KCV (Knowledge Test on Common Vulnerabilities): Tests understanding of CVE descriptions.
- VOOD (Vulnerability Out-of-Distribution Task): Assesses the ability to handle unseen or out-of-distribution information.
- RERT (Risk Evaluation Reasoning Task): Evaluates reasoning by summarizing ICS security advisories.
- CPST (CVSS Problem Solving Task): Tests the ability to calculate CVSS scores.
These datasets are derived from publicly available sources like MITRE, CVE, CWE, and CISA.
Key Insights and Ideas
- Closed-source models generally outperform open-source models: ChatGPT-4 and Gemini-Pro showed superior performance across most tasks, especially in out-of-distribution scenarios and complex problem-solving.
- LLMs struggle with out-of-distribution data: The VOOD task highlighted a significant weakness, with many models performing poorly when presented with information not in their training data.
- Confidence doesn't always equal accuracy: While LLMs can express confidence, this doesn't guarantee correctness. The paper found that lower confidence often correlates with lower accuracy, but models can still be confidently wrong.
- Context matters, but LLMs can still hallucinate: While providing context improved performance on some tasks (like KCV), LLMs can still generate plausible but incorrect information (hallucinate), especially when lacking up-to-date data.
- Explicit reasoning instructions improve performance: Asking LLMs to provide step-by-step explanations for their answers significantly boosted performance on reasoning tasks, albeit at a higher computational cost.
- Expertise levels are challenging: LLMs performed slightly better on "expert" questions for extraction tasks but showed a significant drop in accuracy for understanding tasks when dealing with novel information.
Key Results
- ChatGPT-4 emerged as the top performer, achieving the highest scores on MAET (88.6%), KCV (87.6%), VOOD (87.9%), and the lowest MAD on CPST (0.81).
- Gemini-Pro closely followed ChatGPT-4, with comparable results across most tasks.
- ChatGPT-3.5 showed decent overall performance but struggled significantly on the VOOD task (8.4% accuracy).
- Among open-source models, Llama3-70B performed best, showing competitive results, though it had a potential weakness in out-of-domain scenarios.
- Asking LLMs to provide detailed explanations for reasoning tasks led to performance improvements: 2.52% for ChatGPT-4 and 4.43% for Llama3-70B on KCV accuracy, and 20.99% for ChatGPT-4 and 14.29% for Llama3-70B on CPST MAD reduction.
- In a human benchmark, LLMs generally outperformed human subjects on the SECURE tasks, with PhD students scoring higher than industry professionals.
Limitations and Future Work
- Dataset Bias: The reliance on standardized sources like MITRE, CVE, and CWE might introduce inherent biases and coverage gaps. Future work will involve refining these datasets and exploring alternative sources.
- Limited Scope: The current benchmark focuses on ICS security. Future work aims to expand the framework to cover broader cybersecurity domains.
- Trustworthiness Dimensions: The authors plan to investigate other dimensions of trustworthiness, including toxicity, bias, adversarial robustness, privacy, and fairness.
- Model Selection: The paper suggests prioritizing closed-source LLMs for problem-solving or out-of-distribution tasks due to their superior performance, unless cost is a concern.
- Addressing Hallucinations: A human-in-the-loop process is recommended to review and validate LLM responses to mitigate hallucinations.
- Contextual Understanding: Enhancing LLMs' ability to interpret sector-specific terminology and scenarios through better context framing is suggested.
Summary updated