AI Security Review
scanned 6h ago · by lpm-firewall-aiThe package executes a remote shell script during npm postinstall for global installs. That remote script controls what binary is installed and copied into the package entrypoint without integrity verification.
Decision evidence
public snapshot- package.json defines postinstall: node scripts/install.js
- scripts/install.js runs execSync with shell:true: curl -fsSL https://swirls.ai/install | bash
- Remote shell execution is lifecycle-triggered on global npm/Bun installs outside CI and non-Windows
- scripts/install.js copies ~/.local/bin/swirls into package bin/swirls after remote installer runs
- No checksum, pinned artifact URL, or local packaged binary is present
- Hook is gated to global installs and skips CI/Windows
- Endpoint is package-aligned with author/docs domain swirls.ai
- No source evidence of credential harvesting, broad file enumeration, AI-agent config writes, or exfiltration in packaged files
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 unpkgSource downloads or fetches remote code and executes it.
scripts/install.jsView on unpkg · L13A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
scripts/install.jsView on unpkg · L13Package source references child process execution.
scripts/install.jsView on unpkg · L13Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
scripts/install.jsView on unpkg · L13Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/install.jsView on unpkgSource fingerprint signature matches a known malicious package signature; route for source-aware review.
scripts/install.jsView on unpkg