@factory/cli@0.245.0
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 16d ago · by lpm-firewall-aiThe normal fallback fetches a same-version platform binary from the npm registry, but its redirect handling can forward NPM_TOKEN to a loosely matched hostname. This is a real conditional credential exposure warranting a warning, with no source evidence establishing active theft.
Decision evidence
public snapshot- The postinstall hook runs install.js, which fetches a platform package from the npm registry when the optional binary is missing.
- install.js attaches NPM_TOKEN to requests when the hostname contains npmjs.org, and follows redirects by recursively requesting the supplied location.
- The redirect destination is not restricted before the next request, so a redirect to a hostname containing npmjs.org could receive NPM_TOKEN.
- The token is only added when NPM_TOKEN is set and the request hostname contains npmjs.org.
- The fallback download is used only when the platform binary from optionalDependencies is unavailable.
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.245.0.
See all versions of @factory/cli for other recorded verdicts.
- Review the evidence and your use of @factory/cli@0.245.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.