@twing/cli@1.3.0
AI Security Review
scanned 11d ago · by lpm-firewall-aiThe postinstall hook automatically wires multiple machine-wide AI-agent control surfaces for global installs without a separate consent step. This meets the policy for blocking unconsented install-time agent control-surface mutation.
Decision evidence
public snapshot- package.json runs postinstall through postinstall.cjs.
- The postinstall gate enables machine setup for npm global installs without a separate configuration consent check.
- Machine setup writes Claude, OpenCode, and Codex agent wiring and marks the machine as managed.
- The OpenCode plugin is placed in the user's auto-loaded plugin directory.
- The inspected agent-integration locations describe Codex, Claude enforcement, explicit init, and resolver behavior; they provide context but do not establish a consent guard for the machine-wide postinstall setup.
- Ordinary project installs and self-installs exit without machine wiring.
- The setup is limited to global installs or an explicit --machine-setup flag, and checks the Node version before importing setup code.
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.0.
See all versions of @twing/cli for other recorded verdicts.
- Avoid installing @twing/cli@1.3.0. 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.