All jobs / Backend developer / Security

Backend developer interview question · 5+ years

The interviewer asks: “A popular npm/NuGet/Maven package you use was compromised. What should already have been true?” Strongest answer?

The strongest answer

Pinned, reviewed dependencies, lockfiles in CI, scanning, and minimal install surface. We can freeze and roll back. We don't float latest on main, and we don't run postinstall scripts from untrusted tags.

Why it works

Exactly. Supply chain is a backend production risk. Pin + scan + a rollback story is the mature bar. Rebuilds should be reproducible.

What a good answer covers

Answers that fall short

Who gets asked this

More Security questions