Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of browser4-cli

[email protected]

clean   confidence 78%   action allow   analyzed 2026-09-24 19:12 UTC by yolo in 16 tool calls, with lab detonation

Summary

Install hook downloads a pre-compiled native binary from GitHub releases (fallback: Aliyun OSS) and installs it in bin/. On global installs, it replaces npm-generated shims with direct links to the native binary. No credential access, no unexpected network egress, no obfuscation. The only external file touched is the downloaded binary itself (within the package). Reading /etc/passwd is a side-effect of ldd --version and is benign.

Intent

Browser automation CLI that ships native Rust binaries. The postinstall hook downloads the platform-specific binary from GitHub releases (or Aliyun OSS for China mainland) and makes it executable. On global installs it rewrites npm's .cmd/.ps1 shims to point directly to the native binary for zero-overhead execution.

Findings

Native binary download from GitHub releases info scripts/postinstall.js:87
postinstall.js:87 downloads browser4-cli-{platform}-{arch} from https://github.com/platonai/Browser4/releases/download/v{version}/ — standard for packages shipping compiled binaries.
Aliyun OSS mirror for China mainland info scripts/postinstall.js:88
postinstall.js:88 falls back to https://browser4.oss-cn-beijing.aliyuncs.com/releases/download/v{version}/ on Asia/Shanghai locale — CDN mirror, not suspicious.
npm shim rewrite on global installs low scripts/postinstall.js:366
postinstall.js:366-380 overwrites npm-generated .cmd/.ps1 shims in the global bin directory to invoke the native binary directly — a legitimate optimization, not persistence.
Canary credential read: /etc/passwd info lab report
Lab report shows /etc/passwd was read. This is a side-effect of ldd --version spawning a subprocess that reads /etc/passwd — benign system file, not a canary credential.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 17. Hooks: postinstall (exit 0).

Canary credential files read: /etc/passwd

Files written outside the package: /work/pkg/bin/browser4-cli-linux-x64 (chmod 0755)