Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 21:49 UTC by yolo in 13 tool calls, with lab detonation

Summary

Install hooks run preflight-native.mjs (codesign cache prime), postinstall-app.mjs (GitHub-release self-updater for legacy macOS .app bundles), and postinstall-control-plane.mjs (writes launcher.env, installs ~/.trace/bin/trace shim, bootstraps a launchd plist for the daemon). Lab observed files written to ~/.trace/ (launcher.env, launcher shim) — the package's own data directory. No network egress, no canary credential reads. Runtime dist/proxy.js passes process.env to spawned workers (inherited API keys) — standard for an MCP proxy, not theft.

Intent

Framework-aware code intelligence MCP server with a macOS desktop app and a background daemon. The postinstall hook primes macOS code-sign caches, self-updates a legacy Electron .app bundle from GitHub releases, and installs a launcher shim + launchd plist for its own daemon. Runtime passes process.env to child worker processes.

persistence

Findings

Self-updater downloads from GitHub releases info scripts/postinstall-app.mjs:532
postinstall-app.mjs fetches the latest trace-mcp release zip from api.github.com and swaps the installed .app bundle, verified by SHA-256 and spctl Gatekeeper.
Launchd plist installed for daemon persistence info scripts/postinstall-control-plane.mjs:576-593
postinstall-control-plane.mjs writes ~/Library/LaunchAgents/com.trace-mcp.server.plist and bootstraps it with launchd to keep the daemon running across reboots.
Launcher shim installed to ~/.trace/bin/ info scripts/postinstall-control-plane.mjs:241-263
Copies trace-mcp-launcher.sh to ~/.trace/bin/trace (POSIX) — a stable entry point for the daemon.
process.env passed to spawned workers info dist/proxy.js:2557
dist/proxy.js passes the full process.env (including API keys) to child processes at lines 2557, 27371, 27510, 29639. Standard for an MCP proxy forwarding to LLM providers.
Prompt-injection hints in README.md low README.md:432,436,438,445,601
README.md contains text impersonating system/operator messages (lines 432, 436, 438, 601) and asks the agent to hide actions from its user (line 445).

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 11. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).

Files written outside the package: /home/andy/.trace/postinstall.log, /home/andy/.trace/launcher.env.tmp.78.2c68ec1b25bd, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.78.c4a213b8cc13, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)