AI Security Review
scanned 2h ago · by lpm-firewall-aiPostinstall retrieves a platform-specific opaque native archive and installs it locally. The CLI later executes that downloaded binary.
Static reason
One or more suspicious static signals were detected.
Trigger
npm postinstall; later invocation of `baton`
Impact
A changed or redirected release artifact can execute with installer or CLI user privileges.
Mechanism
unverified remote binary download, extraction, and execution
Rationale
No concrete malicious source behavior is present in the JavaScript wrapper, but its postinstall delivery and execution of an unverified opaque binary leave a material unresolved supply-chain risk.
Evidence
package.jsoninstall.jsbinary.jsbinary-install.jsrun-baton.jsnode_modules/.bin_real
Network endpoints1
github.com/Kaseban/baton/releases/download/v0.3.0
Decision evidence
public snapshotAI called this Suspicious at 86.0% confidence as Dangerous Capability with low false-positive risk.
Evidence for warning
- `package.json` runs `node ./install.js` on postinstall.
- `binary.js` builds a GitHub Releases artifact URL from the manifest.
- `binary-install.js` downloads with redirects and has no checksum/signature verification.
- `binary-install.js` extracts the downloaded archive into `node_modules/.bin_real`.
- `run-baton.js` executes the downloaded `baton` binary.
Evidence against
- JavaScript source only reads proxy environment variables, not credentials or files.
- Network destination is package-aligned GitHub Releases.
- No JS evidence of exfiltration, destructive actions, eval, or config writes.
Behavioral surface
ChildProcessEnvironmentVarsFilesystemNetwork
UrlStrings
Source & flagged code
2 flagged · loading sourcepackage.jsonView file
•scripts.postinstall = node ./install.js
High
Install Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg•scripts.postinstall = node ./install.js
Medium
Ambiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgFindings
1 High3 Medium3 Low
HighInstall Time Lifecycle Scriptspackage.json
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
MediumEnvironment Vars
LowScripts Present
LowFilesystem
LowUrl Strings