四大公共软件包注册表中的签名实践:数量、质量与影响因素
Signing in Four Public Software Package Registries: Quantity, Quality, and Influencing Factors
AI总结:
本研究针对三类共四个公共软件包注册表开展测量,分析签名的数量、质量与纵向趋势,并通过准实验明确强制要求、专用工具等因素对签名采纳的影响,凸显注册表管理与基础设施的重要性。
摘要:
许多软件应用会集成由公共软件包注册表分发的开源第三方包,在这条供应链上保障作者身份归属是一项挑战。软件包维护者可以通过软件签名来保障软件包的作者身份,但目前尚不清楚这种做法的普及程度,以及生成的签名是否被正确创建。已有研究提供了注册表签名实践的原始数据,但仅针对单一平台进行测量,未考虑签名质量,未纳入时间维度,也未评估可能影响签名行为的各类因素。我们既没有关于签名实践的最新测量结果,也不了解现有签名的质量,此外,我们对影响签名采纳度的因素缺乏全面认知。\n本研究填补了这一空白。我们对三类软件包注册表开展了测量:传统软件类(Maven、PyPI)、容器镜像类(DockerHub)以及机器学习模型类(Hugging Face)。针对每个注册表,我们描述了已签名制品的特性,以及当前签名的数量与质量情况;随后,我们考察了签名实践的纵向变化趋势;最后,我们通过准实验估算了不同因素对软件签名实践的影响。总结研究发现如下:(1)强制要求采纳签名能够提升签名数量;(2)提供专用工具能够提升签名质量;(3)起步是最难的环节——维护者一旦开始签名,往往会持续坚持;(4)尽管许多供应链攻击可以通过签名得到缓解,但签名采纳度主要受注册表政策影响,而非公众对攻击的认知、新的工程标准等因素。这些发现凸显了软件包注册表管理者与签名基础设施的重要性。
英文摘要:
Many software applications incorporate open-source third-party packages distributed by public package registries. Guaranteeing authorship along this supply chain is a challenge. Package maintainers can guarantee package authorship through software signing. However, it is unclear how common this practice is, and whether the resulting signatures are created properly. Prior work has provided raw data on registry signing practices, but only measured single platforms, did not consider quality, did not consider time, and did not assess factors that may influence signing. We do not have up-to-date measurements of signing practices nor do we know the quality of existing signatures. Furthermore, we lack a comprehensive understanding of factors that influence signing adoption. This study addresses this gap. We provide measurements across three kinds of package registries: traditional software (Maven, PyPI), container images (DockerHub), and machine learning models (Hugging Face). For each registry, we describe the nature of the signed artifacts as well as the current quantity and quality of signatures. Then, we examine longitudinal trends in signing practices. Finally, we use a quasi-experiment to estimate the effect that various factors had on software signing practices. To summarize our findings: (1) mandating signature adoption improves the quantity of signatures; (2) providing dedicated tooling improves the quality of signing; (3) getting started is the hard part -- once a maintainer begins to sign, they tend to continue doing so; and (4) although many supply chain attacks are mitigable via signing, signing adoption is primarily affected by registry policy rather than by public knowledge of attacks, new engineering standards, etc. These findings highlight the importance of software package registry managers and signing infrastructure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。