ui-diff
Pass
Audited by Gen Agent Trust Hub on Nov 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Executes shell commands defined as
startCommandandbuildCommandin the repository's configuration file to launch the application for testing. - Commands are executed via
child_process.spawnwith theshell: trueoption insrc/server.ts. - Utilizes the
ghandgitcommand-line interfaces for repository management and pull request interaction (src/github.ts, src/git.ts). - [EXTERNAL_DOWNLOADS]: Fetches Chromium browser binaries via the official Playwright installer during setup and first run (src/capture.ts).
- [REMOTE_CODE_EXECUTION]: Executes package manager installation commands such as
npm install,pnpm install, oryarn installbased on detected lockfiles to prepare testing environments (src/sides.ts). - The skill's entry point automatically installs its own dependencies and builds the project upon first execution (bin/ui-diff.mjs).
- [CREDENTIALS_UNSAFE]: Automatically copies sensitive local files including
.env,.env.local, and other environment-specific configurations to temporary worktrees. - Reads credentials from environment variables to attach as headers or cookies to protected preview origins (src/auth.ts).
- [INDIRECT_PROMPT_INJECTION]: Ingests untrusted content from web pages during visual capture and accessibility auditing, creating a potential attack surface.
- Ingestion points: Processes DOM structures, text content, and accessibility violations from
axe-corevia Playwright (src/capture.ts, src/pipeline.ts). - Boundary markers: No explicit markers are used to separate ingested page data from the agent's instructions.
- Capability inventory: Possesses host-level command execution, file system access, and network capabilities (src/exec.ts, src/sides.ts).
- Sanitization: Implements a redaction mechanism that replaces registered secret values with a placeholder in logs and error messages (src/log.ts).
- [DYNAMIC_EXECUTION]: Injects and runs JavaScript helper scripts inside the browser context to capture element styles and audit accessibility features.
- Employs Playwright's
evaluate,addInitScript, andaddScriptTagmethods to run code templates within the target pages (src/determinism.ts, src/a11y.ts).
Audit Metadata