TL;DR
This paper introduces a novel approach to accurately assess the impact of vulnerabilities across entire software ecosystems, going beyond simple dependency checks. They developed a sophisticated call-graph-level analysis and a new metric, VPSS, to quantify the dynamic spread and evolution of vulnerability impact over time.
What Problem Does This Paper Address?
The software supply chain is a complex web of dependencies, and a vulnerability in one component can have far-reaching consequences. Current methods for assessing this impact are limited. Many rely on just checking declared dependencies (package-level), leading to many false alarms (false positives) because a dependency might be declared but never actually used. Other, more advanced methods struggle to analyze the entire ecosystem comprehensively or lack a way to quantify the dynamic impact of a vulnerability as it spreads and eventually gets patched. Existing metrics like CVSS are designed for individual vulnerabilities, not their cascading effects through a supply chain.
Methods
The authors propose a two-pronged solution:
- Hierarchical Worklist-Based Vulnerability Propagation Analysis: This is the core of their impact assessment.
- Dependency Graph Construction: They build a P-level (Project-level) dependency graph, which is more scalable than a PV-level (Project-Version) graph, to represent the ecosystem's structure.
- Vulnerable Function (VF) Identification: They use a patch-based approach to identify potential VFs and then employ Large Language Models (LLMs) to filter out irrelevant ones, leveraging the LLMs' broad domain knowledge for a language-agnostic approach.
- Hierarchical Pruning: To manage the complexity of analyzing vast ecosystems, they employ a multi-stage pruning strategy:
- Version-based pruning: Filters out PVs not affected by the specific vulnerable versions.
- Import-based pruning: Removes PVs that declare a dependency but don't actually import its code.
- CG-level pruning: Further refines the analysis by checking if downstream PVs actually call vulnerable functions.
- Worklist Algorithm: A worklist-based approach, common in data-flow analysis, is used to systematically process dependencies and ensure all affected components are identified, even in the presence of cyclic dependencies.
- Vulnerability Propagation Scoring System (VPSS): This is a novel metric to quantify the impact.
- Breadth and Depth: VPSS considers both how widely a vulnerability spreads (breadth) and how deeply it penetrates the dependency chains (depth).
- Time-Aware: VPSS is dynamic, meaning its score changes over time as patches are released and adopted, reflecting the evolving risk.
- Normalized Score: The final VPSS score is normalized to a 0-10 range, similar to CVSS, for easy interpretation and integration into existing workflows.
Datasets
The evaluation was performed on a dataset derived from the Java Maven ecosystem. They used a dataset of 100 real-world vulnerabilities previously investigated by Wu et al. [14]. They enhanced this dataset by incorporating complete lists of vulnerable versions from the National Vulnerability Database (NVD) and refining VF annotations.
Key Insights and Ideas
- P-level dependency graphs are crucial for scalability: Analyzing the entire ecosystem at the PV level is computationally infeasible. Abstracting to project-level dependencies first significantly reduces the search space.
- LLMs are effective for filtering vulnerable functions: Leveraging LLMs for VF identification and filtering offers a language-agnostic and adaptable approach, overcoming limitations of purely manual or rule-based methods.
- Hierarchical pruning is highly effective: The multi-stage pruning process dramatically reduces the number of components that need in-depth analysis, making ecosystem-wide call-graph analysis practical.
- Vulnerability impact naturally decays over time: The VPSS scores generally decrease over time, reflecting the adoption of patches and the natural mitigation of risk in software supply chains.
- Delayed patch adoption can cause temporary VPSS increases: Some vulnerabilities show temporary score increases due to slow dependency updates, highlighting the importance of time-aware metrics.
Key Results
- High Pruning Efficiency: The hierarchical pruning mechanism effectively removes a significant portion of components: on average, 97.8% of Projects (Ps) and 99.2% of Project-Versions (PVs) are pruned.
- Reduced Analysis Cost: The pruning significantly lowers the cost of call-graph (CG) construction by reducing the number of CGs that need to be built.
- Practical Analysis Time: Per-vulnerability analysis time ranges from 1.2 seconds to 54 hours, with a median of 1.5 hours, which is considered acceptable for ecosystem-wide analysis.
- VPSS Reflects Impact: Experimental results show that high VPSS scores correspond to vulnerabilities with wide and deep propagation, and the temporal evolution of VPSS aligns with expected patch adoption dynamics. For example, CVE-2016-5393, a high-severity vulnerability, achieved the highest VPSS score of 7.35.
Limitations and Future Work
- Incomplete Vulnerability Data: The accuracy of the analysis is dependent on the completeness and accuracy of vulnerability information from sources like NVD.
- Patch Complexity: Real-world security patches can be complex and may contain unrelated changes, making precise VF extraction challenging.
- Static Analysis Limitations: Reliance on static analysis techniques (import analysis, CG construction) might miss vulnerabilities related to dynamic features like class loading or method dispatching.
- Parameter Tuning: The VPSS metric has several parameters that are currently set based on domain knowledge and empirical tuning. Automating the setting of these parameters using statistical learning from historical data is suggested as future work.
- Refining VF Identification: Further research into refining VF identification methods is proposed.
- Integrating Dynamic Features: Incorporating techniques to handle dynamic features in static analysis is suggested to improve accuracy.
Summary updated