TL;DR
Athena is the first graph-based framework designed to automatically identify which software libraries are affected by a newly reported vulnerability (CVE). By modeling vulnerability databases as a knowledge graph and framing the task as link prediction, Athena leverages rich relational data to outperform state-of-the-art large language model (LLM) baselines by up to 32% while drastically reducing library name hallucinations.
What Problem Does This Paper Address?
When a software vulnerability is publicly disclosed, security vendors and community databases must quickly determine which specific libraries are affected. This information is critical for Software Composition Analysis (SCA) tools to alert developers if their applications are at risk. Currently, this identification step is heavily manual, slow, and error-prone—studies show that over half of vulnerability database entries contain missing or incorrect affected-library fields.
Existing automated approaches treat this strictly as a text retrieval or text generation problem, relying solely on the descriptions within CVE reports and library readmes. This creates a major blind spot: text-only models completely ignore the rich relational structure inherent in security databases, such as historical vulnerability profiles, shared weakness classes (CWEs), affected product configurations (CPEs), and co-occurrence patterns across similar vulnerabilities.
Methods
Athena introduces a novel three-stage framework that shifts the paradigm from text matching to Knowledge Graph Completion (KGC):
- Modeling Module: It constructs a domain-specific security knowledge graph integrating five entity types (CVEs, libraries, CWE weakness categories, CPE products, and software ecosystems) under a unified relational schema.
- Completion Module: Athena applies a contrastive KGC backbone (evaluating both
SimKGCandRAA-KGC) to predict missing edges between CVEs and libraries. This module scores candidate libraries by jointly embedding their textual descriptions and their structural positions in the graph. - Re-ranking Module: To handle the multi-label nature of the task (where one CVE can affect multiple libraries), the authors adapted the Discriminative Instruction Fine-Tuning (DIFT) framework. Top candidates from the KGC backbone are fed into an open-weight LLM augmented with graph embeddings via a learned adapter. The LLM then uses a specialized "promote-then-fill" strategy to refine the final ranking.
Datasets
The framework was evaluated on VulLib, a curated benchmark containing 2,853 Java CVEs sourced from GitHub Advisories with manually verified affected package labels. The authors enriched this dataset with auxiliary metadata from the National Vulnerability Database (NVD)—specifically mapping out the CWE, CPE, and reference hyperlink fields—to build and populate the security knowledge graph.
Key Insights and Ideas
- Structure Beats Scale: One of the paper's most striking findings is that a relatively small 110M-parameter graph model (
SimKGC) can outperform a massive 7B-parameter generative LLM (VulLibGen). This demonstrates that capturing relational context is far more computationally efficient for this task than scaling up raw language model parameters. - Grounded Selection Eliminates Hallucinations: Purely generative LLMs frequently hallucinate package names that do not exist in actual registries. By forcing the LLM to act as a re-ranker over a closed, verifiable candidate pool provided by the graph backbone, Athena reduces the library identifier hallucination rate to just 2.9% (compared to VulLibGen's 11.4%).
- Strong Inductive Capability: Because Athena incorporates textual descriptions into its graph nodes, it can successfully generalize to entirely "unseen" libraries (libraries absent from the training set). Athena identified 60.71% of unseen libraries in testing, showing a minimal performance drop compared to text-only baselines which plumetted by over 15 percentage points.
Key Results
- State-of-the-Art Performance: Athena (combining SimKGC with a fine-tuned Gemma4 31B model) achieved an Average F1 score of 0.602, outperforming the best baseline, VulLibGen, by 32%.
- Baseline Comparison: As shown in the main performance table, Athena consistently dominated across all evaluation depths (@1, @2, and @3) for both precision and recall.
- Real-World Robustness: The authors conducted a validation study using 30 Java CVEs published in 2026—six years after the training data cutoff. Athena maintained a high Precision@1 of 0.767, proving that the framework degrades gracefully over time despite shifts in software ecosystems.
Limitations and Future Work
- Ecosystem Scope: Due to data-availability constraints within the VulLib benchmark, the empirical evaluation was limited to Java libraries. While the methodology is language-agnostic, its performance on other major package registries (like npm, PyPI, or Go) remains to be tested.
- Temporal Leakage Approximations: The chronological data split was based on CVE assignment years rather than exact public disclosure timestamps. Additionally, because NVD records are retroactively updated, complete point-in-time isolation could not be perfectly guaranteed.
- LLM Scale Limits: Due to hardware constraints, the re-ranking module was only evaluated on open-weight models up to 31B parameters. The authors note that testing larger frontier models (70B+) or closed-source APIs could yield further performance gains.
Summary updated