Skip to content
Security·Intermediate·Conceptual·1 min read

What are the two distinct entry points for supply-chain risk in a frontend project?

Short interview answer

Install-time: a package or its postinstall script executes on the build machine or a developer's machine with that environment's privileges. Run-time: a third-party script executes in the user's browser inside your origin, with access to the DOM, cookies, and storage. They need different controls.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Dependency and supply-chain security

Related questions