Summary
Installing [email protected] runs three postinstall hooks. In the offline lab they read no credentials (the single .npmrc read was npm itself), made 0 network connections, and wrote only its own state: ~/.trace/postinstall.log, ~/.trace/launcher.env, ~/.trace/bin/trace (0755). preflight-native.mjs just runs /usr/bin/codesign --verify over .node files on macOS. postinstall-control-plane.mjs writes ~/.trace/*, installs the launcher shim from hooks/, and on macOS writes and bootstraps ~/Library/LaunchAgents/com.trace-mcp.server.plist (RunAtLoad/KeepAlive) for its own daemon on 127.0.0.1:3741; it does not touch ~/.claude, ~/.codex or any agent config at install time. postinstall-app.mjs is a checksum-and-Gatekeeper-verified updater for a separately installed trace-mcp.app (GET api.github.com/repos/nikolai-vysotskyi/trace-mcp/releases/latest, sha256 manifest check, spctl -a -t exec before swapping). The prescreen's credential/reverse-shell/obfuscation hits are false positives: the atob/btoa sites are the bundled yaml binary tag, and the TcpClient/"reverse shell" hit in hooks/trace-mcp-launcher.ps1 is a 127.0.0.1:3741 port probe. Real caveats for agents: the package's advertised purpose includes agent-behavior modification (~/.claude/CLAUDE.md edits, a PreToolUse guard that blocks Read/Grep/Glob, tweakcc system-prompt patching) — but only when a user runs `trace-mcp init`, never at install. Runtime also sends an opt-out anonymous daily GA4 ping (README:412).
Intent
trace-mcp is a genuine commercial code-intelligence MCP server (trace-mcp.com, author Nikolai Vysotskyi). Its three postinstall scripts do what the README describes: prime macOS code-signing for native .node addons, self-heal a launcher shim plus user-level launchd agent for its own localhost daemon, and (macOS only, legacy installs only) auto-update an already-installed trace-mcp.app from its own GitHub release with SHA-256 + Gatekeeper verification.
persistence network_egress download_execute agent_config_tamper code_execution reconnaissance
postinstall installs a user-level LaunchAgent for its own localhost daemon medium scripts/postinstall-control-plane.mjs:393-497
scripts/postinstall-control-plane.mjs writes ~/Library/LaunchAgents/com.trace-mcp.server.plist with RunAtLoad=true and KeepAlive=true, then enables/bootstraps it via /bin/launchctl (lines 393-497). The plist runs ~/.trace/bin/trace serve-http --port 3741. Silent persistence for a documented product daemon bound to loopback, but it happens on every install with no prompt (opt-out: TRACE_MCP_NO_POSTINSTALL=1).
Install-time download-and-replace of a desktop app bundle medium scripts/postinstall-app.mjs:523-599
On macOS, postinstall-app.mjs queries api.github.com/repos/nikolai-vysotskyi/trace-mcp/releases/latest, downloads trace-mcp-*-mac.zip, verifies it against a sibling .sha256 release asset and checks /usr/sbin/spctl -a -t exec before swapping any bundle that still carries Contents/Resources/scripts/apply-pending-update.mjs. Only legacy bundles are touched; failures are aborted, not forced. TRACE_MCP_NO_AUTO_UPDATE=1 disables it.
Product modifies AI agent instruction files and tool routing (opt-in) medium README.md:430-445
README.md:430-445 documents 'trace-mcp init' adding a Code Navigation Policy block to ~/.claude/CLAUDE.md, installing a PreToolUse guard hook that blocks Read/Grep/Glob and redirects the agent to trace-mcp tools, and (Max tier, the default) using tweakcc to patch Claude Code's own tool descriptions. hooks/trace-mcp-guard.sh, trace-mcp-user-prompt-submit.sh and trace-mcp-session-start.sh inject additionalContext into prompts. This is agent-behavior modification by design, but it requires an explicit user command and is not triggered by install.
Runtime telemetry ping to GA4 low README.md:410-416
README.md:410-416 documents at most one anonymous ping per install per day carrying version, OS, MCP client, aggregate counts and a locally generated UUID, sent with GA4 credentials that ship in plaintext in the bundle. Default-on, opt-out via TRACE_MCP_TELEMETRY=off or telemetry.usage_ping:false. The endpoint/payload lives in the 11-13 MB minified bundles (dist/index.js, dist/local-backend.js) which the tooling cannot scan, so I could not verify the field list myself.
Install hook network activity is limited to GitHub releases API info scripts/postinstall-app.mjs:75
Detonation: 0 connect()/DNS/HTTP in the lab (Linux, no dependencies installed; postinstall-app.mjs exits early on non-darwin). Canary credential read reported was /home/andy/.npmrc, attributable to npm itself running the lifecycle scripts — and hooks/trace-mcp-launcher.sh:720-723 does read the npm prefix out of $HOME/.npmrc when choosing a node_modules root, which is prefix discovery, not credential collection.
Prescreen capability hits are false positives on manual review info dist/proxy.js:4843-4856
dist/proxy.js:4843-4856 (atob/btoa) is the bundled yaml 'tag:yaml.org,2002:binary' codec; hooks/trace-mcp-launcher.ps1:297-310 is a TcpClient probe of 127.0.0.1:3741; '/dev/tcp/127.0.0.1/$port' in hooks/trace-mcp-launcher.sh:891 is the same loopback probe; the only URL in hooks/ is http://127.0.0.1:${PORT}/api/projects/reindex-file in hooks/trace-mcp-reindex.sh:164. dist/extract-worker.js:12659-12691 shows id_rsa/.npmrc/credentials.json in an ignore list (secrets are excluded from indexing, not harvested).
Install hooks ran in the isolated lab. Processes spawned: 11. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).
Canary credential files read: /home/andy/.npmrc
Files written outside the package: /home/andy/.trace/postinstall.log, /home/andy/.trace/launcher.env.tmp.77.3257a2da1901, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.4b1f76319e4d, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)