x9-opencode-sessions

Pass

Audited by Gen Agent Trust Hub on Sep 18, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external OpenCode sessions which serves as an attack surface for indirect prompt injection.
  • Ingestion points: Data is fetched from the OpenCode V2 Sessions API via scripts/opencode_sessions.py during list, show, messages, and message operations.
  • Boundary markers: The skill does not implement delimiters or safety instructions to prevent the agent from following commands embedded in the fetched session text.
  • Capability inventory: The skill has the ability to send messages to other sessions using the prompt command (via opencode2 api POST).
  • Sanitization: The wrapper script performs structural normalization of JSON data but does not sanitize or filter the actual text content for injection patterns.
  • [COMMAND_EXECUTION]: The skill executes the opencode2 command-line tool via the subprocess module in scripts/opencode_sessions.py. While the implementation uses argument lists to mitigate shell injection, it allows the agent to execute actions through an external binary.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 18, 2026, 11:52 AM