gsearch
Pass
Audited by Gen Agent Trust Hub on Jul 17, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/setupscript performs persistent system modifications by appending PATH exports to user shell configuration files (~/.zshrc,~/.bashrc, and~/.profile). This is used to ensure thegsearchandbrowser-harness-jsbinaries are available in future shell sessions. - [COMMAND_EXECUTION]: The
scripts/gsearchscript employs dynamic code generation by usingnode -eto perform string replacements on a JavaScript template. The resulting script is then piped into thebrowser-harness-jsutility for execution. - [PROMPT_INJECTION]: The skill represents an indirect prompt injection surface as it retrieves and processes arbitrary content from the internet through Google searches and the
followcommand. - Ingestion points: External data enters the agent context via the
Runtime.evaluatecall inscripts/gsearch, which extractsinnerTextfrom search results and visited web pages. - Boundary markers: The skill does not provide clear delimiters or instructions to the agent to treat the retrieved web content as untrusted data.
- Capability inventory: The skill can execute shell commands, modify local configuration files, and perform network operations via the browser.
- Sanitization: While user-provided queries and URLs are sanitized for injection into the JavaScript execution context using
JSON.stringifyandencodeURIComponent, the content extracted from web pages is not sanitized or filtered for malicious instructions before being returned to the agent.
Audit Metadata