AI Security Review
scanned 4h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. No install-time foreign agent hijack was confirmed. The real risk is a user-invoked AI framework onboarding flow that installs persistent agent hooks and a default background self-update hook.
Decision evidence
public snapshot- dist/cli/index.js user-invoked onboard writes Claude/Codex/Gemini agent hook configs such as .claude/settings.json and .codex/hooks.json.
- dist/cli/index.js wires Claude SessionStart to runtime hook silent-update.mjs.
- runtime/hooks/silent-update.mjs checks npm and spawns `npm install -g paqad-ai@latest && paqad-ai update --silent` in background by default.
- package.json postinstall only runs runtime/scripts/postinstall.mjs.
- runtime/scripts/postinstall.mjs recursively chmods shipped runtime hooks/scripts and does not write project/home agent configs.
- Onboarding/update writes are CLI-invoked and package-aligned, mostly under .paqad and selected agent adapter namespaces.
- No credential harvesting, destructive behavior, or exfiltration endpoint found in inspected files.
Source & flagged code
14 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 contains a critical-looking secret pattern.
runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.mdView on unpkg · L13RSA private key in runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.md
runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.mdView on unpkg · L11RSA private key in runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.md
runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.mdView on unpkg · L12EC private key in runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.md
runtime/capabilities/security/skills/cryptographic-review/references/crypto-weakness-patterns.mdView on unpkg · L13Package source references child process execution.
dist/rule-scripts/index.jsView on unpkg · L506Package source references dynamic require/import behavior.
runtime/graph-ui/assets/index-B7e9pFJw.jsView on unpkg · L218Source reaches cloud instance metadata or link-local credential endpoints.
dist/index.jsView on unpkg · L523Package source references weak cryptographic algorithms.
dist/index.jsView on unpkg · L523Package source invokes a package manager install command at runtime.
runtime/hooks/silent-update.mjsView on unpkg · L347Package ships non-JavaScript build or shell helper files.
runtime/capabilities/security/skills/auth-mechanism-review/scripts/scan-auth-smells.shView on unpkgThis package version adds a dangerous source file absent from the previous stored version.
dist/cli/index.jsView on unpkg