[论文解读] How Quickly Do Development Teams Update Their Vulnerable Dependencies?
本文提出两个指标,Time-Out-Of-Date (TOOD) 和 Post-Fix-Exposure-Time (PFET),用于量化依赖项的时效性以及漏洞依赖被更新的速度,并在 NPM、PyPI 和 Cargo 上进行大规模研究,分析依赖更新实践。
Industry practitioners are increasingly concerned with software that contains vulnerable versions of third-party dependencies that are included both directly and transitively. To address this problem, projects are encouraged to both (a)~quickly update to non-vulnerable versions of dependencies and (b)~be mindful of the update practices of the dependencies they choose to use. To this end, researchers have proposed metrics to measure the responsiveness of the development teams of the packages in keeping their dependencies updated: Mean-Time-To-Update (MTTU) and Mean-Time-To-Remediate (MTTR). While MTTU covers all dependencies, MTTR quantifies the time needed for a package to update its vulnerable dependencies. However, existing metrics fail to capture important nuances, such as considering floating versions and prioritizing recent updates, leading to inaccurate reflections of a development team's update practices. extit{The goal of this study is to aid practitioners in understanding how quickly packages update their dependencies.} We propose two novel metrics, Mean-Time-To-Update for dependencies (MTTU) and Mean-Time-To-Remediate for vulnerable dependencies (MTTR), that overcome the limitations of existing metrics. We conduct an empirical study using $163,207$ packages in npm ($117,129$), PyPI ($42,777$), and Cargo ($3,301$) and characterize how the ecosystems differ in MTTU and MTTR, as well as what package characteristics influence MTTU and MTTR. We found that most packages have a relatively fast dependency update practice. We further study whether MTTU can be used as a proxy for MTTR when sufficient vulnerability data is not available. As we did not find enough statistical evidence for a strong proxy, our findings suggest that MTTU could only be partially used (may be used but with caution) as a proxy for MTTR when vulnerability data is not available.
研究动机与目标
- 推动量化依赖项的最新程度以防止软件供应链攻击的必要性。
- 定义两种新指标 TOOD 和 PFET,捕捉依赖更新的时序方面以及漏洞暴露。
- 开发一个时序依赖解析算法,以在测量中稳定依赖关系。
- 在 NPM、PyPI 和 Cargo 上进行大规模实证分析,以刻画更新行为。
- 将包依赖关系数据集开源,以支持未来的研究。
提出的方法
- 引入 Temporal Dependency Resolution(算法 1),在时间区间内稳定依赖关系。
- 定义 Time-Out-Of-Date (TOOD) 为一个包使用过时依赖版本的平均聚合时间。
- 定义 Post-Fix-Exposure-Time (PFET) 为一个包使用过时且易受攻击的依赖版本的平均聚合时间。
- 在各时间区间对每个 <package, dependency> 对计算 TOOD 和 PFET,并按包聚合。
- 使用 Google BigQuery(deps_dev_v1)和 OSV.dev 的依赖项和通告数据。
- 应用统计假设检验和相关性分析来比较 TOOD 和 PFET 的分布。
实验结果
研究问题
- RQ1RQ1: 在 NPM、PyPI 和 Cargo 中,包如何更新其依赖项(过时时间)?
- RQ2RQ2: 在 NPM、PyPI 和 Cargo 中,包如何更新其易受攻击的依赖项(修复后暴露时间)?
- RQ3RQ3: 过时时间是否能有效代表或替代修复后暴露时间?
主要发现
- PyPI 包更新依赖项的速度快于 NPM 和 Cargo。
- Cargo 包比 NPM 和 PyPI 更快地更新其易受攻击的依赖项。
- 基于分布和相关性分析,TOOD 可以作为 PFET 的代理。
- 作者提供了跨三个生态系统的 26.8 百万条包–依赖关系的大规模数据集。
- 该方法论通过 Temporal Dependency Resolution 方法考虑开放依赖需求和降级。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。