calculator-preinstall-hook-demo@1.0.0
AI Security Review
scanned 6d ago · by lpm-firewall-aiThe preinstall hook’s behavior is explicit, platform-limited, and documented as the package’s purpose. The import entry point only exports a function, and no attack behavior was identified.
Decision evidence
public snapshot- The package describes itself as a fixture that opens Windows Calculator and writes a marker during preinstall.
- The preinstall hook writes `.preinstall-marker.json` in the package directory.
- On Windows, the hook launches the system Calculator; on other platforms, it skips the launch.
- The README identifies this as an installation side-effect demo and says Calculator is skipped on other operating systems.
- Importing `index.js` only exports a function that returns a string.
- The preinstall hook runs automatically during dependency installation and launches a GUI application on Windows.
Source & flagged code
6 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgThe package describes itself as a fixture that opens Windows Calculator and writes a marker during preinstall.
package.jsonView on unpkg · L4Findings
Affected versions and remediation
This report applies to calculator-preinstall-hook-demo@1.0.0.
See all versions of calculator-preinstall-hook-demo for other recorded verdicts.
- Review the evidence and your use of calculator-preinstall-hook-demo@1.0.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.