"postinstall": "node setup.js"
Declared in scripts. What most scanners check.
Seen in: plain-crypto-js 4.2.1
binding.gyp and no install script
npm runs node-gyp rebuild. A gyp <!(cmd) expansion runs a shell command.
Seen in: Miasma "Phantom Gyp"
"github:org/repo#sha"
npm clones the repo, installs it, and runs its prepare script.
Seen in: TanStack, May 2026
- All three paths run by default
--ignore-scriptsis opt-in
- Approved: runs
- Unapproved: skipped, install succeeds with a warning
strict-allow-scripts: install fails- Git source refused unless
allow-gitpermits it
