@factory/cli@0.250.0
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 8d ago · by lpm-firewall-aiThe postinstall fallback has a weak destination check for forwarding NPM_TOKEN across redirects. The inspected source does not prove an attacker-controlled recipient or malicious intent, so this warrants a warning rather than a block.
Decision evidence
public snapshot- package.json runs install.js during postinstall.
- The fallback downloader adds NPM_TOKEN as an Authorization header when the hostname contains npmjs.org.
- The downloader follows redirect locations by calling makeRequest with the supplied URL; the token check is repeated for each destination.
- The fallback download is used when no platform binary is found during postinstall.
- The fallback downloads the platform binary from the npm registry, matching the package’s declared platform-specific dependencies.
- The inspected source does not establish an attacker-selected redirect destination or a package-controlled recipient.
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.250.0.
See all versions of @factory/cli for other recorded verdicts.
- Review the evidence and your use of @factory/cli@0.250.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.