registry  /  amicus  /  1.9.1

amicus@1.9.1

Multi-model LLM Council + parallel AI window for Claude Code. Run structured council reviews across Gemini, GPT, DeepSeek and more — or fork a conversation to any model and fold the results back.

AI Security Review

scanned 9h ago · by lpm-firewall-ai

Install triggers unconsented mutation of broad Claude/Cowork AI-agent control surfaces. It plants package skills and registers a standing MCP server that later runs `npx -y amicus@latest mcp`.

Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm install / postinstall
Impact
Claude clients gain package-supplied skills and an auto-latest MCP tool server without explicit user invocation.
Mechanism
lifecycle AI-agent control-surface registration
Attack narrative
On package installation, `postinstall` executes `scripts/postinstall.js`, which copies packaged Claude skill files into the user's home Claude skills directory and registers an `amicus` MCP server in Claude Code and Claude Desktop configs. The registered server uses `npx -y amicus@latest mcp`, creating a broad AI-agent control surface entry delivered by install lifecycle rather than a user-invoked setup command.
Rationale
Static source inspection confirms lifecycle-triggered writes to foreign/broad Claude skill and MCP control surfaces, including home config files and auto-latest MCP registration. Under the install-control-surface policy, this unconsented postinstall mutation is blockable even though the package appears product-aligned and no classic exfiltration was found.
Evidence
package.jsonscripts/postinstall.jssrc/mcp-server.jsbin/amicus.js~/.claude/skills/sidecar/SKILL.md~/.claude/skills/second-opinion/SKILL.md~/.claude/skills/second-opinion/COUNCIL-DESIGN.md~/.claude/skills/second-opinion/MODEL-NOTES.md~/.claude.json~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json~/.config/claude/claude_desktop_config.json

Decision evidence

public snapshot
AI called this Malicious at 96.0% confidence as Dangerous Capability with low false-positive risk.
Evidence for block
  • package.json runs `node scripts/postinstall.js` on postinstall.
  • scripts/postinstall.js copies package skills into `~/.claude/skills/sidecar` and `~/.claude/skills/second-opinion`.
  • scripts/postinstall.js registers an MCP server in Claude Code via `claude mcp add-json` or edits `~/.claude.json`.
  • scripts/postinstall.js edits Claude Desktop config at `claude_desktop_config.json` with `command: npx`, `args: ['-y','amicus@latest','mcp']`.
  • scripts/postinstall.js also runs `scripts/setup-hooks.js` and may provision Electron cache, but those are secondary.
Evidence against
  • The lifecycle mutations are product-aligned for an AI sidecar/MCP package.
  • Postinstall has `AMICUS_SKIP_POSTINSTALL=1` escape hatch and wraps failures to exit 0.
  • MCP server code shows project-root containment checks for explicit project paths.
  • No credential exfiltration endpoint or destructive payload was confirmed in inspected files.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetwork
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 134 file(s), 821 KB of source, external domains: aistudio.google.com, api.anthropic.com, api.deepseek.com, api.openai.com, console.anthropic.com, generativelanguage.googleapis.com, nodejs.org, openrouter.ai, platform.deepseek.com, platform.openai.com, www.w3.org

Source & flagged code

9 flagged · loading source
package.jsonView file
scripts.postinstall = node scripts/postinstall.js
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = node scripts/postinstall.js
Medium
Ambiguous Install Lifecycle Script

Install-time lifecycle script is not statically allowlisted and needs review.

package.jsonView on unpkg
bin/amicus.jsView file
13try { L14: const { migrateLegacyConfigDir } = require('../src/utils/config'); L15: const _m = migrateLegacyConfigDir();
Medium
Dynamic Require

Package source references dynamic require/import behavior.

bin/amicus.jsView on unpkg · L13
scripts/postinstall.jsView file
5Install-time AI-agent control hijack evidence: L5: * L6: * 1. Copies SKILL.md to ~/.claude/skills/sidecar/ L7: * 2. Registers MCP server in Claude Code (~/.claude.json) L8: * 3. Registers MCP server in Claude Desktop/Cowork config ... L37: function skillsRoot() { L38: return path.join(os.homedir(), '.claude', 'skills'); L39: } ... L70: L71: if (!existing.mcpServers) { existing.mcpServers = {}; } L72: L73: const prev = existing.mcpServers[name]; L74: const nextConfig = (prev && isAmicusMcpConfig(prev)) ? { ...prev, ...config } : config; Payload evidence from skills/sidecar/SKILL.md: L41: 1. **ALWAYS launch amicus CLI commands with the Bash tool's `run_in_background: true`.** Never run `amicus start/resume/continue` in the foreground. L42: 2. **The fold summary returns on stdout** when the user clicks Fold in the GUI or the headless agent finishes. Use TaskOutput to read it when the background task completes. L43: 3. **For long or multi-line briefings, write them to a temp file and pass `--prompt-file <path>`** (mutually exclusive with `--prompt`; avoids shell-quoting hazards and argument-si... ... L82: **Step 1: Get an OpenRouter API key** L83: - Sign up at https://openrouter.ai …
Critical
Ai Agent Control Hijack

Install-time source drops package-supplied AI-agent/MCP control files or instructions.

scripts/postinstall.jsView on unpkg · L5
src/sidecar/electron-install.jsView file
matchType = normalized_sha256 matchedPackage = amicus@1.9.0 matchedPath = src/sidecar/electron-install.js matchedIdentity = npm:YW1pY3Vz:1.9.0 similarity = 1.000 summary = normalized source hash matched finalized malicious source
High
Known Malware Source Similarity

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

src/sidecar/electron-install.jsView on unpkg
src/mcp-server.jsView file
matchType = normalized_sha256 matchedPackage = amicus@1.9.0 matchedPath = src/mcp-server.js matchedIdentity = npm:YW1pY3Vz:1.9.0 similarity = 1.000 summary = normalized source hash matched finalized malicious source
High
Known Malware Source Similarity

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

src/mcp-server.jsView on unpkg
src/sidecar/interactive.jsView file
matchType = normalized_sha256 matchedPackage = amicus@1.9.0 matchedPath = src/sidecar/interactive.js matchedIdentity = npm:YW1pY3Vz:1.9.0 similarity = 1.000 summary = normalized source hash matched finalized malicious source
High
Known Malware Source Similarity

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

src/sidecar/interactive.jsView on unpkg
src/sidecar/unzip.jsView file
matchType = normalized_sha256 matchedPackage = amicus@1.9.0 matchedPath = src/sidecar/unzip.js matchedIdentity = npm:YW1pY3Vz:1.9.0 similarity = 1.000 summary = normalized source hash matched finalized malicious source
High
Known Malware Source Similarity

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

src/sidecar/unzip.jsView on unpkg
src/headless.jsView file
matchType = normalized_sha256 matchedPackage = amicus@1.9.0 matchedPath = src/headless.js matchedIdentity = npm:YW1pY3Vz:1.9.0 similarity = 1.000 summary = normalized source hash matched finalized malicious source
High
Known Malware Source Similarity

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

src/headless.jsView on unpkg

Findings

1 Critical6 High5 Medium4 Low
CriticalAi Agent Control Hijackscripts/postinstall.js
HighInstall Time Lifecycle Scriptspackage.json
HighKnown Malware Source Similaritysrc/sidecar/electron-install.js
HighKnown Malware Source Similaritysrc/mcp-server.js
HighKnown Malware Source Similaritysrc/sidecar/interactive.js
HighKnown Malware Source Similaritysrc/sidecar/unzip.js
HighKnown Malware Source Similaritysrc/headless.js
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumDynamic Requirebin/amicus.js
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings