Skip to main content
MCP server CX Codex

Treasure Map — Claude Code MCP server: firmware attack surface map

Treasure Map is a Claude Code MCP server that maps dangerous call sites in unpacked firmware and diffs binary patches across versions. The agent navigates facts to find vulnerabilities.

Apache-2.0 ★ 25 updated 2026-11-24

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add treasure-map -- uvx tmap-agents
Open on GitHub

What Treasure Map does

The server runs static analysis over unpacked firmware binaries using Ghidra, surfacing call sites for command execution, memory buffers, format strings, and file access. It records argument provenance, user controllability, and explicit missing data flags instead of generating automated vulnerability scores.

For version comparisons, tmap diff runs Ghidra, BinExport, and BinDiff across modified binaries to generate function-level patch diffs alongside script changes. Running the server requires executing tmap init beforehand to configure the Ghidra toolchain. No external API keys or built-in models are needed; judgments remain in an annotation layer across sessions.

What it helps with

  • firmware attack surface map
  • find dangerous binary call sites and argument origins
  • diff binary patches across firmware releases
  • track nvram keys across programs and web endpoints

Example prompts for the agent

  • Scan the unpacked firmware directory and list command execution calls with user-controlled input
  • Diff the two firmware versions and identify changes in memory copy bounds
  • Trace which binaries and scripts write to the nvram setting http_username

How to install Treasure Map

Platform CLI

claude mcp add treasure-map -- uvx tmap-agents

uvx runs the command named after the package; if the README names another one, use uvx --from tmap-agents <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Treasure Map

How to install Treasure Map in Claude Code?

Run claude mcp add treasure-map -- uvx tmap-agents.

What does Treasure Map do?

It indexes call sites across firmware binaries and tracks cross-version patch diffs so coding agents can inspect attack surfaces without reading thousands of functions manually.

What is required to run Treasure Map?

You need an unpacked firmware image and the Ghidra toolchain configured via tmap init.

Similar MCP servers

All MCP servers for Security →

Project sponsors

Companies that keep this analytics open