Show HN: Treasure Map – Ghidra-based firmware map of call sites and patch diffs ...
Show HN @show
Show HN: Treasure Map – Ghidra-based firmware map of call sites and patch diffs tmap.tools · 2 points · 0 comments · HN thread
TL;DR Treasure Map is a developer-preview tool, posted as a Show HN, that runs Ghidra-based static analysis over unpacked firmware and exposes dangerous call sites and function-level patch diffs to AI agents through MCP. The agent supplies the judgment while the tool records facts such as argument source, controllability and reachability, marking anything undetermined as unknown. The Show HN post has 2 points and no comments.
- Maps dangerous call sites (command execution, memory copy, format string, file path) with six readings each: argument source, controllability, writer, reachability, filtering, and whether the function was fully analyzed.
- Unknown readings are explicit and never sort a candidate down; re-sorting changes order but not the set of candidates.
- tmap diff produces a function-level patch diff between two firmware versions using Ghidra, BinExport and BinDiff, and groups changes by what happened around dangerous call sites.
- Adds address-normalized pseudocode comparison to catch changed length constants that a similarity score such as BinDiff's 1.0 would miss.
- Tracks which binaries were read and judged so that 'nothing found' is not confused with 'never read'; state carries across sessions.
- Installs via a curl script with pinned, checksum-verified sources; supports Linux x86_64 and WSL2 and Apple Silicon macOS, with native Windows unsupported. Scope is defensive auditing, and the tool does not generate exploits.
Discussion No comments have been posted yet, so there is no discussion to summarize and no mood to report.
#firmware #reverseEngineering #Ghidra #MCP #vulnerabilityResearch #staticAnalysis