browser-automation
Fail
Audited by Gen Agent Trust Hub on Oct 24, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/teams.jsis vulnerable to shell command injection. ThechatIdargument is interpolated directly into a string passed toexecSyncwithout any sanitization, quoting, or validation. - Evidence:
execSync(node "${BROWSER_JS}" goto ${chatUrl}, { ... })inscripts/teams.jswherechatUrlis built using thechatIdargument. - [DYNAMIC_EXECUTION]: The skill makes extensive use of dynamic JavaScript generation and execution.
- It generates complex JS snippets at runtime (e.g.,
WAIT_DOM_JS,OBSERVE_JS,WAIT_FOR_JS) and executes them in the browser context viaplaywright-cli eval. - It implements a custom RPC mechanism over unix sockets in
scripts/helper.jsto communicate directly with the playwright-cli daemon, bypassing standard CLI overhead. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to ingest data from arbitrary websites and present it to the agent, creating a large surface for indirect prompt injection.
- Ingestion points:
scripts/browser.jsviasnapshot,find,observe, andevalcommands. - Boundary markers: Absent. While documentation in
SKILL.mdandsites/CONTRIBUTING.mdinstructs the agent to paraphrase content and avoid verbatim transcription, there are no programmatic delimiters or "ignore instructions" wrappers for the ingested data. - Capability inventory: High-risk capabilities including local shell execution (via the injection in
teams.js), file writing (save-state), and unrestricted network access via the automated browser. - Sanitization: No technical sanitization or filtering is performed on data retrieved from the browser before it enters the agent's context.
- [EXTERNAL_DOWNLOADS]: The
browser.jsscript includes an update check mechanism that performs network operations to reach external repositories. - Evidence: The
checkForUpdateandcheckGitBehindfunctions executegit fetch originto check for updates.
Recommendations
- AI detected serious security threats
Audit Metadata