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

文件级复制是开源中的隐式依赖

File-Level Copying Is an Implicit Dependency in Open Source

Peking University(北京大学);University of Tennessee, Knoxville(田纳西大学诺克斯维尔分校)

Runzhi He, Audris Mockus, Wenhao Yang, Minghui Zhou

AI总结:

通过混合方法研究整个开源生态中的文件复制,发现其导致供应链可见性缺失,并识别出安全与许可风险集中在不同复制形式中。

摘要:

文件级复制是一种广泛存在但不受约束的软件复用形式。跨仓库复制文件降低了供应链可见性:它移除了包管理器为声明依赖提供的四个可观察信号(来源、维护、安全性和合规性),且没有恢复机制。为了描述这种非托管复用的规模和后果,我们使用 World of Code (WoC) 对整个开源生态系统中的复制行为进行了混合方法研究。从 0.1% 的提交样本中,我们提取了 690,500 个复制事件,并保留了 3,912 个带有理由的复制提交用于意图标注。我们表明,13 种轴向复制形式(包括供应商依赖、硬件/驱动同步、脚手架、UI 资产和直接源代码复用)并不能可靠地代表开发者意图:在带有理由的提交中,硬件/驱动复制主要是分支维护工作(78%),而依赖供应商复制更常表示绕过上游(70%)而非离线可用性。这些可见性缺口是形式特定的:安全风险和许可风险集中在互补的复制形式中。复制的源文件经常过时(中位数 155 天;38.5% 超过一年),且很少记录可恢复的来源(4.3% 有文档),更不用说可检查的版本(2.0% 有版本);即使是供应商复制也只有 10% 记录了来源。安全风险集中在供应商依赖中:全 WoC 图中有 17,314 个 CVE 风险复制提交,88% 属于依赖供应商形式;80% 的 CVSS 评分 >= 7.0,上游修复采用率仅为 47%-84%。许可风险集中在直接源代码复用中:41,777 个预验证候选,66% 属于源代码形式,其中 39 个已验证的高星级违规(kappa = 0.752)。这两种风险都进入了打包软件,并且仅基于声明元数据的依赖扫描器无法发现它们。

英文摘要:

File-level copying is a widespread but ungoverned form of software reuse. Copying files across repositories reduces supply-chain visibility: it removes the four observable signals a package manager provides for a declared dependency (provenance, maintenance, security, and compliance) with no mechanism to restore them. To characterize the scale and consequences of this unmanaged reuse, we present a mixed-method study of copying across the entire open-source ecosystem using World of Code (WoC). From a 0.1% commit sample, we extract 690,500 copy events and retain 3,912 rationale-bearing copy commits for intent labeling. We show that the 13 axial copy forms, spanning vendored dependencies, hardware/driver synchronization, scaffolding, UI assets, and direct source-code reuse, are unreliable proxies for developer intent: among rationale-bearing commits, hardware/driver copies are predominantly fork-maintenance work (78%), while dependency-vendoring copies more often signal upstream bypass (70%) than offline availability. These visibility gaps are form-specific: security and license risk concentrate in complementary copy forms. Copied sources are frequently stale (median 155 days; 38.5% over one year old) and seldom record a recoverable origin (4.3% documented), let alone a checkable version (2.0% versioned); even vendored copies record where they came from only 10% of the time. Security risk concentrates in vendored dependencies: 17,314 CVE-risk copy commits in the full-WoC graph, 88% in the dependency-vendoring form; 80% score CVSS >= 7.0 and upstream-fix adoption is only 47%-84%. License risk concentrates in direct source-code reuse: 41,777 pre-validation candidates, 66% in the source-code form, with 39 verified high-star violations (kappa = 0.752). Both risks reach packaged software and are invisible to dependency scanners operating on declared metadata alone.

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

↑