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 startCommand and buildCommand in the repository's configuration file to launch the application for testing.
  • Commands are executed via child_process.spawn with the shell: true option in src/server.ts.
  • Utilizes the gh and git command-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, or yarn install based 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-core via 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, and addScriptTag methods to run code templates within the target pages (src/determinism.ts, src/a11y.ts).
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 28, 2026, 12:30 AM