Warn by default; block when configured. This unrequested instruction change can steer an AI agent toward wallet and password actions.
AI security review
scanned · by lpm-firewall-ai
The default install hook writes behavior-bearing guidance into AI assistant instruction files outside the package directory. This unconsented install-time control-surface mutation meets the AI-agent control hijack criterion.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; source fingerprint signature matched known malicious package; routed for review
Trigger
Package installation, when Claude Code, Cursor, or Windsurf configuration is detected.
Impact
This unrequested instruction change can steer an AI agent toward wallet and password actions.
Mechanism
The hook inserts or updates instructions in ~/.claude/CLAUDE.md, ~/.cursor/rules/agentgates.md, and ~/.windsurfrules. The injected text directs agents to use the wallet CLI and says password operations can run without a human.
Policy narrative
During installation, the postinstall hook detects supported AI assistants and edits their user-level instruction files. The inserted guidance steers agents toward the wallet CLI and describes password operations as needing no human, creating an unconsented AI-agent control surface.
AI identified this as a dangerous AI-agent capability at 96.0% confidence with low false-positive risk.
Evidence for policy risk
The npm postinstall hook runs scripts/postinstall.mjs during installation.
The hook writes package guidance into instruction files under the user's Claude, Cursor, or Windsurf configuration directories when those tools are detected.
The injected guidance says password operations need no human and that the agent mints its own key and runs them over signed HTTP.
The hook automatically invokes the configuration checks during installation.
Evidence against
The postinstall code does not itself send network requests or transfer funds.
Wallet operations are within the package's stated purpose; the reviewed source did not establish a wallet drain.
Avoid installing @agentgates/cli@0.84.0. Remove it from direct dependencies and check your lockfile for transitive copies.
Choose an independently verified alternative or release. This report does not establish that other versions are safe.
If this version ran, check your AI agents' configuration and instruction files (the files this report lists) for changes you did not make, and remove them. This finding does not by itself establish malware intent.