arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.10317cs.SEcs.CR
收藏

信任野外代码:探索贡献者声誉度量以审查 Rust 生态系统中的依赖项

Trusting code in the wild: Exploring contributor reputation measures to review dependencies in the Rust ecosystem

Sivana Hamer, Nasif Imtiaz, Mahzabin Tamanna, Preya Shabrina, Laurie Williams

AI总结:

该研究基于 Rust 前 1,644 个软件包构建开发者协作网络并结合调查,评估贡献者声誉中心性信号对依赖审查优先级的作用。

摘要:

开发者依赖开源软件包,并且必须审查依赖项,以防范存在漏洞或恶意的上游代码。在实践中,通常不会对所有依赖项变更进行仔细审查。因此,开发者需要信号来获知哪些依赖项变更需要额外检查。本研究的目标是通过分析贡献者声誉度量作为一种信号,帮助开发者确定依赖审查工作的优先级。我们使用网络中心性度量,以协作活动来代理贡献者声誉。我们采用混合方法,从 Rust 生态系统中排名前 1,644 个软件包出发,构建包含 6,949 名开发者的网络,调查 285 名开发者,并对 5 种中心性度量进行建模。我们发现,只有 24% 的受访者在添加或更新软件包前经常审查依赖项,并提到审查过程中的困难。此外,51% 的受访者在审查依赖项时经常考虑贡献者声誉。接近中心性度量是解释开发者如何审查依赖项的一个显著因素。然而,仅凭中心性度量并不能说明开发者如何选择审查依赖项。我们建议 GitHub、Rust 和 npm 等生态系统根据我们建模的系数实施贡献者声誉徽章,以帮助开发者进行依赖项审查。

英文摘要:

Developers rely on open-source packages and must review dependencies to safeguard against vulnerable or malicious upstream code. A careful review of all dependencies changes often does not occur in practice. Therefore, developers need signals to inform of dependency changes that require additional examination. The goal of this study is to help developers prioritize dependency review efforts by analyzing contributor reputation measures as a signal. We use network centrality measures to proxy contributor reputation using collaboration activity. We employ a mixed method methodology from the top 1,644 packages in the Rust ecosystem to build a network of 6,949 developers, survey 285 developers, and model 5 centrality measures. We find that only 24% of respondents often review dependencies before adding or updating a package, mentioning difficulties in the review process. Additionally, 51% of respondents often consider contributor reputation when reviewing dependencies. The closeness centrality measure is a significant factor in explaining how developers review dependencies. Yet, centrality measures alone do not account for how developers choose to review dependencies. We recommend that ecosystems like GitHub, Rust, and npm implement a contributor reputation badge based on our modeled coefficients to aid developers in dependency reviews.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑