gate
Fail
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
scripts/run-fx-review.mjsprogrammatically retrieves sensitive credentials from the macOS Keychain using the/usr/bin/securityutility. Specifically, it fetches the password for theVercel AI Gatewayservice (vercel-ai-gatewayaccount). While the script includes logic to redact this key from generated artifacts and logs, the automated extraction and transmission of host-level secrets to sub-processes represents a high-severity credential handling risk. - [DYNAMIC_EXECUTION]: The utility
scripts/validate-run-report.mjsuses theFunctionconstructor to execute arbitrary JavaScript code passed as a string via theexpressionargument. This capability is used by the test suite inscripts/test-report-gate.shto dynamically mutate JSON report fixtures during execution. - [COMMAND_EXECUTION]: The skill makes extensive use of
spawnSyncandexecFileSyncto execute shell scripts and local binaries, includinggit,bun, and thefxmodel runner, to perform its gating and review functions. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and analyze external data, including git diffs and PR descriptions, which creates an attack surface for indirect prompt injection. Malicious instructions embedded in the code under review could potentially influence the agent's behavior during the gating process.
- Ingestion points:
scripts/gate.shreads content from git diffs and PR body Markdown files (e.g.,evals/fixtures/prbody/2135-original.md). - Boundary markers: The skill uses structured manifest profiles and lenses to scope its review, but it lacks explicit prompt-level delimiters to neutralize embedded instructions in the reviewed content.
- Capability inventory: The skill can execute shell commands, read/write files in the repository, and access system keychain credentials.
- Sanitization: The
scripts/run-fx-review.mjsscript implements redaction to prevent theAI_GATEWAY_API_KEYfrom appearing in generated report artifacts.
Recommendations
- AI detected serious security threats
Audit Metadata