← Lab /Security & privacy

Supply chain attacks exploit implicit trust assumptions in package managers

Attackers are systematically exploiting the implicit trust assumptions of modern software supply chains, leading to widespread malicious package distribution.

Security & privacy Trail of Bits 24 Sep 2025 Tooling Deployed evidence

Published as “Supply chain attacks are exploiting our assumptions”

Why it matters

Making supply-chain trust assumptions explicit and verifiable can substantially reduce the risk of compromise.

Summary

The writeup surveys recent supply chain incidents such as large-scale typosquatting campaigns, stolen token abuses, and poisoned CI pipelines, showing how they target trust in package identity, publisher authenticity, and build provenance. It then describes emerging defenses-including TypoGard/Typomania for low-false-positive typosquat detection, Zizmor for static analysis of GitHub Actions, PyPI Trusted Publishing with short-lived OIDC tokens, and build attestations for Homebrew and PyPI. The authors claim these tools make trust explicit and verifiable, though client-side verification is not yet automatic. Evidence is drawn from real-world incident counts and adoption metrics.

What they found 3

  1. Over 30,000 packages have adopted PyPI Trusted Publishing

    “Over 30,000 packages use Trusted Publishing”

  2. A single 2024 campaign published 500 malicious packages

    “with 500 malicious packages published in a single 2024 campaign”

  3. Typosquatting campaigns have targeted packages with a combined 1.2 billion weekly downloads

    “targeting packages that account for a combined 1.2 billion weekly downloads”

Caveats 4

  • Client tools like pip and uv do not yet verify attestations automatically, limiting active protection during installation.
  • Verification of attestations is not automatic in pip or uv, so protection is not enforced at install time.
  • TypoGard still relies on similarity metrics that may generate false positives requiring manual review.
  • Static capability detection cannot fully capture dynamic behavior due to reflection and unsafe operations.

What’s new here 4

  • TypoGard and Typomania use context-aware metrics to detect typosquatting with low false positives.
  • Zizmor statically flags dangerous GitHub Actions patterns such as pull_request_target misuse and mutable tag references.
  • PyPI Trusted Publishing eliminates long-lived API tokens and adds index-hosted attestations for package provenance.
  • Homebrew now includes cryptographic build attestations for all official bottles.