AI Security Review
scanned 6d ago · by lpm-firewall-aiNo confirmed malicious attack surface was found. The package is a high-capability OpenCode workflow plugin, but the risky primitives are exposed as configured or user-invoked workflow, QA, ClickUp, GitHub, and sanitizer features.
Decision evidence
public snapshot- dist/index.js registers powerful OpenCode tools that can prompt sessions, mutate configured ClickUp/GitHub state, and run QA browser commands when invoked.
- dist/index.js syncs Optima-managed agent markdown into process.env.OPENCODE_CONFIG_DIR during plugin config when enabled.
- dist/sanitize_cli.js user-invoked host sanitizer can SSH to a supplied host and remove legacy override markdown after backup.
- package.json has no install/postinstall lifecycle hooks; prepack is publish-time build only.
- dist/index.js exports an OpenCode plugin; network calls target configured ClickUp/GitHub/OpenCode/CDP services, not hardcoded exfil infrastructure.
- Dynamic Function usage is confined to explicit optima_qa_chrome_command script actions supplied by the tool caller.
- Secrets are resolved from configured references for API clients and used as Authorization headers to ClickUp/GitHub APIs.
- scripts/optima-sanitize-host.js only imports the bundled CLI and calls main; no hidden install-time behavior found.
- File writes are plugin-aligned project/runtime artifacts such as .optima state, generated policies, QA artifacts, and managed OpenCode agents.
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 · L14554Package source references a known benign dynamic code generation pattern.
dist/index.jsView on unpkg · L14079Package 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