Introduction
As the volume of reported Common Vulnerabilities and Exposures (CVEs) continues to grow, security professionals face an increasing burden in categorizing these threats. Mapping vulnerability descriptions to structured frameworks like the Common Weakness Enumeration (CWE) and MITRE ATT&CK is essential for risk management but remains a labor-intensive manual process. This paper evaluates the potential of Large Language Models (LLMs), specifically ChatGPT, to automate this Vulnerability Description Mapping (VDM) task.
The Challenge of Vulnerability Mapping
Security engineers rely on two primary taxonomies to understand and mitigate risks:
- CWE (Common Weakness Enumeration): Defines the underlying software or hardware weakness (the "what").
- ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge): Describes the operational methods used by attackers (the "how").
While traditional NLP techniques have been applied to automate these mappings, the emergence of general-purpose LLMs raises the question of whether specialized tools are still necessary.
Evaluation Methodology
The researchers developed a systematic framework to test ChatGPT’s accuracy in VDM. The core of the experiment involved comparing two distinct prompting strategies:
- Weak Prompts: Simple, direct queries asking for a specific ID.
- Strong Prompts: A multi-step "Chain-of-Thought" approach where the model first identifies the top five potential categories and their definitions before selecting the most suitable match.
The evaluation utilized three large-scale datasets derived from 2021 CVE data, including mappings to CWE and ATT&CK techniques verified by third-party databases like VulDB and the BRON dataset.
Key Insights: Generalists vs. Specialists
The study reveals a significant performance gap between general software weakness identification and complex attack technique mapping.
The Power of Contextual Prompting
"Strong prompts" proved crucial. By requiring the model to articulate definitions before making a final selection, the researchers significantly reduced surface-level keyword matching errors. This strategy helps the model "reason" through the taxonomy rather than simply guessing.
Conceptual and Hallucinatory Risks
Despite its linguistic prowess, ChatGPT exhibited "conceptual confusion." It occasionally hallucinated definitions or misidentified specific security IDs (e.g., mislabeling CAPEC-60). This suggests that while the model understands security terminology, it lacks a robust, structured knowledge base of specific framework IDs.
Experimental Results
The results highlight a clear distinction in ChatGPT's capabilities across different frameworks.
CWE Mapping Performance
ChatGPT performed relatively well on CWE tasks. With strong prompts, it achieved an exact match rate of 53.13%. When the evaluation criteria were expanded to include "parent" or "grandparent" categories in the CWE hierarchy, accuracy rose to 76.13% and 84.04%, respectively.
ATT&CK Mapping and SOTA Comparison
In contrast, mapping vulnerabilities to the MITRE ATT&CK framework proved much more difficult. Even with optimized prompts, ChatGPT's accuracy on Dataset III was only 32.76%. When compared to CVET, a specialized model fine-tuned for security tasks, ChatGPT was significantly outperformed; CVET achieved 71.49% accuracy on the same dataset.
Conclusion and Future Directions
The findings suggest that while ChatGPT is a valuable assistant for preliminary security analysis, it cannot yet replace human experts or specialized, fine-tuned models. The model's performance is limited by context window constraints—preventing the inclusion of entire taxonomies in a single prompt—and a lack of task-specific training.
The authors conclude that the future of automated VDM likely lies in open-source LLMs fine-tuned on security-specific datasets rather than general-purpose closed models. For now, professional expertise remains indispensable for high-stakes vulnerability mapping.
Summary updated