The part that seems most important here is that npm install was enough. Once the compromise point is preinstall, the usual "inspect after install" mindset breaks down. By then the payload has already had a chance to run. That gets more interesting with agents / CI / ephemeral sandboxes, because short exposure windows are still enough when installs happen automatically and repeatedly. Another thing I think is worth pa…
And besides, you could always pull the package and inspect before running install, which unless you really know the installer and understand/know guarantees deeply (e.g., whether it’s possible for an install to deploy files outside of node_modules) it’s insane to even vaguely trust it to pull and unpack potentially malicious code.