registry  /  forge-cockpit  /  0.1.2

forge-cockpit@0.1.2

An AI coding agent with a browser cockpit (dashboards + one-click integrations). Bring your own model API key. A fork of Forge (Apache-2.0).

AI Security Review

scanned 3h ago · by lpm-firewall-ai

Installation downloads an opaque native executable, and the CLI later executes it. The JavaScript wrapper provides no integrity validation for the downloaded release asset.

Static reason
One or more suspicious static signals were detected.
Trigger
`npm install`/`npx` runs `postinstall`; invoking `forge-cockpit` runs the fetched binary.
Impact
A compromised or replaced release asset could execute arbitrary code as the installing or CLI user.
Mechanism
install-time remote binary download followed by CLI execution
Rationale
The wrapper itself shows no direct exfiltration, destructive action, or AI-agent control-surface mutation. However, it is a version-pinned but integrity-unverified remote executable bootstrapper, so the opaque payload remains a material supply-chain risk.
Evidence
package.jsonpostinstall.jsbin/forge-cockpit.jsREADME.mdbin/forgebin/forge.exe
Network endpoints1
github.com/LeyouHong/forge-cockpit/releases/download/release-v0.1.2/forge-cockpit-{platform}

Decision evidence

public snapshot
AI called this Suspicious at 93.0% confidence as Dangerous Capability with low false-positive risk.
Evidence for warning
  • `postinstall.js` runs automatically via `postinstall`.
  • `postinstall.js` fetches a platform binary from a GitHub Release.
  • Downloaded bytes are written as `bin/forge` or `bin/forge.exe` without checksum/signature validation.
  • `bin/forge-cockpit.js` executes that downloaded binary with `spawnSync`.
Evidence against
  • No credential, environment, or user-file collection appears in inspected JavaScript.
  • No package source writes AI-agent configuration or persistence locations.
  • The download URL is version-pinned to this package's declared GitHub repository.
Behavioral surface
Source
ChildProcessFilesystemNetwork
Supply chain
UrlStrings
ManifestNo manifest risk signals triggered.
scanned 2 file(s), 3.39 KB of source, external domains: github.com

Source & flagged code

2 flagged · loading source
package.jsonView file
scripts.postinstall = node postinstall.js
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = node postinstall.js
Medium
Ambiguous Install Lifecycle Script

Install-time lifecycle script is not statically allowlisted and needs review.

package.jsonView on unpkg

Findings

1 High2 Medium3 Low
HighInstall Time Lifecycle Scriptspackage.json
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
LowScripts Present
LowFilesystem
LowUrl Strings