Skip to content

In-depth lesson · Dependency confusion and supply chain

Typical fixes

Every point the Dependency confusion and supply chain reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 6 of 6
  1. Register internal package names on public registries, or scope them so they cannot be shadowed.

    Seen in 6 reports
  2. Fetch dependencies over HTTPS and verify their checksums.

    Seen in 2 reports
  3. Configure the build server to resolve dependencies only from the internal registry.

    Seen in 1 report
  4. Restrict the default gem source to the internal repository.

    Seen in 1 report
  5. Do not rely on slug matching for plugins that are absent from the official directory.

    Seen in 1 report
  6. Remove dangling references to decommissioned buckets and avoid unsafe unzipping.

    Seen in 1 report