Supply-Chain Self-Assessment: How Exposed Is Your Release Path?

Attacks on packages rarely start with clever code. They start with a stolen token, a compromised maintainer account, a build that pulls something unexpected or a release nobody can trace back to a commit. This self-check walks the path from source to registry and asks where the weak links are in your own setup.

Instructions

Answer yes or no. Score 1 for each yes. The questions are grouped by stage, and the stage with the most noes is where to start. Answer for the package with the most users if you maintain several.

Stage 1: accounts and access

  1. Every account with publish rights uses two-factor authentication, preferably a hardware key or passkey.
  2. The list of people with publish rights has been reviewed in the past year, and former maintainers were removed.
  3. No long-lived registry token exists on a personal machine.

Stage 2: source and build

  1. Releases are built in CI from a tagged commit, not from a local working copy.
  2. The default branch is protected so that changes need review before merging.
  3. CI workflow files pin third-party actions or plugins to a specific version or commit hash.
  4. Build-time dependencies are installed from a lockfile.

Stage 3: publishing and verification

  1. The registry receives the release through short-lived credentials, such as PyPI Trusted Publishing or an OIDC-based npm workflow.
  2. Releases carry provenance or a signature that links the artefact to its source commit and build (for example npm provenance, or Sigstore-based attestations).
  3. The repository has a SECURITY.md or equivalent saying how to report a vulnerability privately.

Reading your score

ScoreWhat it suggests
9 to 10Your release path is traceable end to end. Keep an eye on new registry features and review access annually.
6 to 8Solid basics with one stage lagging. Fix the lowest-scoring stage first.
3 to 5A single stolen credential could probably publish a malicious version. Prioritise questions 1, 3 and 8.
0 to 2Treat this as urgent if the package has many dependents. Start with two-factor authentication today; it is the cheapest change.

Why each stage matters

Accounts come first because they are the most common route in. A registry trusts whoever holds the credentials, so a phished password or a token committed to a dotfiles repository is enough. Two-factor authentication and removing stale maintainers close most of that door.

Build matters because a clean source repository does not guarantee a clean artefact. If the tarball is built on a laptop, nobody can verify what went into it. Building in CI from a tag, with pinned tooling, makes the build reproducible enough that differences stand out.

Publishing closes the loop. Short-lived OIDC credentials remove the secret that could leak, and provenance lets your users check that the version they install came from your repository and workflow. The SLSA framework describes these properties in levels if you want a more formal target, and OpenSSF publishes guidance for maintainers.

Follow-up reading on this site: a trusted publishing workflow walkthrough, an essay on provenance attestations and responding to a package account takeover. This checklist is a self-review aid and is not a security audit.