Package managers have an integrity problem
Web page · https://blog.trailofbits.com/2026/10/14/package-managers-have-an-integrity-problem
First seen by Oriel on .
AI summary
Trail of Bits tested 25 package managers and found that fewer than half enforce lockfile tamper detection by default, while only Go and vcpkg reliably verified all downloaded packages.
- A Docker and mitmproxy harness intercepted repository traffic, injected malicious package contents, and checked whether sample applications executed the injected code.
- HTTPS and certificate validation were nearly universal, but cpanminus used unencrypted HTTP by default, permitting active network attackers to modify packages.
- Several managers stored hashes without enforcing them: Pub installed mismatched packages unless --enforce-lockfile was used, while Conan, CocoaPods, and Composer verified incomplete identifiers.
- Only Go verified package signatures by default; Bundler, Gem, Gradle, Maven, npm, and NuGet supported signature verification with additional configuration.
- The experiment covered one version, package, platform, and configuration per manager, while hash-based lockfiles can delay security updates and require frequent lockfile changes.
#package managers #software supply chain #lockfiles #cryptography
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | lmx2hi | https://blog.trailofbits.com/2026/10/14/package-managers-have-an-integrity-problem/ Read discussion |