opencode

Pass

Audited by Gen Agent Trust Hub on Mar 4, 2026

Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill is designed to execute shell commands via the 'opencode' CLI tool. These commands facilitate broad system operations including file creation, project scaffolding, and test execution.
  • [PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection due to its data processing model.
  • Ingestion points: The agent ingests data through natural language task descriptions in opencode run and external file content attached via the --file flag (e.g., logs or source code).
  • Boundary markers: There are no instructions for the agent to use delimiters or ignore embedded instructions within the ingested project files.
  • Capability inventory: The tool has extensive capabilities including reading and writing any file in the project directory and executing arbitrary code during tasks like 'running tests'.
  • Sanitization: The skill lacks instructions for sanitizing or validating inputs from external files before they are processed by the coding agent.
  • Risk Factor: The documentation explicitly states that 'All permissions are auto-approved in non-interactive mode,' which increases the risk that an injected instruction could execute harmful actions without user oversight.
Audit Metadata
Risk Level
SAFE
Analyzed
Mar 4, 2026, 12:59 AM