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

你的依赖树有多深?对10个软件生态系统的依赖放大现象的实证研究

How Deep Does Your Dependency Tree Go? An Empirical Study of Dependency Amplification Across 10 Package Ecosystems

Auburn University(奥本大学)

Jahidul Arafat

AI总结:

本研究通过分析10个软件生态系统的依赖放大现象,发现Maven的平均放大率显著高于其他生态系统,揭示了依赖管理对供应链安全的影响。

摘要:

现代软件开发依赖于包生态系统,其中单个声明的依赖项可能会拉入许多额外的转义包。这种依赖放大,定义为转义依赖项与直接依赖项的比率,对软件供应链安全有重大影响,但不同生态系统之间的放大模式尚未在大规模上进行比较。我们对十个主要生态系统中的500个项目进行了实证研究,包括Maven Central(Java)、npm Registry(JavaScript)、crates io(Rust)、PyPI(Python)、NuGet Gallery(dot NET)、RubyGems(Ruby)、Go Modules(Go)、Packagist(PHP)、CocoaPods(Swift和Objective C)以及Pub(Dart)。我们的分析显示,Maven的平均放大率为24.70倍,相比之下,Go Modules为4.48倍,npm为4.32倍,CocoaPods为0.32倍。我们在45对 pairwise 比较中发现有22对存在显著差异,挑战了npm由于其许多小用途包而具有最高放大率的假设。我们发现28%的Maven项目超过10倍的放大率,表明一种系统性的模式而不是孤立的异常值,相比之下,RubyGems为14%,npm为12%,而Cargo、PyPI、Packagist、CocoaPods和Pub为零。我们把这些差异归因于生态系统设计选择,如依赖解析行为、标准库完整性以及平台限制。我们的发现表明应采用特定生态系统的安全策略,包括针对Maven环境的系统性审计,针对npm和RubyGems的定向异常检测,以及对放大率受控的生态系统的持续实践。我们提供了一个完整的复制包,包含数据和分析脚本。

英文摘要:

Modern software development relies on package ecosystems where a single declared dependency can pull in many additional transitive packages. This dependency amplification, defined as the ratio of transitive to direct dependencies, has major implications for software supply chain security, yet amplification patterns across ecosystems have not been compared at scale. We present an empirical study of 500 projects across ten major ecosystems, including Maven Central for Java, npm Registry for JavaScript, crates io for Rust, PyPI for Python, NuGet Gallery for dot NET, RubyGems for Ruby, Go Modules for Go, Packagist for PHP, CocoaPods for Swift and Objective C, and Pub for Dart. Our analysis shows that Maven exhibits mean amplification of 24.70 times, compared to 4.48 times for Go Modules, 4.32 times for npm, and 0.32 times for CocoaPods. We find significant differences with large effect sizes in 22 of 45 pairwise comparisons, challenging the assumption that npm has the highest amplification due to its many small purpose packages. We observe that 28 percent of Maven projects exceed 10 times amplification, indicating a systematic pattern rather than isolated outliers, compared to 14 percent for RubyGems, 12 percent for npm, and zero percent for Cargo, PyPI, Packagist, CocoaPods, and Pub. We attribute these differences to ecosystem design choices such as dependency resolution behavior, standard library completeness, and platform constraints. Our findings suggest adopting ecosystem specific security strategies, including systematic auditing for Maven environments, targeted outlier detection for npm and RubyGems, and continuation of current practices for ecosystems with controlled amplification. We provide a full replication package with data and analysis scripts.

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

↑