@factory/cli@1.2.0
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 2d ago · by lpm-firewall-aiThe automatic install fallback forwards NPM_TOKEN based on a substring hostname check, while the destination comes from registry metadata or redirects. A lookalike external host can therefore receive the installer's npm credential.
Decision evidence
public snapshot- The manifest runs install.js automatically as a postinstall hook.
- install.js reads NPM_TOKEN and adds it as a Bearer token when the parsed hostname contains the substring npmjs.org.
- The request helper follows redirects by calling makeRequest with the redirect's Location URL, applying the same token logic again.
- The fallback obtains a tarball URL from npm registry metadata and requests that URL; the host is not restricted to registry.npmjs.org.
- This credential-forwarding path runs during postinstall when the optional platform binary is missing.
- The fallback is intended to download this CLI's platform binary from npm, and normally is used only when the optional dependency is unavailable.
- The token is only added when a hostname contains npmjs.org; ordinary requests to registry.npmjs.org are expected npm traffic.
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@1.2.0.
See all versions of @factory/cli for other recorded verdicts.
- Avoid installing @factory/cli@1.2.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.