Interview Prep/DevSecOps/Supply Chain, SBOM, Signing and Image/IaC Scanning

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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain, SBOM, Signing and Image/IaC Scanning