# 软件仓库

软件仓库（software repository，也称包仓库或注册表）是用于存储和检索可由包管理器安装的软件包的位置，同时保存与这些包相关的历史信息<sup>[1](https://www.linuxfoundation.org/hubfs/LF%20Research/lfr_censusiii_120424a.pdf)</sup>。该术语与“版本控制仓库”容易混淆：包仓库通过索引提供可安装的构件，而GitHub或GitLab等平台上的源码仓库承载开发历史，这一区分具有安全后果，因为npm的发布模型不要求链接到公开的版本控制系统，这使得针对npm账户的隐蔽攻击得以在版本系统未变更的情况下实施<sup>[1](https://www.linuxfoundation.org/hubfs/LF%20Research/lfr_censusiii_120424a.pdf)</sup><sup> • </sup><sup>[2](https://www.usenix.org/system/files/sec19-zimmermann.pdf)</sup>。xz-utils后门则从另一侧利用了同样的缺口：攻击者以“Jia Tan”的身份花费数年获得维护者地位，签署了被投毒的发布压缩包，其中的恶意构建逻辑仅存在于压缩包中，而不在公开的git仓库里<sup>[3](https://redmonk.com/kholterhoff/2026/07/28/modern-software-registries-trust-service/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 用于存储和检索可由包管理器安装的软件包的位置，有别于平台上的源码仓库<sup>[1](https://www.linuxfoundation.org/hubfs/LF%20Research/lfr_censusiii_120424a.pdf)</sup> |
| 规模（2024年） | npm约480万个项目、年均4.5万亿次请求；PyPI 63.5万个项目、5300亿次请求；Maven Central 6.7万个项目、1.5万亿次请求；NuGet 66.4万个项目、1590亿次请求<sup>[4](https://www.sonatype.com/state-of-the-software-supply-chain/2024/scale)</sup> |
| PyPI流量（2025年） | 处理2.56万亿次请求，传输1.92EB数据，平均每秒81,000次请求<sup>[5](https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/)</sup> |
| 审核模式 | npm和PyPI均不进行发布前审核；两者都采用“先发布、后补救”模式<sup>[6](https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-package-registry-systemic-risk-20260623/)</sup> |
| 完整性 | TUF元数据携带受信密钥、文件哈希、签名、版本号和过期日期；OCI注册表根据清单验证每个下载层的摘要<sup>[7](https://peps.python.org/pep-0458/)</sup><sup> • </sup><sup>[8](https://oci-playground.github.io/specs-latest/specs/distribution/v1.0.0/oci-distribution-spec.html)</sup> |
| 可信发布 | OIDC身份令牌被交换为短期、严格限定范围的API令牌；截至2025年底，超过50,000个PyPI项目使用了该机制，超过20%的上传通过它完成<sup>[9](https://github.com/ossf/wg-securing-software-repos/blob/main/docs/trusted-publishers-for-all-package-repositories.md)</sup><sup> • </sup><sup>[5](https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/)</sup> |
| 私有注册表成本 | 对于500名工程师的组织，Nexus Pro约为每年2.5万至5万美元；含Xray的Artifactory Enterprise为每年6万至12万美元<sup>[10](https://safeguard.sh/resources/blog/choosing-a-private-package-registry-2025)</sup> |

## 仓库如何工作

注册表暴露一个索引和一个API。对于Python，PEP 503规定了“simple”仓库API，其规范实现驱动着PyPI，为任何Python包仓库定义了正确行为；它建议仓库选择一种通过Python的hashlib模块可用的哈希函数，当前推荐sha256<sup>[11](https://github.com/python/peps/blob/main/peps/pep-0503.rst)</sup>。对于容器，OCI分发规范定义了一种API协议，标准化注册表与客户端之间的内容分发，并对推送、拉取、blob、清单、摘要和标签定义了术语<sup>[8](https://oci-playground.github.io/specs-latest/specs/distribution/v1.0.0/oci-distribution-spec.html)</sup>。

**依赖解析。** 当包管理器安装一个项目时，除了直接依赖外，还必须为传递依赖（即依赖的依赖）选择版本，从npmjs.org等注册表下载它们以生成依赖图<sup>[12](https://queue.acm.org/doi/pdf/10.1145/3723000)</sup>。npm递归地将依赖约束解析为具体的库版本，形成有向依赖图；一项针对整个npm生态系统的知识图谱研究捕获了超过1000万个库版本和6000万条良好解析的依赖关系<sup>[13](https://arxiv.org/html/2201.03981v2)</sup>。npm中每个包的依赖数量以超线性速率增长，这种规模造成了许多依赖管理挑战<sup>[14](https://arxiv.org/html/2310.07847)</sup>。[语义化版本控制](https://www.edgepedia.org/zh/semantic-versioning)是对依赖更新可用与应用之间滞后的一种潜在回应，但滞后依然存在：当某个依赖发布了漏洞修复后，只有21.28%的客户端包以自身的修复版本做出了反应<sup>[15](https://par.nsf.gov/servlets/purl/10416452)</sup><sup> • </sup><sup>[16](https://link.springer.com/article/10.1007/s10664-021-09951-x)</sup>。

索引架构也各不相同。像Cargo原始索引那样以git仓库作为索引的注册表提供了历史和简便的镜像能力，但无法无限扩展；Cargo增加了稀疏索引以避免首次使用时下载整个注册表<sup>[17](https://nesbitt.io/2025/12/29/categorizing-package-registries.html)</sup>。

## 仓库的类型

包注册表在若干正交维度上存在差异。npmjs.com由数据库支撑、不经审核、主要分发源码，由一家营利性公司运营；而Debian的仓库基于文件系统、由维护者筛选管理、分发二进制文件，由一个基金会运营<sup>[17](https://nesbitt.io/2025/12/29/categorizing-package-registries.html)</sup>。

**系统级注册表**如apt/dpkg、yum/dnf、pacman、apk、homebrew-core、nixpkgs、Guix、zypper、Portage、FreeBSD ports和pkgsrc，用于安装操作系统组件和应用程序<sup>[17](https://nesbitt.io/2025/12/29/categorizing-package-registries.html)</sup>。早期的包管理器处理带有依赖元数据的预构建二进制包，但包处于孤立状态，直到1998年Debian的apt-get和1999年[Red Hat](https://www.edgepedia.org/zh/red-hat)的up2date使得无需显式指定即可安装一个包及其所有依赖成为可能；APT本身就是Debian的一项关键技术革新，被广泛效仿<sup>[18](https://www.sonarsource.com/blog/a-brief-history-of-package-management/)</sup><sup> • </sup><sup>[19](https://www.debian.org/doc/manuals/project-history/project-history.en.txt)</sup>。[Red Hat Linux](https://www.edgepedia.org/zh/red-hat-linux) 2.0于1995年随附RPM，是第一个包含该打包系统的发行版<sup>[20](https://nesbitt.io/2025/11/15/package-manager-timeline.html)</sup>。

**语言生态注册表**为某语言的包管理器提供源码或构建产物。Perl的CPAN由Jarkko Hietaniemi和Andreas König于1995年10月启动，是最早的注册表之一，随后是Java的Maven以及许多其他注册表<sup>[20](https://nesbitt.io/2025/11/15/package-manager-timeline.html)</sup><sup> • </sup><sup>[18](https://www.sonarsource.com/blog/a-brief-history-of-package-management/)</sup>。crates.io是Rust社区的官方crate注册表，支持即时发布、安装和编程API<sup>[21](https://crates.io/)</sup>。

**容器注册表**在OCI规范下符合同一概念：摘要是由blob内容的密码学哈希创建的唯一标识符，每层下载后容器引擎根据清单验证摘要，检查下载内容与清单匹配<sup>[8](https://oci-playground.github.io/specs-latest/specs/distribution/v1.0.0/oci-distribution-spec.html)</sup>。

## 安全与完整性

基线防御是摘要验证。更强的方案增加签名元数据。TUF元数据文件包含哪些密钥可信、文件的密码学哈希、签名、元数据版本号以及过期日期（超过该日期元数据被视为过期）；其设计目标是攻击者需要窃取多个独立存储的签名密钥才能攻破指定仓库可用文件的角色<sup>[7](https://peps.python.org/pep-0458/)</sup>。在PEP 458的最低安全模型下，开发者上传的发行版由PyPI自身签名，无需开发者采取任何操作，且立即可供下载<sup>[7](https://peps.python.org/pep-0458/)</sup>。TUF已在CNCF的Notary服务中用于生产环境，为Docker Registry中的容器镜像签名，该规范已经历三次独立安全审计<sup>[7](https://peps.python.org/pep-0458/)</sup>。

**可信发布**针对凭证问题。它基于[OpenID Connect](https://www.edgepedia.org/zh/openid-connect)构建，将OIDC身份令牌交换为短期、严格限定范围的API令牌，消除了与CI系统共享长期特权API令牌的需要；ID令牌的JWT声明和签名根据身份提供商的JSON Web密钥集进行验证，并对照预配置的信任策略进行检查，例如指定仓库、工作流和环境的[GitHub Actions](https://www.edgepedia.org/zh/github-actions)配置<sup>[9](https://github.com/ossf/wg-securing-software-repos/blob/main/docs/trusted-publishers-for-all-package-repositories.md)</sup><sup> • </sup><sup>[22](https://docs.pypi.org/trusted-publishers/internals/)</sup>。它也有局限：已泄露的短期令牌在过期前仍可用于发布恶意包，且受信的外部状态不能被不受信方控制<sup>[9](https://github.com/ossf/wg-securing-software-repos/blob/main/docs/trusted-publishers-for-all-package-repositories.md)</sup>。

**证明。** PEP 740于2024年11月在PyPI上最终确定，允许索引接受并提供基于Sigstore的Fulcio（签发绑定OIDC身份的短期签名证书）和Rekor透明日志构建的密码学可验证证明，与此同时，PGP签名已被弃用<sup>[23](https://safeguard.sh/resources/blog/building-secure-python-packages-guide)</sup>。采用率起初较低：Trail of Bits研究发现，在PEP 740推出时，下载量最高的360个PyPI包中只有约5%带有证明<sup>[23](https://safeguard.sh/resources/blog/building-secure-python-packages-guide)</sup>。

**攻击类别及其局限。** 针对包注册表的域名抢注攻击易于部署且在实践中有效，npm对已发布代码没有系统性审查流程；已知漏洞大多由个人报告<sup>[2](https://www.usenix.org/system/files/sec19-zimmermann.pdf)</sup>。event-stream事件展示了接管模式：攻击者利用社会工程获得发布权限，然后移除原始维护者成为唯一所有者<sup>[2](https://www.usenix.org/system/files/sec19-zimmermann.pdf)</sup>。Census III报告称，开发者账户接管在平台以及npm和PyPI等注册表中发生频率越来越高，“后门植入”——将恶意代码插入看似无害的包中——是一种流行的渗透方法<sup>[1](https://www.linuxfoundation.org/hubfs/LF%20Research/lfr_censusiii_120424a.pdf)</sup>。自我传播提高了风险：Shai-Hulud的一个已演示的蠕虫变种在五小时内攻陷了160多个包，在人工审核者能够响应之前就实现了广泛传播<sup>[6](https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-package-registry-systemic-risk-20260623/)</sup>。

签名并不能堵住所有缺口。在一个npm案例中，Sigstore完全按设计工作，验证了包在CI环境中构建、确认了有效证书、并将一切记录在透明日志中，但它无法确定持有凭证的人是否为合法维护者；身份证明不等于代码保证<sup>[24](https://venturebeat.com/security/npm-sigstore-provenance-stolen-identity-audit-grid-2026)</sup>。云安全联盟提出了类似的结构性观点：Sigstore验证出示令牌的身份，但不验证该身份环境中执行的代码是否与维护者意图运行的一致，SLSA威胁模型同样未能完全覆盖已被攻陷的构建环境<sup>[25](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_mini_shai_hulud_supply_chain_sigstore_20260515-csa-styled.pdf)</sup>。在客户端，通过pip install --require-hashes进行哈希锁定会拒绝SHA-256与记录哈希不匹配的安装，堵住了2021年研究展示的重新上传和依赖混淆缺口<sup>[23](https://safeguard.sh/resources/blog/building-secure-python-packages-guide)</sup>。

## 镜像、CDN与大规模分发

TUF规范将仓库定义为目标文件的概念性来源，可以有一个或多个镜像，每个镜像可以是不同的主机通过HTTP提供文件<sup>[26](https://theupdateframework.github.io/specification/latest/)</sup>。CPAN是由6000多名开发者在19年间贡献的Perl库集合，在全球250多台服务器上设有镜像<sup>[27](https://cpan.io/ref/cpan/history.html)</sup>。新鲜度可被检查：CPAN主站每小时更新一个嵌入UTC时间戳的文件，镜像状态每天从两大洲的两台机器监测四次<sup>[28](https://www.cpan.org/misc/ZCAN.html)</sup>。CTAN在主机之间使用并行归档结构，各主机的内容通常在30小时内同步<sup>[29](https://www.tug.org/TUGboat/Articles/tb14-3/tb40green.pdf)</sup>。

基于文件系统的仓库从HTTP镜像静态提供生成的索引文件，因此服务器仅在仓库更新时工作，而非客户端获取时；这就是紧凑索引带给RubyGems的模式<sup>[17](https://nesbitt.io/2025/12/29/categorizing-package-registries.html)</sup>。Sonatype认为，Maven的集中式设置模型和对固定版本的缓存信任行为天然减少了与其他生态系统相比的重复下载，并使代理和镜像变得简单<sup>[30](https://www.sonatype.com/state-of-the-software-supply-chain/2026/software-infrastructure-growth)</sup>。一项对语言包系统的调查将通用镜像架构描述为一个接受上传的核心站点加上自动同步的镜像网络，全球约有94个镜像站点，主站点平均每月约6TB流量<sup>[31](https://neurocline.github.io/papers/survey-of-programming-language-packaging-systems.html)</sup>。

## 数据一览

Sonatype的2024年报告估计npm有480万个项目和4880万个项目版本，年请求量约4.5万亿次，下载量同比增长70%；PyPI有63.5万个项目和660万个版本，约5300亿次请求，增长31%；[Maven Central](https://www.edgepedia.org/zh/maven-central)约6.7万个项目和1870万个版本，2023年估计1.5万亿次请求，增长36%；NuGet约66.4万个项目和1050万个版本，2023年估计1590亿次请求<sup>[4](https://www.sonatype.com/state-of-the-software-supply-chain/2024/scale)</sup>。在这四个生态系统中，它统计到年请求总量约6.689万亿次<sup>[4](https://www.sonatype.com/state-of-the-software-supply-chain/2024/scale)</sup>。

根据npm的官方数据，2023年结束时超过250万个包已上线，月下载量超过1840亿次，当年向npm发布了10,518,566个包版本<sup>[32](https://socket.dev/blog/2023-npm-retrospective)</sup>。Sonatype的2025年数据将npm列为559万个累计组件和7.97万亿次下载，增长65.43%；PyPI为821,300个组件和8049.7亿次下载，增长50.64%；Maven Central为808,600个组件和8390.5亿次下载；NuGet为760,100个组件和2233.7亿次下载<sup>[30](https://www.sonatype.com/state-of-the-software-supply-chain/2026/software-infrastructure-growth)</sup>。

这些计数在不同来源之间并不一致，而这种不一致本身具有信息价值。Sonatype 2024年统计的480万个npm项目远高于npm官方2023年底250万个已上线包的数据，Sonatype将注册表压力部分归因于垃圾发布、恶意软件、域名抢注和CI/CD配置错误反复重新下载相同构件所带来的合成增长<sup>[4](https://www.sonatype.com/state-of-the-software-supply-chain/2024/scale)</sup><sup> • </sup><sup>[32](https://socket.dev/blog/2023-npm-retrospective)</sup><sup> • </sup><sup>[30](https://www.sonatype.com/state-of-the-software-supply-chain/2026/software-infrastructure-growth)</sup>。PyPI自己的2025年数据也与Sonatype不同：该注册表报告2025年总计2.56万亿次请求和1.92EB传输量，而Sonatype统计同年8049.7亿次下载；两者衡量的是不同事物（所有HTTP请求对比计数的下载），此处均按已发布数据引用<sup>[5](https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/)</sup><sup> • </sup><sup>[30](https://www.sonatype.com/state-of-the-software-supply-chain/2026/software-infrastructure-growth)</sup>。从历史角度看，PyPI在2015年底约有72,000个包，而CPAN约有200,000个，PyPI上Python包的中位大小仅为16KB<sup>[31](https://neurocline.github.io/papers/survey-of-programming-language-packaging-systems.html)</sup><sup> • </sup><sup>[18](https://www.sonarsource.com/blog/a-brief-history-of-package-management/)</sup>。

## 公共与私有注册表

一些公共注册表，包括npm和PyPI，采用先发布、后补救的模式；私有和代理平台增加了策略执行。Artifactory Xray检查每个构件，并根据许可证和CVE策略，通过“阻止下载”和“自动删除”两种操作在虚拟仓库级别进行隔离；Nexus IQ/Firewall则在代理层进行隔离，因此恶意或不合规的包在任何缓存发生之前就被阻止——这是针对域名抢注和被攻陷包的更强保障<sup>[10](https://safeguard.sh/resources/blog/choosing-a-private-package-registry-2025)</sup>。Sigstore和SBOM支持各不相同：Artifactory 7.90可以存储、签名和验证Sigstore证明，并发布带有CycloneDX SBOM附件的构建信息，而Nexus 3.71仅在Docker仓库类型中支持Sigstore cosign验证，[Cloudsmith](https://www.edgepedia.org/zh/cloudsmith)支持兼容Cosign的签名构件上传<sup>[10](https://safeguard.sh/resources/blog/choosing-a-private-package-registry-2025)</sup>。

对于500名工程师的组织的参考成本：Nexus Pro约为每年2.5万至5万美元；含Xray的Artifactory Enterprise通常在每年6万至12万美元之间，取决于存储和区域；Google Artifact Registry收取每GB每月0.10美元的存储费外加出口流量费，5TB构件时约为每年2万至3万美元；Cloudsmith在同等规模下为每年3万至6万美元<sup>[10](https://safeguard.sh/resources/blog/choosing-a-private-package-registry-2025)</sup>。

## 近期发展

**可信发布跨生态系统推广。** 2023年，PyPI推出了基于OIDC的可信发布，RubyGems同年采用，npm、NuGet和crates.io后来采用了类似机制；到2025年底，超过20%上传到PyPI的文件通过可信发布者到达，17%带有证明<sup>[3](https://redmonk.com/kholterhoff/2026/07/28/modern-software-registries-trust-service/)</sup>。PyPI自己的回顾称现在有超过50,000个项目使用可信发布<sup>[5](https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/)</sup>。npm于2023年5月引入--provenance标志，2023年10月达到正式可用，可信发布于2025年7月达到正式可用；使用npm CLI v11.5.1及更高版本时，通过可信发布发布时会默认附加来源证明<sup>[33](https://zenn.dev/sqer/articles/e4df3d397f5651?locale=en)</sup>。

**令牌与账户加固。** 在Shai-Hulud蠕虫之后，GitHub宣布淘汰经典令牌、缩短发布令牌生命周期、要求更强的多因素认证并加速可信发布的采用；npm CLI现在支持最低包龄限制<sup>[3](https://redmonk.com/kholterhoff/2026/07/28/modern-software-registries-trust-service/)</sup>。2025年，GitHub宣布对npm发布强制实施双因素认证、粒度令牌限制为七天生命周期，并扩展GitHub Actions和[GitLab CI/CD](https://www.edgepedia.org/zh/gitlab-ci-cd)的可信发布<sup>[6](https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-package-registry-systemic-risk-20260623/)</sup>。

**PyPI运营防御。** PyPI 2025年的措施包括钓鱼域名警告、加固的上传流水线、项目创建时自动域名抢注检测、域名复活防护和防垃圾注册拦截；可信发布扩展到GitLab自管理实例和自定义OIDC颁发者<sup>[5](https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/)</sup>。PyPI现在拒绝向超过14天的发行版上传新文件，该限制旨在防止在发布令牌或工作流被攻陷时对旧发行版进行投毒<sup>[34](https://lwn.net/Articles/1084242/)</sup>。PyPI在2025年处理了超过2,000份恶意软件报告，据RedMonk报道，其中三分之二在四小时内处理完毕；云安全联盟另行报告2025年恶意软件响应的中位时间为39小时<sup>[3](https://redmonk.com/kholterhoff/2026/07/28/modern-software-registries-trust-service/)</sup><sup> • </sup><sup>[6](https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-package-registry-systemic-risk-20260623/)</sup>。crates.io增加了安全标签页展示RustSec公告，并正在试点由指定的全职人员进行实时恶意软件扫描；恶意crate finch-rust于12月在crates.io上停留了十天，在被Socket发现后才被移除<sup>[3](https://redmonk.com/kholterhoff/2026/07/28/modern-software-registries-trust-service/)</sup>。

**监管与SBOM。** 根据欧盟《网络弹性法案》，制造商必须在2026年9月11日前报告正遭利用的漏洞和严重安全事件，2027年12月11日全面执行，要求对含数字元素的产品进行有记录的漏洞处理<sup>[35](https://kubezilla.io/eu-cyber-resilience-act-kubecon-eu-2026-cloud-native/)</sup>。CRA开始为软件产品确立责任，但尚未以任何有意义的方式覆盖开源维护者，美国没有同等法规<sup>[36](https://vektormemory.com/blog/worm-in-the-registry)</sup>。SBOM强制要求面临结构性限制：SBOM不约束开源库的依赖解析：用户的包管理器在用户上下文中重新解析依赖，无视库的SBOM，因此仅有库的SBOM可能给人虚假的安全感<sup>[12](https://queue.acm.org/doi/pdf/10.1145/3723000)</sup>。

## 治理、资金与可持续性

npm和PyPI都不在包上线前进行审核；两者都允许立即发布并在事后处理问题，据[OpenSSF](https://www.edgepedia.org/zh/openssf)，开源注册表在2026年初面临严重的资金短缺<sup>[6](https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-package-registry-systemic-risk-20260623/)</sup>。可持续性还取决于下游维护者的行为：依赖锁定实践可能阻止应用程序使用已修复的版本，即使修复包已可用，而npm缺乏分叉机制意味着被弃置的包可能永远得不到修复<sup>[2](https://www.usenix.org/system/files/sec19-zimmermann.pdf)</sup>。元数据质量使问题更加复杂：来源证明和作者信息通常是可选自由文本字段，注册表被鼓励与Sigstore和SLSA等项目集成，为用户提供更高质量来源证明数据的选择<sup>[12](https://queue.acm.org/doi/pdf/10.1145/3723000)</sup>。

## References

1. [Census III of Free and Open Source Software, Linux Foundation](https://www.linuxfoundation.org/hubfs/LF%20Research/lfr_censusiii_120424a.pdf)
2. [Small World with High Risks: A Study of Security Threats in the npm Ecosystem, Zimmermann et al., USENIX Security 2019](https://www.usenix.org/system/files/sec19-zimmermann.pdf)
3. [Modern Software Registries are a Trust Service, RedMonk](https://redmonk.com/kholterhoff/2026/07/28/modern-software-registries-trust-service/)
4. [2024 State of the Software Supply Chain: Scale of Open Source, Sonatype](https://www.sonatype.com/state-of-the-software-supply-chain/2024/scale)
5. [PyPI 2025 In Review, PyPI blog](https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/)
6. [AI Package Registry Crisis: Unguarded Critical Infrastructure, Cloud Security Alliance](https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-package-registry-systemic-risk-20260623/)
7. [PEP 458 – Secure PyPI downloads with signed repository metadata](https://peps.python.org/pep-0458/)
8. [OCI Distribution Specification v1.0.0](https://oci-playground.github.io/specs-latest/specs/distribution/v1.0.0/oci-distribution-spec.html)
9. [Trusted Publishers for all package repositories, OpenSSF Securing Software Repositories WG](https://github.com/ossf/wg-securing-software-repos/blob/main/docs/trusted-publishers-for-all-package-repositories.md)
10. [Choosing a Private Package Registry in 2025, safeguard.sh](https://safeguard.sh/resources/blog/choosing-a-private-package-registry-2025)
11. [PEP 503 – Simple Repository API](https://github.com/python/peps/blob/main/peps/pep-0503.rst)
12. [The Surprise of SBOMs, ACM Queue](https://queue.acm.org/doi/pdf/10.1145/3723000)
13. [Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystem, arXiv](https://arxiv.org/html/2201.03981v2)
14. [Dependency Practices for Vulnerability Mitigation, arXiv](https://arxiv.org/html/2310.07847)
15. [A Large Scale Analysis of Semantic Versioning in NPM, NSF PAR](https://par.nsf.gov/servlets/purl/10416452)
16. [Lags in the release, adoption, and propagation of npm vulnerability fixes, Empirical Software Engineering](https://link.springer.com/article/10.1007/s10664-021-09951-x)
17. [Categorizing Package Registries, Andrew Nesbitt](https://nesbitt.io/2025/12/29/categorizing-package-registries.html)
18. [Package management: a brief history, Sonar](https://www.sonarsource.com/blog/a-brief-history-of-package-management/)
19. [Debian Project History](https://www.debian.org/doc/manuals/project-history/project-history.en.txt)
20. [Package Manager Timeline, Andrew Nesbitt](https://nesbitt.io/2025/11/15/package-manager-timeline.html)
21. [crates.io: Rust Package Registry](https://crates.io/)
22. [Trusted Publishers: Internals and Technical Details, PyPI Docs](https://docs.pypi.org/trusted-publishers/internals/)
23. [How to Publish a Secure Python Package to PyPI, safeguard.sh](https://safeguard.sh/resources/blog/building-secure-python-packages-guide)
24. [Valid certificates, stolen accounts: how attackers broke npm's Sigstore provenance, VentureBeat](https://venturebeat.com/security/npm-sigstore-provenance-stolen-identity-audit-grid-2026)
25. [Mini Shai-Hulud: When Signed Provenance Is Not Enough, Cloud Security Alliance](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_mini_shai_hulud_supply_chain_sigstore_20260515-csa-styled.pdf)
26. [The Update Framework Specification](https://theupdateframework.github.io/specification/latest/)
27. [History of the Comprehensive Perl Archive Network, CPAN.io](https://cpan.io/ref/cpan/history.html)
28. [The Zen of Comprehensive Archive Networks, Jarkko Hietaniemi](https://www.cpan.org/misc/ZCAN.html)
29. [The Comprehensive TeX Archive Network, TUGboat](https://www.tug.org/TUGboat/Articles/tb14-3/tb40green.pdf)
30. [Software Infrastructure Strain, Sonatype 2026 report](https://www.sonatype.com/state-of-the-software-supply-chain/2026/software-infrastructure-growth)
31. [A Survey of Programming Language Package Systems, neurocline](https://neurocline.github.io/papers/survey-of-programming-language-packaging-systems.html)
32. [npm in Review: A 2023 Retrospective, Socket](https://socket.dev/blog/2023-npm-retrospective)
33. [Package Registry Provenance Status: 2026 Edition, Zenn](https://zenn.dev/sqer/articles/e4df3d397f5651?locale=en)
34. [PyPI now rejects new files after 14 days, LWN.net](https://lwn.net/Articles/1084242/)
35. [The EU Cyber Resilience Act Is Here, Kubezilla](https://kubezilla.io/eu-cyber-resilience-act-kubecon-eu-2026-cloud-native/)
36. [The Worm in the Registry, Vektor Memory](https://vektormemory.com/blog/worm-in-the-registry)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Development tools and collaboration infrastructure › Build, deployment, and development tooling

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/software-repository

English original: https://www.edgepedia.org/software-repository
