Re:'No way to prevent this,' says only package manager where...
by mort96 on Saturday May 16, 2026 @01:31AM
(#48157114)
I maintain that NPM malware use postinstall scripts just because they exist and are convenient. Had NPM not had postinstall scripts, the malware would have used a different mechanism and been almost exactly as effective.
However the current npm vulns used a post install script.