agent-browser-wsl2-setup
Audited by Socket on Sep 15, 2026
2 alerts found:
Anomalyx2The script appears intended to connect an `agent-browser` session to a browser debugging bridge and contains no evident malware, credential theft, persistence, exfiltration, or destructive behavior. However, embedding the user-controlled `--bridge-port` value directly into a Python heredoc creates a local command-injection/code-injection risk. The value should be validated as a decimal port or passed to Python through an environment variable or argument, and the debugging connection should use an authenticated or protected channel where applicable.
The code is a readable WSL runtime setup script. It contains no direct evidence of malware, credential theft, exfiltration, persistence, or destructive behavior. However, it performs privileged installation of unpinned apt/npm dependencies, automatically executes the installed agent-browser setup command, and clones an unpinned public repository. These are legitimate setup behaviors but create material supply-chain risk if the registry package, repository, or transitive dependencies are compromised. Pin versions and Git commits, verify package and repository integrity, and avoid unnecessary sudo privileges where possible.