registry  /  @iicp/client  /  0.7.80

@iicp/client@0.7.80

Use the open IICP AI mesh from TypeScript or JavaScript without running a node

AI Security Review

scanned 13d ago · by lpm-firewall-ai

No confirmed malicious attack surface was established. The main unresolved risk is a default-on runtime self-updater for long-running provider CLI processes.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
User runs iicp-node serve or mcp-gateway with auto-update enabled.
Impact
A running provider may replace its installed package with npm latest without a per-update confirmation; this is dangerous but package-aligned and opt-out via IICP_AUTO_UPDATE=0.
Mechanism
runtime npm global self-update and CLI reexec
Rationale
Static inspection shows risky runtime self-update behavior, but it is only activated by user-invoked provider commands and targets the same package from npm rather than a hidden payload or attacker endpoint. With no lifecycle/import-time execution, harvesting, exfiltration, or destructive behavior, this should warn rather than block.
Evidence
package.jsondist/index.jsdist/cli.jsdist/updater.jsdist/identity.jsdist/tunnel.jsdist/client.js~/.iicp/operator.json~/.iicp/nodes/<name>.json~/.iicp/state/quick_tunnel_rate_limit.json~/.iicp/state/quick_tunnel_create_gate.json~/.iicp/state/quick_tunnel_create.lock
Network endpoints5
registry.npmjs.org/@iicp/client/latestiicp.network/apiapi.anthropic.comcloudflare-dns.com/dns-query*.trycloudflare.com

Decision evidence

public snapshot
AI called this Suspicious at 85.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • dist/cli.js starts default provider auto-update during serve/mcp-gateway runtime.
  • dist/updater.js fetches npm latest and runs npm install -g @iicp/client@latest, then reexecs CLI.
  • dist/cli.js init can run npm install --no-save for optional deps after an interactive prompt.
  • dist/tunnel.js can spawn cloudflared tunnel for user-invoked provider reachability.
Evidence against
  • package.json has no lifecycle scripts; main is dist/index.js and bin is user-invoked dist/cli.js.
  • dist/index.js only re-exports SDK modules; no install/import-time execution found.
  • Network endpoints are package-aligned: iicp.network directory/API, npm registry version check, local backends, Cloudflare tunnel health/DNS.
  • Identity/token files under ~/.iicp are created/read for declared CLI operator/node configuration, not harvested for exfiltration.
  • No credential scanning, destructive actions, persistence outside service/update features, or reviewer/prompt manipulation found.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsEvalFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 44 file(s), 511 KB of source, external domains: 127.0.0.1, api.anthropic.com, api.ipify.org, api6.ipify.org, cloudflare-dns.com, iicp.network, pkg.cloudflare.com, registry.npmjs.org, schemas.xmlsoap.org

Source & flagged code

6 flagged · loading source
dist/tunnel.jsView file
22exports.openQuickTunnel = openQuickTunnel; L23: const node_child_process_1 = require("node:child_process"); L24: const fs = require("node:fs");
High
Child Process

Package source references child process execution.

dist/tunnel.jsView on unpkg · L22
dist/node.jsView file
762// eslint-disable-next-line @typescript-eslint/no-explicit-any L763: this._prom = await eval('import("prom-client")'); L764: this._tasksCounter = new this._prom.Counter({
Low
Eval

Package source references a known benign dynamic code generation pattern.

dist/node.jsView on unpkg · L762
dist/client.jsView file
7exports.IicpClient = void 0; L8: const node_crypto_1 = require("node:crypto"); L9: const confidentiality_js_1 = require("./confidentiality.js");
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/client.jsView on unpkg · L7
dist/cli.jsView file
matchType = previous_version_dangerous_delta matchedPackage = @iicp/client@0.7.79 matchedIdentity = npm:QGlpY3AvY2xpZW50:0.7.79 similarity = 0.929 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version.

dist/cli.jsView on unpkg
2133const _MCP_DANGEROUS = new Set([ L2134: "bash", "sh", "zsh", "fish", "shell", "powershell", "pwsh", "cmd", L2135: "exec", "execute", "run_command", "run", "system", "eval", ... L2144: if (helpFlag) { L2145: process.stdout.write(`usage: iicp-node mcp-gateway [options]\n\n` + L2146: `Bridge a local MCP server into the IICP mesh as a registered provider node.\n\n` + L2147: `Options:\n` + L2148: ` --mcp-url URL IICP_MCP_URL — MCP server base URL (default http://localhost:8001)\n` + L2149: ` --tools NAMES IICP_MCP_TOOLS — comma-separated tool names to advertise (required)\n` +
High
Command Output Exfiltration

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

dist/cli.jsView on unpkg · L2133
407try { L408: (0, node_child_process_1.execSync)(`npm install --no-save ${extras.join(" ")}`, { stdio: "inherit" }); L409: process.stdout.write(" ✓ done\n");
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

dist/cli.jsView on unpkg · L407

Findings

1 Critical4 High4 Medium5 Low
CriticalPrevious Version Dangerous Deltadist/cli.js
HighChild Processdist/tunnel.js
HighShell
HighCommand Output Exfiltrationdist/cli.js
HighRuntime Package Installdist/cli.js
MediumDynamic Requiredist/client.js
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowScripts Present
LowEvaldist/node.js
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings