Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

suspicious   confidence 65%   action isolate   analyzed 2026-09-24 20:28 UTC by yolo in 16 tool calls, with lab detonation

Summary

Legitimate MCP server with a desktop-app self-update flow (downloads .app from GitHub releases, Gatekeeper-verifies, swaps in place). Postinstall installs a launchd agent (~/Library/LaunchAgents/com.trace-mcp.server.plist) and launcher shims to ~/.trace/bin/ — persistence for its own daemon. dist/proxy.js spreads process.env to spawned workers (lines 2557, 27588, 27727, 29856) — API keys reach child processes by design. README claims system-prompt rewrites and agent behavior enforcement. Lab wrote ~/.trace/launcher.env and ~/.trace/bin/trace; no unexpected network egress (offline).

Intent

A framework-aware code intelligence MCP server with a self-updating macOS desktop app. Postinstall installs a launchd agent for its own daemon and writes launcher shims to ~/.trace/. Environment is passed in full to child processes (design pattern, not exfiltration). README documents system-prompt rewrites and cross-client agent behavior rules.

persistence network_egress code_execution credential_access

Findings

Persistence via launchd agent medium scripts/postinstall-control-plane.mjs:124-129
postinstall-control-plane.mjs writes ~/Library/LaunchAgents/com.trace-mcp.server.plist and bootstraps it, keeping the daemon alive across reboots.
Environment passed to child processes high dist/proxy.js:2557
dist/proxy.js spreads process.env to worker and spawn calls (lines 2557, 27588, 27727, 29856). API keys and secrets reach child processes.
Self-update downloads .app from GitHub releases medium scripts/postinstall-app.mjs:75
postinstall-app.mjs fetches latest release from api.github.com, downloads .app zip, verifies SHA-256, Gatekeeper-checks with spctl, and swaps in place.
Launcher shims installed to ~/.trace/bin/ low scripts/postinstall-control-plane.mjs:241-264
postinstall-control-plane.mjs copies hooks/trace-mcp-launcher.sh to ~/.trace/bin/trace. Executed on every MCP client invocation.
Prompt-injection / hidden-text hints in README high README.md:432-445
README claims system-prompt rewrites and agent behavior enforcement via tweakcc (lines 432, 436, 438, 443, 445). Untrusted marketing text about capability.

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.77.f4098fea5483, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.4efcce407150, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)