calculator-preinstall-hook-demo@1.1.2
Private test fixture: sends a fixed webhook notification during preinstall
AI Security Review
scanned 3d ago · by lpm-firewall-aiThe package automatically transmits the installer’s hostname and OS username to a fixed Discord webhook during preinstall. This is install-time exfiltration of host and user data to an unrelated collector, so publication should be blocked.
Decision evidence
public snapshot- The package’s preinstall script automatically runs `node preinstall.js`.
- The hook sends a POST to a hard-coded Discord webhook.
- The POST body includes the machine hostname and OS username.
- The hook writes a `.preinstall-marker.json` file in the package directory.
- The package’s main entry point only exports a function returning a fixed string; it does not perform actions when imported.
- The README describes the package as a private test fixture and says it must not be distributed with its embedded webhook.
Source & flagged code
8 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgFindings
Affected versions and remediation
This report applies to calculator-preinstall-hook-demo@1.1.2.
See all versions of calculator-preinstall-hook-demo for other recorded verdicts.
- Avoid installing calculator-preinstall-hook-demo@1.1.2. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.