registry  /  @specship/specship-darwin-arm64  /  0.11.9

@specship/specship-darwin-arm64@0.11.9

SpecShip self-contained bundle for darwin-arm64

AI Security Review

scanned 7d ago · by lpm-firewall-ai

LPM treats this as warn-only first-party agent extension lifecycle risk. No confirmed malicious install-time attack surface. The package contains a user-invoked Claude Code/MCP installer with broad agent-extension writes and auto-allow hooks, which is risky but package-aligned and guarded by the CLI flow.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
User runs `specship install` or related CLI commands
Impact
Adds SpecShip MCP tools, permissions, slash commands, subagent, optional statusline/SDD hooks, and local project index files
Mechanism
Claude MCP/commands/hooks extension installer
Policy narrative
The package is a bundled SpecShip CLI for macOS arm64. Its explicit installer configures Claude Code to run SpecShip as an MCP server, auto-allows SpecShip MCP tools, and installs SpecShip-owned commands/subagents and sync hooks. This is an AI-agent control-surface modification, but static inspection shows it is user-invoked, package-aligned, reversible, and not triggered by npm install.
Rationale
Because the root package has no lifecycle execution and the agent-control writes occur through an explicit SpecShip installer rather than unconsented install-time mutation, this is not malicious under the provided boundary. The remaining risk is guarded agent-extension lifecycle behavior, so warn rather than block.
Evidence
package.jsonlib/package.jsonbin/specshiplib/dist/bin/specship.jslib/dist/installer/index.jslib/dist/installer/targets/claude.jslib/dist/installer/targets/shared.jslib/dist/sync/git-hooks.jslib/dist/commands/specship/explore.mdlib/dist/agents/specship-explorer.md~/.claude.json./.mcp.json~/.claude/settings.json./.claude/settings.json~/.claude/commands/specship/explore.md./.claude/commands/specship/explore.md~/.claude/agents/specship-explorer.md./.claude/agents/specship-explorer.mdCLAUDE.md.specship/git hooks: post-commit, post-merge, post-checkout
Network endpoints3
docs.claude.com/en/docs/claude-code127.0.0.1:<port>/json/list<host>:<port>

Decision evidence

public snapshot
AI called this Suspicious at 82.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • User-invoked `specship install` writes Claude MCP config to `~/.claude.json` or `./.mcp.json`.
  • Installer can add Claude permissions and hooks running `specship sync --quiet` and optional `specship spec-nudge`.
  • Installer copies package slash commands and subagent files into Claude command/agent dirs.
  • Interactive installer offers `npm install -g @specship/specship` at runtime.
Evidence against
  • Root `package.json` has no npm lifecycle scripts, bin, main, or install-time execution.
  • Agent-control writes are behind explicit CLI installer flow, with local default and `--print-config` no-write option.
  • Default install does not write CLAUDE.md instructions; SDD CLAUDE.md rule is opt-in via `--sdd`.
  • No credential harvesting or external exfiltration endpoint found; server/UI endpoints are local or docs URLs.
  • Git hooks are offered only when watcher is disabled and guarded/idempotent.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsEvalFilesystemNetworkShellWebSocket
Supply chain
HighEntropyStringsMinifiedObfuscatedProtestwareTelemetryUrlStrings
ManifestNo manifest risk signals triggered.
scanned 342 file(s), 4.07 MB of source, external domains: 127.0.0.1, angular.dev, claude.ai, docs.claude.com, github.com, mcp.sentry.dev, www.w3.org
Oversized source lightweight scan
lib/dist/web/chunk-JTFXTIPE.js3.48 MB file, sampled 256 KB
ChildProcessEnvironmentVarsShellObfuscatedHighEntropyStringsMinified

Source & flagged code

9 flagged · loading source
lib/dist/health/smoke-check.jsView file
56const path = __importStar(require("path")); L57: const child_process_1 = require("child_process"); L58: const sqlite_adapter_1 = require("../db/sqlite-adapter");
High
Child Process

Package source references child process execution.

lib/dist/health/smoke-check.jsView on unpkg · L56
lib/dist/bin/specship.jsView file
matchType = previous_version_dangerous_delta matchedPackage = @specship/specship-darwin-arm64@0.11.8 matchedIdentity = npm:[redacted]:0.11.8 similarity = 0.942 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; route for source-aware review.

lib/dist/bin/specship.jsView on unpkg
295// eslint-disable-next-line @typescript-eslint/no-implied-eval L296: const importESM = new Function('specifier', 'return import(specifier)'); L297: // Block SpecShip on Node.js 25.x — V8's turboshaft WASM JIT has a Zone
Low
Eval

Package source references a known benign dynamic code generation pattern.

lib/dist/bin/specship.jsView on unpkg · L295
lib/dist/ui/shimmer-worker.jsView file
2Object.defineProperty(exports, "__esModule", { value: true }); L3: const worker_threads_1 = require("worker_threads"); L4: const fs_1 = require("fs");
Medium
Dynamic Require

Package source references dynamic require/import behavior.

lib/dist/ui/shimmer-worker.jsView on unpkg · L2
lib/dist/designer/cdp-ensure.jsView file
9const node_path_1 = __importDefault(require("node:path")); L10: const node_child_process_1 = require("node:child_process"); L11: const cross_platform_1 = require("./cross-platform"); L12: const cdp_env_1 = require("./cdp-env"); L13: const PORT = process.env.DESIGNER_CDP || '9222'; L14: const PROFILE = node_path_1.default.join(node_os_1.default.homedir(), '.chrome-designer-profile'); ... L17: try { L18: const res = await fetch(`http://127.0.0.1:${PORT}/json/version`, { signal: AbortSignal.timeout(1500) }); L19: return res.ok;
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

lib/dist/designer/cdp-ensure.jsView on unpkg · L9
lib/dist/installer/index.jsView file
125try { L126: (0, child_process_1.execSync)('npm install -g @specship/specship', { stdio: 'pipe', windowsHide: true }); L127: s.stop('Installed specship CLI on PATH');
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

lib/dist/installer/index.jsView on unpkg · L125
path = node kind = native_binary sizeBytes = 120573328 magicHex = [redacted]
Medium
Ships Native Binary

Package ships native binary artifacts.

nodeView on unpkg
lib/dist/extraction/wasm/tree-sitter-scala.wasmView file
path = lib/dist/extraction/wasm/tree-sitter-scala.wasm kind = wasm_module sizeBytes = 4958320 magicHex = [redacted]
Medium
Ships Wasm Module

Package ships WebAssembly modules.

lib/dist/extraction/wasm/tree-sitter-scala.wasmView on unpkg
lib/dist/web/chunk-JTFXTIPE.jsView file
path = lib/dist/web/chunk-JTFXTIPE.js kind = oversized_source_file sizeBytes = 3651043 magicHex = [redacted]
High
Oversized Source File

Package contains source files above the static scanner size ceiling.

lib/dist/web/chunk-JTFXTIPE.jsView on unpkg

Findings

1 Critical5 High7 Medium6 Low
CriticalPrevious Version Dangerous Deltalib/dist/bin/specship.js
HighChild Processlib/dist/health/smoke-check.js
HighShell
HighSame File Env Network Executionlib/dist/designer/cdp-ensure.js
HighRuntime Package Installlib/dist/installer/index.js
HighOversized Source Filelib/dist/web/chunk-JTFXTIPE.js
MediumDynamic Requirelib/dist/ui/shimmer-worker.js
MediumNetwork
MediumEnvironment Vars
MediumProtestware
MediumShips Native Binarynode
MediumShips Wasm Modulelib/dist/extraction/wasm/tree-sitter-scala.wasm
MediumStructural Risk Force Deep Review
LowEvallib/dist/bin/specship.js
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowTelemetry
LowUrl Strings