registry  /  browser4-cli  /  0.1.27

browser4-cli@0.1.27

Browser automation CLI for AI agents

Static Scan Results

scanned 2h ago · by rust-scanner

Static analysis flagged 12 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
ChildProcessEnvironmentVarsFilesystemNetworkShell
Supply chain
UrlStrings
ManifestNo manifest risk signals triggered.
scanned 6 file(s), 21.7 KB of source, external domains: browser4.oss-cn-beijing.aliyuncs.com, github.com, rustup.rs

Source & flagged code

6 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
15import { platform, arch } from 'os'; L16: import { get } from 'https'; L17: import { execSync } from 'child_process'; L18: L19: const __dirname = dirname(fileURLToPath(import.meta.url)); L20: const projectRoot = join(__dirname, '..'); ... L41: // Package info L42: const packageJson = JSON.parse( L43: (await import('fs')).readFileSync(join(projectRoot, 'package.json'), 'utf8') L44: ); ... L53: // 1 — Locale env vars (Unix, Git Bash, WSL, Docker) L54: const lang = process.env.LC_ALL
High
Sandbox Evasion Gated Capability

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

scripts/postinstall.jsView on unpkg · L15
bin/browser4-cli-linux-arm64View file
path = bin/browser4-cli-linux-arm64 kind = native_binary sizeBytes = 9742368 magicHex = [redacted]
Medium
Ships Native Binary

Package ships native binary artifacts.

bin/browser4-cli-linux-arm64View on unpkg
scripts/build-all-platforms.ps1View file
path = scripts/build-all-platforms.ps1 kind = build_helper sizeBytes = 3339 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

scripts/build-all-platforms.ps1View on unpkg
scripts/tests/install-browser4-cli.tests.ps1View file
path = scripts/tests/install-browser4-cli.tests.ps1 kind = payload_in_excluded_dir sizeBytes = 13741 magicHex = [redacted]
High
Payload In Excluded Dir

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

scripts/tests/install-browser4-cli.tests.ps1View on unpkg

Findings

3 High6 Medium3 Low
HighInstall Time Lifecycle Scriptspackage.json
HighSandbox Evasion Gated Capabilityscripts/postinstall.js
HighPayload In Excluded Dirscripts/tests/install-browser4-cli.tests.ps1
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
MediumEnvironment Vars
MediumShips Native Binarybin/browser4-cli-linux-arm64
MediumShips Build Helperscripts/build-all-platforms.ps1
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowUrl Strings