@factory/cli@0.247.0
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 14d ago · by lpm-firewall-aiThe postinstall behavior is otherwise consistent with platform-binary setup, but its fallback can send an existing npm token to a non-registry hostname that passes a substring check. This supports a conditional credential-exposure warning, not a confirmed theft finding.
Decision evidence
public snapshot- The postinstall hook runs install.js, which falls back to downloading a platform binary when its optional dependency is missing.
- The fallback obtains its tarball URL from npm registry metadata and follows redirects recursively.
- When NPM_TOKEN is set, requests to any hostname containing “npmjs.org” receive it in an Authorization header; the check does not require the exact registry host.
- The token must already be present in the caller’s environment, and this path runs only when the platform binary is unavailable.
- The fallback serves the package’s platform-binary setup; the inspected source does not establish that a non-registry recipient was actually contacted.
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.247.0.
See all versions of @factory/cli for other recorded verdicts.
- Review the evidence and your use of @factory/cli@0.247.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.