SG-082: NPM Install-Hook Dropper

Severity: HIGH

package.json with preinstall/install/postinstall/prepare hook that runs a local JS/TS/PY/SH file

Fires when

Related CVEs

Remediation

No safe remediation: a file that triggers this rule should be rejected, not patched. Read the flagged lines in the source before deciding.

Research