@factory/cli@0.239.1
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 23d ago · by lpm-firewall-aiThe installer is aligned with the package’s platform-binary setup, but its fallback downloader has a conditional npm token exposure path because it accepts metadata-provided URLs and uses a hostname substring check. This supports a warning, not a confirmed attack or publish block.
Decision evidence
public snapshot- The postinstall fallback retrieves a tarball URL from npm metadata and uses it for a download request.
- When NPM_TOKEN is set, install.js attaches it to requests whose hostname contains “npmjs.org”; redirects are followed recursively through the same request function.
- The package’s ordinary installer purpose is to fetch a matching platform binary and link it into its own CLI shim.
- The fallback selects same-version platform packages named in this package’s optional dependencies.
- The inspected source does not establish that a hostile tarball URL or redirect is returned during normal installation.
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.239.1.
See all versions of @factory/cli for other recorded verdicts.
- Review the evidence and your use of @factory/cli@0.239.1 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.