Appearance
Why It Matters
Install-time lifecycle scripts run automatically during dependency installation, so a dangerous committed postinstall or preinstall path can execute attacker-controlled code on every developer or CI machine that installs the package.
What Triggers
SEC743 matches package.json lifecycle hooks such as preinstall, install, postinstall, or prepare when the script includes high-risk behavior like download-and-exec patterns, eval, or npm explore shell execution.
False Positives
Ordinary lifecycle scripts that run local build steps, type checks, or node ./scripts/... helpers do not trigger this rule. The rule is intentionally scoped to clearly dangerous execution patterns.
Remediation
Remove install-time remote execution behavior from the manifest and keep setup logic local, reviewable, and explicit.