Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of oh-my-opencode

[email protected]

suspicious   confidence 65%   action isolate   analyzed 2026-09-24 20:04 UTC by yolo in 15 tool calls, with lab detonation

Summary

The postinstall hook is benign (platform binary verification). The package installs .agents/ and .opencode/ skill directories with 238 files flagged for prompt injection: adversarial system prompts (e.g., "You are the Architect Strategist in an adversarial planning team. You ATTACK bad architecture" in .agents/skills/hyperplan/SKILL.md:136), concealment-from-user narratives ("the system silently rotates credentials in the background" in .agents/command/publish.md:278), and system impersonation patterns across multiple skills. These are published as part of the package (listed in files[]) and would be loaded by AI agent frameworks that consume .agents/ skills.

Intent

An OpenCode plugin CLI that installs 238 skill files containing adversarial system prompts designed to shape AI agent behavior (role-play as hostile critics, narratives about silently rotating credentials, system impersonation).

prompt_injection agent_config_tamper

Findings

Prompt injection via adversarial system prompts high .agents/skills/hyperplan/SKILL.md:136
.agents/skills/hyperplan/SKILL.md contains multiple system prompts defining hostile adversarial roles (e.g., line 136: 'You are the Architect Strategist in an adversarial planning team. You ATTACK bad architecture'). Similar patterns in .agents/skills/opencode-qa/SKILL.md:130, .agents/skills/github-triage/SKILL.md:14.
Concealment-from-user narrative in skill files high .agents/command/publish.md:278
.agents/command/publish.md:278 contains narrative suggesting 'the system silently rotates credentials in the background' — a pattern asking agents to hide actions from users. Also in .agents/skills/work-with-pr/SKILL.md:18663, .agents/skills/publish/SKILL.md.
System impersonation in skill references high .agents/skills/codex-qa/references/docker-qa.md:13
Multiple skill files impersonate system or operator messages (e.g., .agents/skills/codex-qa/references/docker-qa.md:13, .agents/skills/codex-qa/references/isolation.md:9, .agents/skills/opencode-qa/SKILL.md:130).
Tool hijack instructions high .agents/skills/github-triage/SKILL.md:14
.agents/skills/github-triage/SKILL.md:14 contains SUBAGENT routing rules with 'NO EXCEPTIONS' — attempts to hijack tool call routing.
Credential environment exposure in test scripts high .agents/skills/codex-qa/scripts/lsp-e2e.sh:174
.agents/skills/codex-qa/scripts/lsp-e2e.sh:174,1202,1248,1260 pass {...process.env} to spawned child processes, exposing API keys and secrets.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 10. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).