droid@0.240.1
Factory Droid CLI - AI-powered software engineering agent
AI Security Review
scanned 22d ago · by lpm-firewall-aiThe fallback's hostname substring check and redirect handling can expose NPM_TOKEN to an unrelated matching hostname. The risk is conditional on fallback activation and a registry-provided URL or redirect, so it warrants a warning rather than a block.
Decision evidence
public snapshot- The postinstall hook runs install.js and declares matching-version platform binary packages.
- If a platform binary is missing, the installer fetches that package's tarball URL from npm registry metadata and follows redirects.
- When NPM_TOKEN is set, the request helper sends it to any hostname containing npmjs.org; redirected requests use the same helper.
- The fallback extracts the platform executable and installs it with the package's own command shim.
- The fallback is limited to a missing optional platform binary and selects a package from the declared platform mapping.
- The observed file replacement targets this package's bin/droid shim; source shows no broader file mutation.
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 droid@0.240.1.
See all versions of droid for other recorded verdicts.
- Review the evidence and your use of droid@0.240.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.