Abstract
Modern cybersecurity defense requires bridging the gap between technical software vulnerabilities (CVEs) and the adversarial techniques used to exploit them. This paper presents a novel machine learning framework that utilizes Common Weaknesses (CWEs) as an intermediate "Rosetta Stone" mapping layer. By standardizing the vocabulary between developers and threat analysts, the proposed system achieves a Mean Reciprocal Rank (MRR) of 0.95, significantly outperforming state-of-the-art similarity-search methods. This approach provides actionable threat intelligence, enabling defenders to prioritize vulnerabilities based on likely attacker behavior and known threat actor profiles.
Introduction: The Vocabulary Gap in Security
Security operations centers are currently overwhelmed by the volume of new vulnerabilities, with an average of over 40 reported daily. Effective prioritization requires understanding the "attacker's perspective"—specifically, how a flaw might be exploited and which threat actors are likely to leverage it. However, a significant "language barrier" exists between the two primary stakeholders in this domain. Developers describe vulnerabilities (CVEs) in terms of code flaws and technical bugs, while security analysts describe threats (MITRE ATT&CK) in terms of adversarial behavior and exploitation techniques.
Analysis of these descriptions reveals a stark discrepancy: only 4 out of the top 20 words are shared between the two vocabularies. This lack of overlap causes traditional unsupervised models, such as Word2Vec or BERT, to fail when attempting direct similarity-based mapping.
Methodology
To overcome the vocabulary gap and the scarcity of labeled CVE-to-ATT&CK data, the authors developed a two-step hierarchical mapping approach:
- CVE to CWE Mapping: The framework first maps vulnerabilities to Common Weakness Enumerations (CWEs). Since approximately 70% of CVEs in the National Vulnerability Database (NVD) are already manually mapped to CWEs by experts, this provides a robust "ground truth" training set. The system employs a suite of neural networks (one per CWE) for multi-label classification. It utilizes advanced NLP techniques, including synonym word coding, to standardize terminology across disparate descriptions.
- CWE to MITRE ATT&CK Mapping: The system then leverages established public mappings, such as CAPEC (Common Attack Pattern Enumeration and Classification), to link these standardized weaknesses to specific attack techniques and the threat actors associated with them.
This approach effectively reduces the dimensionality of the problem, moving from over 170,000 unique vulnerabilities to roughly 900 standardized weakness categories. This abstraction enhances both model performance and the explainability of the resulting threat intelligence.
Results and Evaluation
The hierarchical model demonstrates exceptional performance compared to standard similarity-search baselines.
As shown in the comparison, the proposed multi-label classification approach achieves an MRR of 0.95. In contrast, direct similarity searches using models like Doc2Vec or BERT variants perform significantly worse, with MRR scores often falling below 0.50.
The model provides high coverage, successfully mapping 91% of vulnerabilities to the 22 most common weaknesses with high precision. Detailed performance metrics for specific CWEs, including Buffer Overflows and SQL Injection, are provided below:
Real-World Validation: Log4Shell
The framework's utility was demonstrated during the Log4j (Log4Shell) crisis. The system correctly identified 15 attack techniques and 50 potential threat actors. Notably, it flagged the Phosphorus and Hafnium groups as likely exploiters—predictions that were later validated by real-world threat intelligence reports from Microsoft.
Limitations and Future Directions
While the model is highly effective for common weaknesses, performance degrades for rare CWEs due to data sparsity. The macro F-score for the rarest categories drops significantly, highlighting a need for more diverse training data. Additionally, the system's accuracy is dependent on the completeness of public mapping datasets like CAPEC, which are not yet exhaustive.
Future work includes implementing "Active Learning" loops, where security subject matter experts (SMEs) provide feedback to the model. This will allow the system to continuously adapt to emerging attack patterns and refine its mappings for less common weaknesses as new data becomes available.
Summary updated