@factory/cli@0.237.0
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 27d ago · by lpm-firewall-aiThe postinstall behavior is package-aligned, but the fallback request can forward an existing npm token to a hostname that is not restricted to the npm registry. This conditional credential exposure warrants a warning, not a publish block.
Decision evidence
public snapshot- The postinstall hook can request a platform package tarball when the optional binary is missing.
- The installer sends NPM_TOKEN to any request hostname containing npmjs.org; the tarball URL comes from registry metadata, and redirects are followed.
- On Unix, postinstall replaces the package’s own command shim with a link to the selected binary.
- The manifest maps optional platform binaries to same-version @factory packages.
- The installer uses registry.npmjs.org to retrieve package metadata and performs the binary setup within the package.
Source & flagged code
7 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time source downloads a native archive from a fixed external host without transport verification, extracts it, and installs an executable payload.
package.jsonView on unpkg · L9Install-time lifecycle script is not statically allowlisted and needs review.
Findings
Affected versions and remediation
This report applies to @factory/cli@0.237.0.
See all versions of @factory/cli for other recorded verdicts.
- Review the evidence and your use of @factory/cli@0.237.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.