Explain dependency confusion and typosquatting.
IntermediateConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer
Dependency confusion: an attacker publishes a public package with the same name as your internal one but a higher version; a misconfigured resolver prefers the public one. Typosquatting: a package named reqeusts waits for typos.
Defences: scoped or namespaced internal packages, resolver config that routes internal namespaces only to the private registry, a proxy registry (Artifactory, Nexus) with allow-lists, lockfiles with integrity hashes, and reviewing new dependencies.
More on Supply Chain, SBOM, Signing and Image/IaC Scanning
What is a software supply chain attack? Give examples.BeginnerWhat is an SBOM and why do we need one?BeginnerCycloneDX vs SPDX: how do they differ?IntermediateHow do you generate and use an SBOM with Syft and Grype?BeginnerWhat is VEX?IntermediateWhat is Sigstore and what are its components?Intermediate