Interview practice question
A compromised npm package is discovered in your dependencies
Frontend Engineering · Testing and Tooling · Experienced
News breaks that a popular npm package you depend on was compromised with malicious code. How would you respond?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Identify affected versions in lockfiles and builds.
- Pin/remove; rebuild and redeploy.
- Rotate secrets exposed to builds/CI.
- Check what code ran (install scripts, bundles).
- Strengthen supply chain controls.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.