Protect agent-driven package manager calls (npm, npx, pnpm, yarn) from supply chain attacks. This runbook has two goals: (1) route package manager commands through Socket Firewall (sfw) for real-time scanning, and (2) enforce a 7-day minimum release age so newly published versions are not installed immediately.
Read this fully before changing anything. Then work through it with the user. The user is likely non-technical, so use language that helps them understand what you're doing and why.
If sfw is not installed do this right away: npm i -g sfw
If npm is installed and npm --version is not 11.10.0 or greater, then it MUST be upgraded immediately.
No need to install npm, pnpm or yarn unless they're already installed. The goal is to preemptively protect all 3 package managers from supply chain attacks with package age restrictions and sfw wrapping so that agents always use the sfw-wrapped versions.