agent
Fail
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
runOpencodefunction inindex.mjsexecutes a shell command by interpolating thepromptvariable directly into a template string passed toexecSync. Becauseshell: trueis enabled, an attacker can inject arbitrary shell commands by including metacharacters like ";", "&", or backticks in the task description. Evidence:const output = execSync("opencode run \"${prompt}\" 2>&1", { encoding: 'utf-8', shell: true, });inindex.mjs.\n- [INDIRECT_PROMPT_INJECTION]: The skill accepts untrusted task descriptions and passes them to theopencodeagent without sanitization or boundary markers, creating a surface for prompt injection attacks against the sub-agent.\n - Ingestion points:
process.argvinindex.mjs.\n - Boundary markers: Absent.\n
- Capability inventory: Shell command execution (
execSync), file system writes (writeFileSync).\n - Sanitization: Absent.
Recommendations
- AI detected serious security threats
Audit Metadata