Package managers have an integrity problem

Tech & AIblog.trailofbits.comSince 2008

Package managers have an integrity problem

I tested 25 of the most popular package managers to check whether they detect a compromised package repository injecting malicious code into legitimate packages. Only two verified the integrity of every package they downloaded.

Quick read

A Trail of Bits blog post reporting tests of 25 popular package managers to see whether they detect a malicious repository injecting code into legitimate packages. It explains the test harness, summarizes findings about lockfile and signature usage, and shows many package managers fail to verify package integrity by default.

  • Only two managers verified integrity for every downloaded package
  • Fewer than half used lockfiles that checked tampering by default
  • Only Go verified signatures by default

Reactions

No reactions yet. Record a short about this link and it shows up here, in Reels and in the community feed.

Is blog.trailofbits.com your site? Sign in to verify it and get a Verified badge, full stats and a link-back badge.

A closer look at Package managers have an integrity problem

What the article is about

This blog post reports an experiment that tested 25 popular package managers to see whether they detect a compromised package repository injecting malicious code into legitimate packages. The author built a Docker-and-mitmproxy-based test harness to simulate a malicious repository and evaluated how each manager handled tampered packages.

What the tests actually did and found

The harness ran package managers inside Ubuntu containers, routed network requests through WireGuard to a mitmproxy addon that could alter repository responses, and observed whether malicious code in downloaded packages executed. The post explains two main defenses: lockfile hashes and signatures. Fewer than half of the tested managers used lockfiles that checked for tampering by default, and only two verified the integrity of every package they downloaded. Only Go verified signatures by default in the author’s tests.

The post also notes that HTTPS is used by almost every package manager tested, with the notable exception of cpanminus, which uses unencrypted HTTP by default and thus is vulnerable to active network attackers unless changed.

Who will find this useful

Developers, security engineers, and package manager maintainers who care about supply-chain integrity will find the experimental approach and comparisons useful. The write-up highlights practical weaknesses in current package manager designs and points to communities that are improving integrity mechanisms.

Questions people ask about Package managers have an integrity problem

Does the post say which package managers passed the tests?
It says only two of the 25 verified the integrity of every package downloaded in the author’s experimental configuration, and that Go verified signatures by default, but it does not list all passing or failing managers in the excerpt.
How did the author simulate a compromised repository?
They used Docker images with package managers and a mitmproxy addon (with the proxy CA installed in the image) to modify repository responses and inject malicious code into downloaded packages.
Is HTTPS sufficient to prevent these attacks?
The post notes HTTPS is used by almost every tested manager and helps, but integrity still depends on hashes or signatures; HTTPS alone does not stop a malicious repository that legitimately serves tampered packages.

Package managers have an integrity problem was shared on NexURLs by NexURLs on October 18, 2026, in Tech & AI.

What we found on this site

Served through
Cloudflare
Home page answered in
223 ms
Trackers
None found
Ads
None found
RSS feed
No
AI crawlers
Lets them in
llms.txt
Yes
Set up for phones
No
Real-visitor speed
Passes Core Web Vitals
Popularity
Top 200,000 domain (Cloudflare)
Lighthouse on a phone
Speed 95, Accessibility 91, SEO 100
Google safety check
No threats found
Domain registered
2008
Domain renews
May 2027

Checked November 20, 2026 from the site’s own code and public records. See how the rest of the web compares in the NexURLs Internet Report.

Quick answers

What is Package managers have an integrity problem?

Package managers have an integrity problem (blog.trailofbits.com): A Trail of Bits blog post reporting tests of 25 popular package managers to see whether they detect a malicious repository injecting code into legitimate packages. It explains the test harness, summarizes findings about lockfile and signature usage, and shows many package managers fail to verify...

Who shared Package managers have an integrity problem on NexURLs?

It was shared by NexURLs in October 2026. Every link on NexURLs is shared by a real member and passes a safety check before it goes out.

What are some sites like Package managers have an integrity problem?

Members found these close to it: Man-in-the-middle arbitrary code execution in Debian’s apt, Amazon says hackers' AI agents found and exploited 0-day with little human input, Incident with Pull Requests, Git Operations and Issues. The full list is on this page under Sites like Package managers have an integrity problem.

Sites like Package managers have an integrity problem

More Tech & AI finds

All Tech & AI websites →

Feeling lucky? Try the random website generator.

Where people went next

Nobody has added a next stop yet. Be the first.

Five finds like this, every morning

Five great websites every morning, picked by people and written up by AI. Free, and one click to stop.

Remember Me
Scroll to Top

More

📰 Latest Posts
📊 Community Stats
👋 New Members
👥 Popular Groups