AI Security Review
scanned 3h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. The CLI can install ForgeDock-owned Claude Code hooks and command links after the user invokes its install/onboarding flow. Those hooks persist in the user's Claude Code configuration and can constrain later agent tool use.
Decision evidence
public snapshot- `bin/journey.mjs` registers SessionStart, PreToolUse, and SubagentStop hooks in `~/.claude/settings.json` during the user-invoked forge/install flow.
- `bin/hooks/pre-tool-use.mjs` intercepts Claude Code Bash tool calls and can block PR, label, git, gist, filesystem, and attribution actions.
- `bin/journey.mjs` copies the package payload into `~/.forge/` and links commands/scripts into `~/.claude/`.
- `bin/forgedock.mjs` can self-update a global install only when the user runs its update command.
- `package.json` has no `preinstall`, `install`, `postinstall`, or `prepare` lifecycle hook.
- Hook installation is performed by the executable's explicit install/onboarding path, not npm installation.
- `bin/settings-hook.mjs` preserves unrelated settings and refuses malformed JSON rather than overwriting it.
- Observed network calls are package-aligned: npm version lookup and optional BYO-key Anthropic enrichment.
Source & flagged code
10 flagged · loading sourcePackage source references child process execution.
bin/init-detect.mjsView on unpkg · L22Package source references a known benign dynamic code generation pattern.
examples/forgedock-demo/src/db.jsView on unpkg · L36Package source references dynamic require/import behavior.
bin/hooks/pre-tool-use.mjsView on unpkg · L5This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
bin/forgedock.mjsView on unpkgPackage source invokes a package manager install command at runtime.
bin/forgedock.mjsView on unpkg · L1482Source writes installer persistence such as shell profile or service configuration.
bin/forgedock.mjsView on unpkg · L15Package ships non-JavaScript build or shell helper files.
examples/forgedock-demo/bootstrap.shView on unpkg