AI Security Review
scanned 5h ago · by lpm-firewall-aiLPM blocks this version under the AI-agent control-surface policy. Install-time lifecycle code mutates a user-level AI-agent control surface by installing and registering an OpenCode plugin. The plugin then gains OpenCode hooks/tools capable of prompt injection, autonomous continuation, and subagent configuration.
Decision evidence
public snapshot- package.json defines postinstall and postuninstall lifecycle scripts.
- scripts/postinstall.mjs copies dist/index.js into the user's opencode plugins directory during install.
- scripts/postinstall.mjs creates or rewrites ~/.config/opencode/opencode.json to add ./plugins/opencode-mission.js.
- dist/index.js registers OpenCode tools/hooks, system prompt transforms, command templates, and a mission-verify subagent.
- dist/index.js can inject mission instructions into chat/system prompts and auto-continue sessions via client.session.promptAsync.
- No credential harvesting or exfiltration endpoints found in package source.
- No child_process, eval, vm, native addon, or remote code loading found.
- README.en.md documents the automatic OpenCode config mutation and manual install path.
- Lifecycle behavior is package-aligned with an OpenCode plugin, not a typosquat or unrelated payload.
Source & flagged code
2 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkg