Install hook abuse in npm packages.
These packages use npm lifecycle scripts (preinstall, install, postinstall) to run code automatically during npm install, for purposes the package does not need, such as collecting host details or changing global tooling.
Packages
176 packages with LPM's own review, newest scan first.
The package's preinstall script changes Git hook configuration without consent, and the configured hook directory is absent from the published files.
Scanned Nov 15, 2026The older self-dependency’s postinstall lacks this version’s explicit auto-init gate.
Scanned Nov 15, 2026The package automatically contacts a hard-coded, unrelated webhook collector during installation.
Scanned Nov 13, 2026The package uses its bundled-dependency setup to run an extension during npm install, launching the default browser to the publisher's profile without user consent.
Scanned Nov 12, 2026The package automatically gathers and prints user and host identifiers during installation without a user request, creating install-hook abuse and potential exposure in installation…