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:03 UTC by yolo in 9 tool calls, with lab detonation

Summary

The postinstall hook spawns only `opencode --version` and validates a platform binary — no network egress, no credential access. However, the package ships 30+ `.agents/` and `.opencode/` skill files containing prompt-injection content: instructions telling an AI agent to impersonate system messages, hide actions from its user, and hijack other tools. This is an agent-supply-chain risk.

Intent

An AI agent harness that ships with hundreds of agent skill files containing prompt-injection instructions (system impersonation, conceal-from-user, tool-hijack). The install hook itself is benign; the risk is in the shipped skills loaded by downstream AI agents.

agent_config_tamper obfuscation

Findings

Prompt-injection: conceal actions from user high .agents/command/publish.md:278
.agents/command/publish.md:278 — instructs agent to hide credential rotation from the user ('the system silently rotates credentials in the background').
Prompt-injection: impersonate system message high .agents/skills/hyperplan/SKILL.md:27
.agents/skills/hyperplan/SKILL.md:27,48,76,105 — multiple adversarial identity system prompts injected into agent conversations.
Prompt-injection: hide coupling from user high .agents/skills/hyperplan/SKILL.md:141
.agents/skills/hyperplan/SKILL.md:141 — instructs agent to conceal technical debt and silent breakage.
Prompt-injection: tool hijack high .agents/skills/github-triage/SKILL.md:14
.agents/skills/github-triage/SKILL.md:14 — sets SUBAGENT=1 task_create=1 with NO EXCEPTIONS, hijacking other tool calls.
Prompt-injection: credential request medium .agents/skills/work-with-pr/SKILL.md
.agents/skills/work-with-pr/SKILL.md — instructs agent to request credentials from the user.
Install hook benign info postinstall.mjs
postinstall.mjs spawns only `opencode --version` and validates platform binary. No network, no credential access. Lab: exit 0, 0 DNS names, 0 HTTP requests.

Lab evidence

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