AI Security Review
scanned 3d ago · by lpm-firewall-aiInstall-time lifecycle code can download, persist, execute, and initialize an external RTK binary without an explicit CLI command from the user. It also sends machine/token-linked RTK telemetry when Happy credentials already exist.
Decision evidence
public snapshot- package.json defines postinstall: node scripts/postinstall.cjs
- scripts/postinstall.cjs auto-runs bin/happy.mjs install on global or root installs unless HAPPY_SKIP_AUTO_TAKEOVER is set
- dist/index-BB3s4Iuy.cjs install path downloads RTK binaries from minio.ask-ggk.com into user paths and executes rtk init
- dist/index-BB3s4Iuy.cjs reports RTK install/gain events to guguke.ask-ggk.com with Happy machineId/token when present
- dist/index-BB3s4Iuy.cjs can append RTK bin path to ~/.zshrc on macOS or user PATH on Windows
- README documents a remote AI agent controller and authentication flows, so network and child_process use are partly package-aligned
- postinstall only auto-takeovers on global/root installs and has HAPPY_SKIP_AUTO_TAKEOVER opt-out
- No static evidence of npm token, SSH key, or arbitrary secret harvesting outside its own Happy credentials/RTK telemetry
Source & flagged code
12 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 unpkgPackage source references dynamic require/import behavior.
dist/AcpBackend-CJDdgla5.cjsView on unpkg · L2This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/index-BB3s4Iuy.cjsView on unpkgSource gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index-BB3s4Iuy.cjsView on unpkg · L16Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/index-BB3s4Iuy.cjsView on unpkg · L16Source writes installer persistence such as shell profile or service configuration.
dist/index-BB3s4Iuy.cjsView on unpkg · L16Package ships non-JavaScript build or shell helper files.
scripts/download-tools.shView on unpkgPackage ships high-entropy non-source blobs.
tools/archives/difftastic-arm64-linux.tar.gzView on unpkgPackage ships compressed or archive-like blobs.
tools/archives/difftastic-arm64-linux.tar.gzView on unpkg