{"package":"browser4-cli","version":"4.13.20","known":true,"status":"done","discovered_at":1789923700832,"has_install_script":true,"report_url":"https://andymal.com/packages/browser4-cli/4.13.20","verdict":"clean","action":"allow","confidence":0.78,"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.","capabilities":[],"iocs":{"domains":["github.com","browser4.oss-cn-beijing.aliyuncs.com"],"urls":["https://github.com/platonai/Browser4/releases/download/v4.13.20/browser4-cli-linux-x64","https://browser4.oss-cn-beijing.aliyuncs.com/releases/download/v4.13.20/browser4-cli-linux-x64"],"ips":[],"paths":[],"hashes":["04514581f8f5057201331ee209d8d7f6a4dd69cd"]},"analyzed_at":1790277140198,"detonated":true,"model":"yolo","findings":[{"title":"Native binary download from GitHub releases","detail":"postinstall.js:87 downloads browser4-cli-{platform}-{arch} from https://github.com/platonai/Browser4/releases/download/v{version}/ — standard for packages shipping compiled binaries.","severity":"info","location":"scripts/postinstall.js:87"},{"title":"Aliyun OSS mirror for China mainland","detail":"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.","severity":"info","location":"scripts/postinstall.js:88"},{"title":"npm shim rewrite on global installs","detail":"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.","severity":"low","location":"scripts/postinstall.js:366"},{"title":"Canary credential read: /etc/passwd","detail":"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.","severity":"info","location":"lab report"}],"lab":{"ok":true,"lab_version":2,"duration_ms":3270,"lab_ip":"10.77.0.157","hooks":[{"name":"postinstall","command":"node scripts/postinstall.js","exit":0,"timed_out":false,"seconds":1,"stdout_tail":"\n> browser4-cli@4.13.20 postinstall\n> node scripts/postinstall.js\n\n✓ Native binary ready: browser4-cli-linux-x64\n\n  ⚠ No Chrome installation detected.\n  If you plan to use a local browser, run:\n\n    browser4-cli install\n\n  On Linux, include system dependencies with:\n\n    browser4-cli install --with-deps\n\n  You can skip this if you use --cdp, --provider, --engine, or --executable-path.\n\n","stderr_tail":""}],"process_count":17,"processes":["npm run-script postinstall --if-present --ignore-scripts=false","node /usr/local/bin/npm run-script postinstall --if-present --ignore-scripts=false","sh -c node scripts/postinstall.js","node scripts/postinstall.js","/bin/sh -c ldd --version 2>&1 || true","ldd --version","/bin/sh -c npm prefix -g","npm prefix -g","node /usr/local/bin/npm prefix -g","/bin/sh -c which google-chrome 2>/dev/null","which google-chrome","/bin/sh -c which google-chrome-stable 2>/dev/null","which google-chrome-stable","/bin/sh -c which chromium-browser 2>/dev/null","which chromium-browser","/bin/sh -c which chromium 2>/dev/null","which chromium"],"network":{"connects":[],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":["/work/pkg/bin/browser4-cli-linux-x64 (chmod 0755)"],"files_deleted":[],"canary_reads":["/etc/passwd"],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"browser4-cli","version":"4.13.20","description":"Browser automation CLI for AI agents","scripts":{"sync:readme":"node scripts/sync-readme.mjs sync","restore:readme":"node scripts/sync-readme.mjs restore","version:sync":"node ../bin/version.mjs cli sync","version":"npm run version:sync && git add browser4-cli/Cargo.toml browser4-cli/Cargo.lock","build:native":"npm run version:sync && cargo build --release --manifest-path browser4-cli/Cargo.toml && node scripts/copy-native.js","build:linux":"npm run version:sync && docker compose -f docker/docker-compose.yml run --rm build-linux","build:macos":"npm run version:sync && (cargo build --release --manifest-path browser4-cli/Cargo.toml --target aarch64-apple-darwin & cargo build --release --manifest-path browser4-cli/Cargo.toml --target x86_64-apple-darwin & wait) && cp cli/target/aarch64-apple-darwin/release/browser4 bin/browser4-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/browser4 bin/browser4-darwin-x64","build:windows":"npm run version:sync && docker compose -f docker/docker-compose.yml run --rm build-windows","build:all-platforms":"npm run version:sync && (npm run build:linux & npm run build:windows & wait)","build:docker":"docker build -t browser4-builder -f docker/Dockerfile.build .","prepack":"npm run sync:readme","postpack":"npm run restore:readme","publish:if-needed":"node scripts/publish-if-needed.js","release":"npm run publish:if-needed","postinstall":"node scripts/postinstall.js"},"install_hooks":{"postinstall":"node scripts/postinstall.js"},"bin":{"browser4-cli":"bin/browser4-cli.js","browser4":"bin/browser4-cli.js"},"dependencies":[],"repository":"git+https://github.com/platonai/Browser4.git","homepage":"https://browser4.io","license":"Apache-2.0","hasInstallScript":true},"files":[{"path":"README.md","size":38393,"kind":"text","score":1,"hits":["credential_access","network_egress","download_execute","agent_config_tamper","browser_theft","inj:system_impersonation"]},{"path":"scripts/install-browser4-cli.sh","size":27919,"kind":"text","score":1,"hits":["credential_access","network_egress","download_execute","persistence","privilege"]},{"path":"scripts/postinstall.js","size":12216,"kind":"text","score":0.9692333333333333,"hits":["credential_access","download_execute","code_execution"],"role":"entry"},{"path":"scripts/install-browser4-cli.ps1","size":37278,"kind":"text","score":0.9356666666666668,"hits":["credential_access","persistence","anti_analysis","privilege"]},{"path":"scripts/tests/install-browser4-cli.tests.sh","size":20946,"kind":"text","score":0.785,"hits":["credential_access","network_egress","privilege"]},{"path":"scripts/README.md","size":8368,"kind":"text","score":0.5016666666666666,"hits":["network_egress","download_execute"]},{"path":"scripts/tests/install-browser4-cli.tests.ps1","size":26608,"kind":"text","score":0.3341666666666666,"hits":["anti_analysis","privilege"]},{"path":"scripts/smoke-test-runtime-bundle.sh","size":10991,"kind":"text","score":0.2506666666666667,"hits":["network_egress","privilege"]},{"path":"bin/browser4-cli.js","size":2086,"kind":"text","score":0.2004,"hits":["code_execution"],"role":"entry"},{"path":"scripts/npm-publish-check.js","size":3189,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"scripts/publish-if-needed.js","size":1963,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"package.json","size":2332,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"scripts/build-all-platforms.ps1","size":3235,"kind":"text","score":0.050166666666666665,"hits":["privilege"]},{"path":"scripts/build-all-platforms.sh","size":3029,"kind":"text","score":0.050166666666666665,"hits":["privilege"]},{"path":"scripts/tests/wait-for-npm-version.tests.sh","size":7279,"kind":"text","score":0.050166666666666665,"hits":["privilege"]},{"path":"bin/.install-method","size":3,"kind":"binary","score":0,"hits":[]},{"path":"bin/browser4-cli-darwin-arm64","size":14988096,"kind":"text","score":0,"hits":[]},{"path":"bin/browser4-cli-darwin-x64","size":16879376,"kind":"text","score":0,"hits":[]},{"path":"bin/browser4-cli-linux-arm64","size":13082192,"kind":"text","score":0,"hits":[]},{"path":"bin/browser4-cli-linux-musl-arm64","size":12627360,"kind":"text","score":0,"hits":[]},{"path":"bin/browser4-cli-linux-musl-x64","size":15278880,"kind":"text","score":0,"hits":[]},{"path":"bin/browser4-cli-linux-x64","size":15787384,"kind":"text","score":0,"hits":[]},{"path":"bin/browser4-cli-win32-x64.exe","size":22147599,"kind":"binary","score":0,"hits":["binary_artifact"]},{"path":"scripts/check-npm-publish-needed.js","size":1742,"kind":"text","score":0,"hits":[]},{"path":"scripts/copy-native.js","size":1180,"kind":"text","score":0,"hits":[]},{"path":"scripts/enumerate-help.ps1","size":16104,"kind":"text","score":0,"hits":[]},{"path":"scripts/sync-readme.mjs","size":1267,"kind":"text","score":0,"hits":[]},{"path":"scripts/wait-for-npm-version.sh","size":3728,"kind":"text","score":0,"hits":[]}],"file_count":28,"unpacked_size":111020743,"findings":[{"title":"Install hook","detail":"postinstall: node scripts/postinstall.js","severity":"low","location":"package.json"},{"title":"Touches credential stores or secrets","detail":"Provider | Environment variables | |---|---| | DeepSeek | `DEEPSEEK_API_KEY` | | OpenRouter | `OPENROUTER_API_KEY`, `OPENROUTER_MODEL_N","severity":"high","location":"README.md:260"},{"title":"Touches credential stores or secrets","detail":"MODEL_NAME`, `VOLCENGINE_BASE_URL` | | OpenAI-compatible | `OPENAI_API_KEY`, `OPENAI_MODEL_NAME`, `OPENAI_BASE_URL` | | Aliyun Qwen |","severity":"high","location":"README.md:263"},{"title":"Touches credential stores or secrets","detail":", `OPENAI_MODEL_NAME`, `OPENAI_BASE_URL` | | Aliyun Qwen | `OPENAI_API_KEY`, `OPENAI_MODEL_NAME`, `OPENAI_BASE_URL` | ```bash export","severity":"high","location":"README.md:264"},{"title":"Touches credential stores or secrets","detail":"`, `OPENAI_MODEL_NAME`, `OPENAI_BASE_URL` | ```bash export DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx ``` ### Complete command refer","severity":"high","location":"README.md:267"},{"title":"Network activity","detail":"owser4-cli.ps1 | iex ``` **Linux / macOS (bash):** ```bash curl -fsSL https://browser4.oss-cn-beijing.aliyuncs.com/scripts/i","severity":"medium","location":"README.md:178"},{"title":"Network activity","detail":"extract the title\" -i 300 -n 10 browser4-cli loop --shell \"curl -s https://api.example.com/health\" -i 60 browser4-cli loop -","severity":"medium","location":"README.md:505"},{"title":"Download-and-execute chain","detail":"owser4-cli.ps1 | iex ``` **Linux / macOS (bash):** ```bash curl -fsSL https://browser4.oss-cn-beijing.aliyuncs.com/scripts/install-browser4-cli.sh | bash ``` ## 💡 CLI Guide for Humans `browser4-cli` ","severity":"critical","location":"README.md:178"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"buddy or openclaw and run it: ``` Read https://browser4.io/SKILL.md, install or upgrade browser4-cli for browser automation, pe","severity":"high","location":"README.md:65"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"mbedded agent-facing instructions, see [skills/browser4-cli/SKILL.md](skills/browser4-cli/SKILL.md). This section is the human r","severity":"high","location":"README.md:185"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"ons, see [skills/browser4-cli/SKILL.md](skills/browser4-cli/SKILL.md). This section is the human reference. ### Quick start ``","severity":"high","location":"README.md:185"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"dow; # agents should prefer the default headless mode — see SKILL.md) browser4-cli open --headed https://browser4.io # Inspect","severity":"high","location":"README.md:191"},{"title":"Browser or OS credential store access","detail":". | | `webdb export <dir>` | Export pages from the Browser4 web database to a local directory. | | `webdb normalize <url>` | Nor","severity":"high","location":"README.md:459"},{"title":"Browser or OS credential store access","detail":"ory. | | `webdb normalize <url>` | Normalize a URL into the web database key format. | #### AI extraction, chat, and autonomous","severity":"high","location":"README.md:460"},{"title":"Native or compiled artifact shipped in package","detail":"bin/browser4-cli-win32-x64.exe","severity":"low","location":"bin/browser4-cli-win32-x64.exe"},{"title":"Executes commands or dynamic code","detail":"mport path from \"path\"; import { arch } from \"os\"; import { execSync, spawn } from \"child_process\"; import { fileURLToPath } fro","severity":"medium","location":"bin/browser4-cli.js:6"},{"title":"Executes commands or dynamic code","detail":"import { arch } from \"os\"; import { execSync, spawn } from \"child_process\"; import { fileURLToPath } from \"url\"; const __filename =","severity":"medium","location":"bin/browser4-cli.js:6"},{"title":"Executes commands or dynamic code","detail":"linux\") { return false; } try { const result = execSync(\"ldd --version 2>&1 || true\", { encoding: \"utf8\" }); re","severity":"medium","location":"bin/browser4-cli.js:18"},{"title":"Executes commands or dynamic code","detail":"wser4-cli/Cargo.toml`); process.exit(1); } const child = spawn(exePath, process.argv.slice(2), { stdio: \"inherit\", }); c","severity":"medium","location":"bin/browser4-cli.js:50"},{"title":"Install hook runs a script","detail":"needed.js\", \"release\": \"npm run publish:if-needed\", \"postinstall\": \"node scripts/postinstall.js\" }, \"keywords\": [ \"browser\", \"browser4\", \"br","severity":"medium","location":"package.json:30"},{"title":"Network activity","detail":"nstall). | ### One-liner install ```shell # Linux / macOS curl -fsSL https://raw.githubusercontent.com/platonai/Browser4/ma","severity":"medium","location":"scripts/README.md:57"},{"title":"Download-and-execute chain","detail":"nstall). | ### One-liner install ```shell # Linux / macOS curl -fsSL https://raw.githubusercontent.com/platonai/Browser4/main/cli/scripts/install-browser4-cli.sh | bash # Windows (PowerShell) iwr -use","severity":"critical","location":"scripts/README.md:57"},{"title":"Privilege elevation","detail":"target/$Target/release/browser4-cli* /output/$OutputName && chmod +x /output/$OutputName 2>/dev/null || true\" Invoke-Docker","severity":"low","location":"scripts/build-all-platforms.ps1:48"},{"title":"Privilege elevation","detail":"t/${target}/release/browser4-cli* /output/${output_name} && chmod +x /output/${output_name} 2>/dev/null || true\" if [ \"$DRY","severity":"low","location":"scripts/build-all-platforms.sh:71"},{"title":"Touches credential stores or secrets","detail":"ersion/tag exists: $Version - For GitHub rate limits, set GITHUB_TOKEN environment variable - If you have a local copy, place it","severity":"high","location":"scripts/install-browser4-cli.ps1:940"},{"title":"Persistence mechanism","detail":"rite-Summary \"\" $shellRc = if (Test-Path \"$env:HOME/.zshrc\") { \"$env:HOME/.zshrc\" } elseif (Test-Path \"$env:HOME/.bash","severity":"medium","location":"scripts/install-browser4-cli.ps1:972"},{"title":"Persistence mechanism","detail":"$shellRc = if (Test-Path \"$env:HOME/.zshrc\") { \"$env:HOME/.zshrc\" } elseif (Test-Path \"$env:HOME/.bashrc\") { \"$env:HOME/.bas","severity":"medium","location":"scripts/install-browser4-cli.ps1:972"},{"title":"Persistence mechanism","detail":"zshrc\") { \"$env:HOME/.zshrc\" } elseif (Test-Path \"$env:HOME/.bashrc\") { \"$env:HOME/.bashrc\" } elseif (Test-Path \"$env:HOME/.bas","severity":"medium","location":"scripts/install-browser4-cli.ps1:972"},{"title":"Persistence mechanism","detail":"shrc\" } elseif (Test-Path \"$env:HOME/.bashrc\") { \"$env:HOME/.bashrc\" } elseif (Test-Path \"$env:HOME/.bash_profile\") { \"$env:HOM","severity":"medium","location":"scripts/install-browser4-cli.ps1:972"},{"title":"Anti-analysis, sandbox evasion or TLS verification disabled","detail":"default location, latest version, add to PATH powershell -ExecutionPolicy Bypass -File install-browser4-cli.ps1 .EXAMPLE # Silent install","severity":"medium","location":"scripts/install-browser4-cli.ps1:68"},{"title":"Anti-analysis, sandbox evasion or TLS verification disabled","detail":"PLE # Silent install with a specific version powershell -ExecutionPolicy Bypass -File install-browser4-cli.ps1 -Version \"v4.11.0\" -Silent","severity":"medium","location":"scripts/install-browser4-cli.ps1:72"},{"title":"Anti-analysis, sandbox evasion or TLS verification disabled","detail":"LE # Install from OSS only, custom directory powershell -ExecutionPolicy Bypass -File install-browser4-cli.ps1 -Source oss -InstallDir \"C:\\","severity":"medium","location":"scripts/install-browser4-cli.ps1:76"},{"title":"Anti-analysis, sandbox evasion or TLS verification disabled","detail":"see what the script detects without installing powershell -ExecutionPolicy Bypass -File install-browser4-cli.ps1 -Locate .EXAMPLE # Use a","severity":"medium","location":"scripts/install-browser4-cli.ps1:80"},{"title":"Privilege elevation","detail":"ript:OSWin) { if (-not $DryRun) { try { chmod +x $binaryPath 2>$null } catch { } } } # Crea","severity":"low","location":"scripts/install-browser4-cli.ps1:958"},{"title":"Touches credential stores or secrets","detail":"he Aliyun OSS mirror. local -a auth_args=() if [[ -n \"${GITHUB_TOKEN:-}\" ]] && [[ \"$url\" == https://github.com/* ]]; then au","severity":"high","location":"scripts/install-browser4-cli.sh:424"},{"title":"Touches credential stores or secrets","detail":"ub.com/* ]]; then auth_args=(-H \"Authorization: Bearer $GITHUB_TOKEN\") fi http_code=$(curl -sSfL -w \"%{http_code}\" -o \"$des","severity":"high","location":"scripts/install-browser4-cli.sh:425"},{"title":"Touches credential stores or secrets","detail":"st}\"$'\\n' tried_msg+=\" - For GitHub rate limits, set GITHUB_TOKEN environment variable\"$'\\n' tried_msg+=\" - If you hav","severity":"high","location":"scripts/install-browser4-cli.sh:844"},{"title":"Network activity","detail":"existing backend via `browser4-cli upgrade`. # # Usage: # curl -fsSL https://.../install-browser4-cli.sh | bash # curl -f","severity":"medium","location":"scripts/install-browser4-cli.sh:12"},{"title":"Network activity","detail":"curl -fsSL https://.../install-browser4-cli.sh | bash # curl -fsSL https://.../install-browser4-cli.sh | bash -s -- --sil","severity":"medium","location":"scripts/install-browser4-cli.sh:13"},{"title":"Network activity","detail":"_DIR=\"$(cd \"$(dirname \"$0\")\" && pwd)\" fi # If piped via curl | bash, SCRIPT_DIR stays empty -- no local binaries availabl","severity":"medium","location":"scripts/install-browser4-cli.sh:118"},{"title":"Network activity","detail":"------- check_commands() { local missing=() for cmd in curl mktemp stat awk grep ln mkdir chmod od cp mv tail cat; do","severity":"medium","location":"scripts/install-browser4-cli.sh:348"},{"title":"Download-and-execute chain","detail":"existing backend via `browser4-cli upgrade`. # # Usage: # curl -fsSL https://.../install-browser4-cli.sh | bash # curl -fsSL https://.../install-browser4-cli.sh | bash -","severity":"critical","location":"scripts/install-browser4-cli.sh:12"},{"title":"Download-and-execute chain","detail":"curl -fsSL https://.../install-browser4-cli.sh | bash # curl -fsSL https://.../install-browser4-cli.sh | bash -s -- --silent # # ./install-browser4-cli.sh [OPTIONS] #","severity":"critical","location":"scripts/install-browser4-cli.sh:13"},{"title":"Download-and-execute chain","detail":"_DIR=\"$(cd \"$(dirname \"$0\")\" && pwd)\" fi # If piped via curl | bash, SCRIPT_DIR stays empty -- no local binaries available. }","severity":"critical","location":"scripts/install-browser4-cli.sh:118"},{"title":"Persistence mechanism","detail":"e best rc file local rc_file=\"\" for candidate in \"$HOME/.zshrc\" \"$HOME/.bashrc\" \"$HOME/.bash_profile\" \"$HOME/.profile\"; do","severity":"medium","location":"scripts/install-browser4-cli.sh:487"},{"title":"Persistence mechanism","detail":"local rc_file=\"\" for candidate in \"$HOME/.zshrc\" \"$HOME/.bashrc\" \"$HOME/.bash_profile\" \"$HOME/.profile\"; do if [[ -f \"$","severity":"medium","location":"scripts/install-browser4-cli.sh:487"},{"title":"Persistence mechanism","detail":"\"\" for candidate in \"$HOME/.zshrc\" \"$HOME/.bashrc\" \"$HOME/.bash_profile\" \"$HOME/.profile\"; do if [[ -f \"$candidate\" ]]; then","severity":"medium","location":"scripts/install-browser4-cli.sh:487"},{"title":"Persistence mechanism","detail":"\"$HOME/.zshrc\" \"$HOME/.bashrc\" \"$HOME/.bash_profile\" \"$HOME/.profile\"; do if [[ -f \"$candidate\" ]]; then rc_file=\"$can","severity":"medium","location":"scripts/install-browser4-cli.sh:487"},{"title":"Privilege elevation","detail":"ry_path\" cp \"$local_binary_path\" \"$binary_path\" chmod +x \"$binary_path\" fi ok \"Installed (local): $binary_pa","severity":"low","location":"scripts/install-browser4-cli.sh:805"},{"title":"Privilege elevation","detail":"-f \"$binary_path\" mv \"$tmpfile\" \"$binary_path\" chmod +x \"$binary_path\" fi ok \"Installed: $binary_path\"","severity":"low","location":"scripts/install-browser4-cli.sh:853"},{"title":"Privilege elevation","detail":"\"$DRY_RUN\" != true ]] && [[ -f \"$binary_path\" ]]; then chmod +x \"$binary_path\" 2>/dev/null || true fi # Create symlink","severity":"low","location":"scripts/install-browser4-cli.sh:862"},{"title":"Executes commands or dynamic code","detail":"#!/usr/bin/env node import { execSync } from 'child_process'; import { readFileSync } from 'fs';","severity":"medium","location":"scripts/npm-publish-check.js:3"},{"title":"Executes commands or dynamic code","detail":"#!/usr/bin/env node import { execSync } from 'child_process'; import { readFileSync } from 'fs'; import { dirname, join","severity":"medium","location":"scripts/npm-publish-check.js:3"},{"title":"Executes commands or dynamic code","detail":"overriddenVersion, }; } try { const version = execSync(`npm view \"${packageName}\" version`, { cwd: cliRootDi","severity":"medium","location":"scripts/npm-publish-check.js:54"},{"title":"Touches credential stores or secrets","detail":"(os === 'win32') { const candidates = [ `${process.env.LOCALAPPDATA}\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe`, 'C","severity":"high","location":"scripts/postinstall.js:251"},{"title":"Download-and-execute chain","detail":"[DOWNLOAD_URL_GITHUB, DOWNLOAD_URL_OSS]; } async function downloadFile(url, dest) { return new Promise((resolve, reject) => {","severity":"critical","location":"scripts/postinstall.js:108"},{"title":"Download-and-execute chain","detail":"ls) { console.log(`URL: ${url}`); try { await downloadFile(url, binaryPath); // Make executable on Unix i","severity":"critical","location":"scripts/postinstall.js:196"},{"title":"Executes commands or dynamic code","detail":"rm, arch } from 'os'; import { get } from 'https'; import { execSync } from 'child_process'; const __dirname = dirname(fileURLT","severity":"medium","location":"scripts/postinstall.js:17"},{"title":"Executes commands or dynamic code","detail":"os'; import { get } from 'https'; import { execSync } from 'child_process'; const __dirname = dirname(fileURLToPath(import.meta.url)","severity":"medium","location":"scripts/postinstall.js:17"},{"title":"Executes commands or dynamic code","detail":"orm() !== 'linux') return false; try { const result = execSync('ldd --version 2>&1 || true', { encoding: 'utf8' }); re","severity":"medium","location":"scripts/postinstall.js:27"},{"title":"Executes commands or dynamic code","detail":"(const name of names) { try { const result = execSync(`which ${name} 2>/dev/null`, { encoding: 'utf8' }).trim();","severity":"medium","location":"scripts/postinstall.js:243"},{"title":"Executes commands or dynamic code","detail":"* BROWSER4_CLI_NPM_REMOTE_VERSION=<version> */ import { execSync } from 'child_process'; import { cliRootDir, getPublishDeci","severity":"medium","location":"scripts/publish-if-needed.js:14"},{"title":"Executes commands or dynamic code","detail":"NPM_REMOTE_VERSION=<version> */ import { execSync } from 'child_process'; import { cliRootDir, getPublishDecision, logPublishDecisi","severity":"medium","location":"scripts/publish-if-needed.js:14"},{"title":"Executes commands or dynamic code","detail":"tion runCommand(command) { console.log(`> ${command}`); execSync(command, { cwd: cliRootDir, stdio: 'inherit', });","severity":"medium","location":"scripts/publish-if-needed.js:22"},{"title":"Network activity","detail":"# Wait for the HTTP server to actually serve the fixture. curl -f fails on # 4xx/5xx, so a server serving the wrong directo","severity":"medium","location":"scripts/smoke-test-runtime-bundle.sh:175"},{"title":"Network activity","detail":"sing element. SERVING_OK=\"\" for i in $(seq 1 10); do if curl -sf -o /dev/null \"$TEST_URL\" 2>/dev/null; then SERVI","severity":"medium","location":"scripts/smoke-test-runtime-bundle.sh:181"},{"title":"Privilege elevation","detail":"ecutable if [ -f \"$BUNDLE_DIR/runtime/bin/java\" ]; then chmod +x \"$BUNDLE_DIR/runtime/bin/java\" 2>/dev/null || true fi info","severity":"low","location":"scripts/smoke-test-runtime-bundle.sh:143"},{"title":"Anti-analysis, sandbox evasion or TLS verification disabled","detail":"— zero external dependencies. Run: powershell -NoProfile -ExecutionPolicy Bypass -File install-browser4-cli.tests.ps1 #> $ErrorActionPrefer","severity":"medium","location":"scripts/tests/install-browser4-cli.tests.ps1:18"},{"title":"Anti-analysis, sandbox evasion or TLS verification disabled","detail":"ell.exe\" } else { \"pwsh\" } $psi.Arguments = \"-NoProfile -ExecutionPolicy Bypass -Command `\"$cmd`\"\" $psi.RedirectStandardOutput = $true","severity":"medium","location":"scripts/tests/install-browser4-cli.tests.ps1:62"},{"title":"Privilege elevation","detail":"\" | Out-File $foreignB4 -Encoding ASCII & { chmod +x $foreignB4 2>$null } | Out-Null }","severity":"low","location":"scripts/tests/install-browser4-cli.tests.ps1:590"},{"title":"Privilege elevation","detail":"2.0\" | Out-File $oursB4 -Encoding ASCII & { chmod +x $oursB4 2>$null } | Out-Null } Inv","severity":"low","location":"scripts/tests/install-browser4-cli.tests.ps1:618"},{"title":"Touches credential stores or secrets","detail":"sent_to_oss() { local args; args=\"$(mktemp)\" export GITHUB_TOKEN=stub-secret-token local dir; dir=$(stub_install elf oss","severity":"high","location":"scripts/tests/install-browser4-cli.tests.sh:301"},{"title":"Touches credential stores or secrets","detail":"local dir; dir=$(stub_install elf oss \"$args\") unset GITHUB_TOKEN local leaked=0 grep -q 'stub-secret-token' \"$args\"","severity":"high","location":"scripts/tests/install-browser4-cli.tests.sh:303"},{"title":"Touches credential stores or secrets","detail":"t_to_github() { local args; args=\"$(mktemp)\" export GITHUB_TOKEN=stub-secret-token local dir; dir=$(stub_install elf git","severity":"high","location":"scripts/tests/install-browser4-cli.tests.sh:312"},{"title":"Touches credential stores or secrets","detail":"local dir; dir=$(stub_install elf github \"$args\") unset GITHUB_TOKEN local sent=0 grep -q 'stub-secret-token' \"$args\" &&","severity":"high","location":"scripts/tests/install-browser4-cli.tests.sh:314"},{"title":"Network activity","detail":"wnload/latest' \" echo \"\" # ── Download integrity (stubbed curl -- no network) ──── echo \"--- Download integrity ---\" | cya","severity":"medium","location":"scripts/tests/install-browser4-cli.tests.sh:233"},{"title":"Network activity","detail":"cat > \"$STUB_DIR/curl\" << 'STUBEOF' #!/usr/bin/env bash # curl stub for the installer tests. Honours -o <file>, takes the","severity":"medium","location":"scripts/tests/install-browser4-cli.tests.sh:242"},{"title":"Privilege elevation","detail":"i echo \"${STUB_STATUS:-200}\" exit \"${STUB_EXIT:-0}\" STUBEOF chmod +x \"$STUB_DIR/curl\" stub_install() { # $1 = body kind (ht","severity":"low","location":"scripts/tests/install-browser4-cli.tests.sh:264"},{"title":"Privilege elevation","detail":"rt}\" printf '#!/bin/sh\\necho NotBrowser4\\n' > \"$foreign_b4\" chmod +x \"$foreign_b4\" 2>/dev/null || true OLD_PATH=\"$PATH\" PATH=\"$","severity":"low","location":"scripts/tests/install-browser4-cli.tests.sh:581"},{"title":"Privilege elevation","detail":"rintf '#!/bin/sh\\necho browser4-cli v4.12.0\\n' > \"$ours_b4\" chmod +x \"$ours_b4\" 2>/dev/null || true OLD_PATH=\"$PATH\" PATH=\"${ou","severity":"low","location":"scripts/tests/install-browser4-cli.tests.sh:600"}],"injection_findings":[{"title":"Impersonates a system or operator message","detail":"an LLM key. | Command | Description | |---|---| | `extract <instruction>` | Extract structured data from the current page. Supports","severity":"high","location":"README.md:468"},{"title":"Impersonates a system or operator message","detail":"ML pages for testing and demos. Start it from the repository root: **Windows (pwsh — PowerShell 7+):** `./bin/test.ps1 mock-s","severity":"high","location":"README.md:702"}],"hits":{"credential_access":14,"network_egress":12,"download_execute":7,"agent_config_tamper":5,"browser_theft":2,"code_execution":15,"install_hook_shell":1,"privilege":13,"persistence":10,"anti_analysis":7},"iocs":{"urls":["https://browser4.io","https://central.sonatype.com/artifact/ai.platon.pulsar/browser4-core","https://browser4.io/SKILL.md","https://first-url","https://haifengl.github.io/","https://browser4.oss-cn-beijing.aliyuncs.com/scripts/install-browser4-cli.ps1","https://browser4.oss-cn-beijing.aliyuncs.com/scripts/install-browser4-cli.sh","https://www.bilibili.com/video/BV1kM2rYrEFC","https://platonai.github.io/browser4/","https://your-proxy-provider.com/rotation-endpoint","https://browser4.oss-cn-beijing.aliyuncs.com","https://.../install-browser4-cli.sh","https://browser4.oss-cn-beijing.aliyuncs.com/releases/download/v${version","https://rustup.rs"],"domains":["browser4.io","central.sonatype.com","first-url","haifengl.github.io","browser4.oss-cn-beijing.aliyuncs.com","www.bilibili.com","platonai.github.io","your-proxy-provider.com","...","rustup.rs","2fbrowser4.io","amazon.com","install-browser4-cli.sh","b4w.sh","dmock.site","build-all-platforms.sh","smoke-test-runtime-bundle.sh","install-browser4-cli.tests.sh","wait-for-npm-version.tests.sh","wait-for-npm-version.sh","system.net","system.io","chrome.app","canary.app","chromium.app"],"ips":[]},"score":1,"priority":130,"hints":["install hook postinstall: node scripts/postinstall.js","untrusted hosts referenced: browser4.io, central.sonatype.com, first-url, haifengl.github.io, browser4.oss-cn-beijing.aliyuncs.com, www.bilibili.com, platonai.github.io, your-proxy-provider.com, ..., rustup.rs, 2fbrowser4.io, amazon.com, install-browser4-cli.sh, b4w.sh, dmock.site","capability hits: code_execution×15, credential_access×14, privilege×13, network_egress×12, persistence×10, download_execute×7, anti_analysis×7, agent_config_tamper×5, browser_theft×2, install_hook_shell×1","2 prompt-injection / hidden-text hints in docs","tarball sha1 04514581f8f5057201331ee209d8d7f6a4dd69cd"],"entry_files":["scripts/postinstall.js","bin/browser4-cli.js"],"large_or_binary":["bin/.install-method (binary, 3 bytes)","bin/browser4-cli-darwin-arm64 (14988096 bytes)","bin/browser4-cli-darwin-x64 (16879376 bytes)","bin/browser4-cli-linux-arm64 (13082192 bytes)","bin/browser4-cli-linux-musl-arm64 (12627360 bytes)","bin/browser4-cli-linux-musl-x64 (15278880 bytes)","bin/browser4-cli-linux-x64 (15787384 bytes)","bin/browser4-cli-win32-x64.exe (22147599 bytes)"]},"tarball":"https://registry.npmjs.org/browser4-cli/-/browser4-cli-4.13.20.tgz","source":"feed"}