Interview Prep/DevSecOps/Supply Chain Security

What is typosquatting and how do you protect developers from it?

BeginnerScenarioSupply Chain Security
Answer

Situation read → Attackers publish packages with names near popular ones (reqeusts, colourama) hoping for a typo.

What I'd do →

  1. Use a private registry proxy and only allow packages through it.
  2. Review new dependencies in PRs; require approval for new packages.
  3. Use SCA tools that flag new or low-reputation packages (Socket, OpenSSF Scorecard).
  4. Install from lockfiles only, with integrity hashes.
  5. Train developers to copy names from the official docs.

Why → A proxy and review step turns a silent typo into a visible event.

Interview tip → Mention install scripts as the typical payload trigger.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security