Static Scan Results
scanned 8d ago · by rust-scannerStatic analysis flagged 8 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.
Static reason
One or more suspicious static signals were detected.
Decision evidence
public snapshotBehavioral surface
ChildProcessEnvironmentVarsFilesystem
Source & flagged code
4 flagged · loading sourcepackage.jsonView file
•scripts.postinstall = node scripts/postinstall.js
High
Install Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg•scripts.postinstall = node scripts/postinstall.js
Medium
Ambiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgscripts/postinstall.jsView file
4const path = require('path');
L5: const { execFileSync } = require('child_process');
L6:
L7: const binPath = path.join(__dirname, '..', 'bin', 'dev-npm-pack');
L8: const signTool = '/data/service/hnp/bin/binary-sign-tool';
...
L25:
L26: const homedir = process.env.HOME || os.homedir();
L27:
...
L32: const shellConfigs = [
L33: path.join(homedir, '.zshrc'),
L34: path.join(homedir, '.bashrc'),
Medium
Install Persistence
Source writes installer persistence such as shell profile or service configuration.
scripts/postinstall.jsView on unpkg · L4bin/dev-npm-packView file
•path = bin/dev-npm-pack
kind = native_binary
sizeBytes = 141850816
magicHex = [redacted]
Medium
Findings
1 High5 Medium2 Low
HighInstall Time Lifecycle Scriptspackage.json
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumEnvironment Vars
MediumInstall Persistencescripts/postinstall.js
MediumShips Native Binarybin/dev-npm-pack
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem