AI Security Review
scanned 6d ago · by lpm-firewall-aiNo confirmed malicious attack surface was established. The risky primitives are documented OpenCode plugin capabilities activated by plugin configuration or explicit tool calls.
Decision evidence
public snapshot- dist/index.js exposes powerful user-invoked tools for OpenCode sessions, GitHub/ClickUp actions, and QA browser control.
- dist/index.js uses new Function for optima_qa_chrome_command script actions supplied as tool input.
- dist/index.js config hook writes agent markdown to OPENCODE_CONFIG_DIR and sets product_manager as default when plugin is enabled.
- package.json has no install/postinstall lifecycle hooks; prepack is not consumer install-time execution.
- README.md documents an OpenCode workflow plugin that installs agents, writes .optima project state, and integrates ClickUp/GitHub/QA browser tools.
- Network endpoints in dist/index.js are package-aligned: api.clickup.com, api.github.com, localhost/127.0.0.1 CDP/OpenCode, and optional chatgpt.com QA tab.
- File writes are scoped to documented .optima state, OPENCODE_CONFIG_DIR agent sync, QA artifacts, gitignore, and explicit tool/apply operations.
- scripts/optima-sanitize-host.js only dynamically imports src or dist sanitize CLI; dist/sanitize_cli.js mirrors bundled CLI/plugin logic.
- No evidence of credential harvesting, hidden exfiltration, persistence, destructive install/import behavior, or reviewer/prompt manipulation.
Source & flagged code
5 flagged · loading sourceA single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L14509Package source references a known benign dynamic code generation pattern.
dist/index.jsView on unpkg · L14038Package source references dynamic require/import behavior.
scripts/optima-sanitize-host.jsView on unpkg · L9Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/sanitize_cli.jsView on unpkg · L2592