AI Security Review
scanned 5h ago · by lpm-firewall-aiInstall-time code downloads and unpacks an executable PHP runtime without cryptographic integrity verification. The downloaded binary is later executed when the user runs the application.
Decision evidence
public snapshot- `package.json` defines `postinstall`.
- `scripts/postinstall.js` calls `fetchPhp` during installation.
- `scripts/fetch-php.js` downloads a platform PHP archive from `https://dl.static-php.dev/static-php-cli/common/...`.
- Downloaded archive has only size/magic-byte checks, no hash/signature verification, then `tar` extracts it into `runtime/php-bin/`.
- `runtime/main.js` later spawns the downloaded PHP binary.
- No credential, environment, or project-file exfiltration path found.
- Network use in `runtime/main.js` is loopback-only (`127.0.0.1`) for the packaged PHP app bridge.
- CLI update/network calls are user-invoked; no hidden endpoint or dynamic code evaluation found.
- Filesystem mutations otherwise align with project creation/build output and runtime setup.
Source & flagged code
9 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgThis package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
bin/php-app.jsView on unpkgPackage source references dynamic require/import behavior.
bin/php-app.jsView on unpkg · L2A single source file combines environment access, network access, and code or shell execution; review context before blocking.
runtime/main.jsView on unpkg · L130Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
runtime/main.jsView on unpkg · L131Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
scripts/fetch-php.jsView on unpkg · L4Package ships non-JavaScript build or shell helper files.
bin/fetch-php.shView on unpkg