@factory/cli@0.240.0
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 23d ago · by lpm-firewall-aiThe fallback sends NPM_TOKEN using a hostname substring check and follows redirects through the same function, leaving the credential destination insufficiently restricted. The package-specific binary download is otherwise consistent with the CLI’s declared optional dependencies, so this supports a warning rather than a block.
Decision evidence
public snapshot- The postinstall hook runs install.js and declares same-version platform binary packages as optional dependencies.
- The install script downloads a platform binary only when the optional dependency is missing, using the package tarball URL returned by npm metadata.
- When NPM_TOKEN is set, requests to any hostname containing “npmjs.org” receive it as a bearer token.
- Redirects are followed by calling the same request function again, so the hostname check also applies to redirect destinations.
- The fallback looks up a platform-specific package at the CLI’s own version through registry.npmjs.org, which is consistent with installing the CLI’s native binary.
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.240.0.
See all versions of @factory/cli for other recorded verdicts.
- Review the evidence and your use of @factory/cli@0.240.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.