In-depth lesson · Dependency confusion and supply chain
Root causes
Every point the Dependency confusion and supply chain reports back under this heading, best-backed first, each with the reports it is seen in.
-
Internal package names were left unclaimed on public registries.
Seen in 4 reports
-
Build configuration referenced dependency repositories over HTTP without integrity checks.
Seen in 2 reports
-
Documentation referenced a gem name without ensuring it was registered on the public gem server.
Seen in 2 reports
-
A test script contained a dangling reference to a decommissioned storage bucket name, combined with unsafe unzipping.
-
The package manager resolved dependencies from the public registry rather than only the internal one.
Seen in 1 report
-
The npm client or registry configuration allowed fallback to the public registry for private package names.
Seen in 1 report
-
The default gem source was not restricted to the internal repository.
Seen in 1 report
-
The plugin update system trusts the directory by slug name, so an unclaimed slug can be registered by anyone.
Seen in 1 report