arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.19383cs.SE
收藏

关于Maven包重建中源代码变化性的研究

On the Variability of Source Code in Maven Package Rebuilds

Victoria University of Wellington(惠灵顿维多利亚大学);Oracle Inc(甲骨文公司)

Jens Dietrich, Behnaz Hassanshahi

AI总结:

本文研究了Maven包重建中源代码变化性问题,发现构建扩展生成的代码导致非等价源代码,提出应对策略。

摘要:

从开源项目重新构建包是一种常见的做法,以提高软件供应链的安全性,现在已达到工业规模。其基本原理是获取用于构建在仓库(如Maven Central)上发布的包的源代码,然后使用强化的安全措施独立重建该包,并在某些替代仓库中发布。在本文中,我们测试了这一假设,即那些替代构建使用的是相同的源代码。为此,我们比较了Maven Central上发布的包所释放的源代码,与Google的Assured Open Source和Oracle的Build-from-Source项目中独立构建的包所关联的源代码。我们研究了28个流行包的85个版本的替代构建中的非等价源代码,并探讨了非等价的原因。我们发现主要原因是构建扩展在构建过程中生成代码,这些代码难以复现。我们建议了一些应对这一问题的策略。

英文摘要:

Rebuilding packages from open source is a common practice to improve the security of software supply chains, and is now done at an industrial scale. The basic principle is to acquire the source code used to build a package published in a repository such as Maven Central (for Java), rebuild the package independently with hardened security, and publish it in some alternative repository. In this paper we test the assumption that the same source code is being used by those alternative builds. To study this, we compare the sources released with packages on Maven Central, with the sources associated with independently built packages from Google's Assured Open Source and Oracle's Build-from-Source projects. We study non-equivalent sources for alternative builds of 28 popular packages with 85 releases. We investigate the causes of non-equivalence, and find that the main cause is build extensions that generate code at build time, which are difficult to reproduce. We suggest strategies to address this issue.

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

↑