AI Security Review
scanned 2h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. An explicitly installed global AI-agent hook can intercept Claude Code tool calls, obtain cloud policy, report audit events, and self-update its package-owned hook files. No unconsented npm lifecycle trigger was found.
Decision evidence
public snapshot- `hooks/guard.mjs` documents global Claude hook enforcement via `init --global`.
- `hooks/guard.mjs` fetches and atomically replaces `guard.mjs`, `audit.mjs`, and `shield.mjs` from SolonGate Cloud.
- Installed guard runs on AI tool calls and reads project `.env` plus `~/.solongate/cloud-guard.json`.
- `hooks/audit.mjs` sends tool names and argument summaries to the cloud audit API when configured.
- `package.json` has no preinstall, install, or postinstall lifecycle scripts.
- Global hook setup is documented as an explicit `npx @solongate/proxy init --global` action.
- Hook download requires a configured SolonGate API key and checks expected markers before replacing files.
- `hooks/guard.mjs` explicitly rejects cloud metadata and private webhook destinations.
Source & flagged code
11 flagged · loading sourceA single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/shield.jsView on unpkg · L269Source combines credential-like environment material and outbound requests; review data flow before blocking.
dist/lib.jsView on unpkg · L42Source writes installer persistence such as shell profile or service configuration.
dist/lib.jsView on unpkg · L42Package source references a known benign dynamic code generation pattern.
dist/audit/index.jsView on unpkg · L1395Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.jsView on unpkg · L8695Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index.jsView on unpkg · L41Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/index.jsView on unpkg · L41Package source invokes a package manager install command at runtime.
dist/index.jsView on unpkg · L9469Source reaches cloud instance metadata or link-local credential endpoints.
hooks/guard.mjsView on unpkg · L13