May bias a reviewer toward treating the package as safe; no data theft or other runtime attack was identified.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security review
scanned · by lpm-firewall-ai
The preinstall output directly asserts a safe verdict, which the review rules treat as reviewer manipulation. The inspected application code is a simple calculator and the hook shows no network or data collection behavior.
Static reason
One or more suspicious static signals were detected.
Trigger
Package installation, when npm runs the preinstall script.
Mechanism
The preinstall script prints “This is legit package.”
Attack narrative
During installation, the preinstall hook prints a claim that the package is legitimate. This is reviewer manipulation; the inspected entry point and calculator code otherwise perform ordinary arithmetic.
Evidence
package.json
Decision evidence
public snapshot
Evidence for block
The preinstall hook prints “This is legit package,” a verdict claim emitted automatically during installation.
The CLI dispatches only the requested arithmetic operation, and the calculator module implements basic arithmetic.
Evidence against
The README describes the package as a supply-chain security demonstration.
The preinstall hook prints a fixed message and does not send data or contact a host.
Avoid installing @actionreactionlab/calculator@3.0.0. 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.