AI Security Review
scanned 4h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. Confirmed agent-extension lifecycle risk, but not unconsented npm lifecycle hijack. User-invoked onboarding/update writes agent hook configs and installs a SessionStart self-update hook.
Decision evidence
public snapshot- dist/cli/index.js writes Claude/Codex/Gemini agent hook configs during onboarding/update.
- dist/cli/index.js merges .claude/settings.json SessionStart hook to run silent-update.mjs.
- runtime/hooks/silent-update.mjs checks npm and can spawn `npm install -g paqad-ai@latest && paqad-ai update --silent`.
- dist/index.js bootstraps ~/.paqad-ai/current symlink for runtime hooks.
- package.json postinstall only chmods shipped runtime hooks/scripts and always exits 0.
- Agent control-surface writes appear tied to explicit CLI onboarding/update, not npm install/import time.
- runtime/hooks/silent-update.mjs respects paqad disabled and auto_update config before updating.
- No source evidence of credential harvesting or exfiltration; OpenAI/Voyage env usage is package-aligned RAG/AI functionality.
- rule-scripts child_process usage runs local rule scripts with node/git for package-aligned checks.
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 · L500Package 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; route for source-aware review.
dist/cli/index.jsView on unpkg