registry  /  dev-npm-pack  /  2026.7.1180500

dev-npm-pack@2026.7.1180500

HarmonyOS programming development AI agent

Static Scan Results

scanned 8d ago · by rust-scanner

Static 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 snapshot
Behavioral surface
Source
ChildProcessEnvironmentVarsFilesystem
Supply chainNo supply-chain packaging signals triggered.
ManifestNo manifest risk signals triggered.
scanned 2 file(s), 2.47 KB of source

Source & flagged code

4 flagged · loading source
package.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 unpkg
scripts/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 · L4
bin/dev-npm-packView file
path = bin/dev-npm-pack kind = native_binary sizeBytes = 141850816 magicHex = [redacted]
Medium
Ships Native Binary

Package ships native binary artifacts.

bin/dev-npm-packView on unpkg

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