AI Security Review
scanned 4h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. No confirmed malicious attack surface from install/import. The package is an AI-agent framework that, when explicitly onboarded, installs first-party project hooks and can later self-update globally from npm.
Decision evidence
public snapshot- package.json runs postinstall: node runtime/scripts/postinstall.mjs
- runtime/scripts/postinstall.mjs chmods shipped runtime hooks/scripts executable at install time
- dist/cli/index.js wires user-invoked onboarding/update into .claude/settings.json and .codex/hooks.json hook surfaces
- runtime/hooks/silent-update.mjs can spawn detached shell command: npm install -g paqad-ai@latest && paqad-ai update --silent
- runtime/hooks/silent-update.mjs checks npm via execFileSync('npm',['view','paqad-ai','version'])
- Postinstall only chmods files under the package runtime directory; it does not write project/home agent config
- Agent hook/config writes are in CLI onboarding/update flow, not npm install-time execution
- Network/update behavior is package-aligned self-update and is gated by paqad config/disabled checks
- Scanner metadata/169.254 hits are security review reference text, not live package metadata access
- Secrets code redacts OPENAI_API_KEY/VOYAGE_API_KEY and .paqad/secrets.env values rather than exfiltrating them
Source & flagged code
13 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 unpkg