@twing/cli@1.3.5
AI Security Review
scanned 11d ago · by lpm-firewall-aiThe postinstall hook automatically mutates machine-wide AI-agent control surfaces during global installation, without a separate consent gate. This meets the policy for blocking unconsented lifecycle control-surface mutation.
Decision evidence
public snapshot- package.json registers postinstall to run postinstall.cjs.
- postinstall.cjs automatically runs machine setup for global npm installs.
- machine setup writes machine-wide Claude resolver wiring, installs the OpenCode plugin, and wires Codex hooks.
- OpenCode wiring writes a plugin loader into its auto-loaded plugin directory.
- The resolver wiring adds entries for configured hook events to Claude settings.
- The Codex trust function builds a trust block from matching Twing hooks and appends it to Codex configuration.
Source & flagged code
7 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 unpkgPackage source references child process execution.
dist/opencode-adapter.jsView on unpkg · L12Findings
Affected versions and remediation
This report applies to @twing/cli@1.3.5.
See all versions of @twing/cli for other recorded verdicts.
- Avoid installing @twing/cli@1.3.5. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.