registry  /  dev-npm-pack  /  0.1.0-Test.16

dev-npm-pack@0.1.0-Test.16

HarmonyOS programming development AI agent

Static Scan Results

scanned 2h 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.37 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
5L6: const homedir = process.env.HOME || os.homedir(); L7: ... L12: const shellConfigs = [ L13: path.join(homedir, '.zshrc'), L14: path.join(homedir, '.bashrc'),
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

scripts/postinstall.jsView on unpkg · L5
bin/devecoView file
path = bin/deveco kind = native_binary sizeBytes = 142371008 magicHex = [redacted]
Medium
Ships Native Binary

Package ships native binary artifacts.

bin/devecoView 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/deveco
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem