HexWitness

io.github.siaginw由 GitHub 帳號 siaginw 發布v1.0.1更新於 Oct 24, 2026

Durable, build-scoped reverse-engineering evidence memory and query tools for AI agents.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,為逆向工程代理提供依建置版本劃分的持久證據記憶,可查詢並引用,免去每次對話重新探索。

可以做什麼
跨建置版本查詢已保留的證據,涵蓋函式、類別、欄位、虛擬表、呼叫、交叉參照、路徑、資料流與執行期擷取,並讀取對象的完整證據檔案。呈現來源、信心度、矛盾、涵蓋範圍與缺失證據缺口,並執行具清單與可搜尋失敗紀錄的持久調查。比較執行期擷取,並將有界線的即時發現提升進證據圖。透過一個明確工具執行白名單內的本機逆向工具,僅接受參數、限定工作目錄、限時並限制輸出。使用內建提示完成調查、執行期比較、發現提升與對抗式證據審查。
適用情境
適用於二進位變更導致位址漂移、多個代理或分析師共享逆向工作、靜態分析需與執行期行為對齊,或結論需要可重現證據鏈並跨工作階段延續的情境。
執行需求
以本機 stdio 程序在使用者機器上執行(僅桌面端)。需要 Git 與 Node.js 22.13 或更新版本,透過 npm 套件 hexwitness 安裝。安裝精靈會為支援的用戶端寫入 MCP 連線;未宣告 API 金鑰或環境變數。
安裝前請注意
本機工具執行器會在你的機器上執行白名單命令,且明確不是作業系統沙箱。匯入私有二進位、反編譯文字與擷取會把敏感資料寫入本機 SQLite 儲存,請先閱讀隱私與安全說明。守護程序非本機綁定需要 API 權杖與可信 TLS。工具輸出在提升前僅為觀察紀錄。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 HexWitness,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[CI] [Apache-2.0 license] [Node 22.13 or newer] [MCP enabled] [npm version]

Give your reverse-engineering agent a memory, a map, and receipts.
HexWitness turns static analysis, runtime captures, and human conclusions into one durable evidence graph.

Quick start · Why it matters · Examples · Docs · How it compares


Yesterday, your agent found the parser, mapped its callers, and proved which runtime event reached it. Today, a new chat opens and asks the live disassembler to discover everything again.

HexWitness stops that loop.

mermaid
flowchart LR  V["Binary Ninja · IDA · Ghidra"] --> X["Reviewed evidence"]  R["Frida · debugger · wire observer"] --> C["Sealed capture"]  C --> X  X --> E[("HexWitness memory")]  E --> A["Your AI agent"]  A --> Q["Answer with proof"]  A -.->|one named gap| V

The live viewer remains the agent's eyes. HexWitness becomes its case file: tied to an exact build, searchable across tools, honest about conflicts, and ready for the next agent.

See it work in 60 seconds

Requirements: Git and Node.js 22.13 or newer.

bash
npm install --global hexwitnesshexwitness setuphexwitness demo

The setup wizard connects HexWitness to Codex, Claude Code, Cursor, VS Code/Copilot, Claude Desktop, or generic MCP clients. It also installs guidance written for that agent. The MCP entry starts the local read-only daemon when needed, so there is no service choreography.

Now ask:

text
Use HexWitness to explain 0x401120 in build toy-v1.Show proof, contradictions, and missing evidence separately.

The demo uses synthetic, redistributable evidence. No third-party binary data ships with HexWitness.

Prefer a checkout?

bash
git clone https://github.com/siaginw/HexWitness.gitcd HexWitnessnpm installnpm run demonpm run setup -- --client codex --viewer none --yesnpm run doctor

Replace codex with claude-code, cursor, copilot, or generic as needed. The setup command resolves the checkout's absolute local runtime path, installs guidance tailored to the selected agent, and writes the MCP connection without requiring a global install. Restart the selected AI client after setup, then ask it to call hexwitness_health and hexwitness_contract. Both must succeed before using private evidence.

[!IMPORTANT] The checked-in .mcp.json.example assumes npm install --global hexwitness. From a source checkout, run npm run setup instead of copying that example; setup records the correct local Node.js and bundled-runtime paths.

HexWitness installs as one command. The service, MCP transport, installer, capture pipeline, and adapter catalog live behind that command:

bash
hexwitness agent                 # daemon autostart + MCP for AI clientshexwitness serve                 # REST daemon onlyhexwitness adapters              # list every included viewer/runtime adapterhexwitness adapters binary-ninja # print one adapter's exact path and capabilitieshexwitness contract              # inspect the stable 1.x public contracthexwitness backup ./evidence.db  # create and verify a consistent snapshot

Official MCP Registry identity: io.github.siaginw/hexwitness. Registry-aware clients discover the same local stdio server published through npm; its declared launch contract is hexwitness agent.

The npm package ships one bundled runtime instead of exposing its internal module tree. Python remains only in the thin Binary Ninja, IDA, and Ghidra exporters because those products expose their supported automation APIs through Python. Large JSONL exports and long captures are streamed through atomic ingest and disk-backed normalization instead of being loaded wholesale into memory.

Why HexWitness feels different

Most RE integrations solve access: let an agent read a decompiler, debugger, or trace. HexWitness solves continuity: keep the useful result after that tool, build, or chat is gone.

ApproachExcellent forThe gap HexWitness fills
Viewer MCPLive decompilation, xrefs, renames, analysis controlFindings are session-scoped unless promoted
Notes and reportsHuman narrativeHard to query, compare, or trace back to exact evidence
General agent memoryPreferences and broad project contextNo dedicated build, address, call-graph, capture, or provenance contract
HexWitnessDurable RE evidence and runtime reconstructionPairs with viewers instead of replacing them

That makes HexWitness especially useful when:

  • the binary changes and addresses move;
  • several agents or analysts share work;
  • static code must line up with runtime behavior;
  • a conclusion needs a reproducible chain of evidence;
  • a failed capture must be compared with a working one;
  • “we think” needs to become “we proved.”

Read the honest category comparison in Why HexWitness.

Ask real questions

Users ask about the target. The agent chooses the tools.

text
Which function validates frame length before dispatch?Reuse retained evidence first. Inspect a live viewer only if one exact edge is missing.
text
Compare the working and failing login captures.Find the first meaningful divergence, then resolve its static consumer.
text
Where is this UUID used, which class owns it, and did its field offset changebetween builds?

HexWitness gives agents first-class queries for builds, functions, classes, UUIDs, types, fields, vtables, calls, xrefs, paths, dataflow, captures, contradictions, coverage, evidence gaps, durable investigations, failed attempts, challenges, and discovery-only retrieval. Four MCP prompts package investigation, runtime comparison, live-finding promotion, and adversarial evidence-review workflows.

One investigation loop

  1. Remember. Query retained evidence before touching a live tool.
  2. Pin. Select the exact artifact build; never carry an address across builds by habit.
  3. Resolve. Search the subject, then read its full evidence dossier.
  4. Narrow. Traverse only the calls, fields, slices, or capture window needed.
  5. Challenge. Surface provenance, confidence, and contradictory claims.
  6. Escalate. If proof ends, name the smallest missing live observation.
  7. Promote. Export that bounded result so the next investigation starts smarter.

For longer work, deterministic playbooks seed persistent checklists and operation budgets. Failed methods stay searchable. An evidence challenge surfaces opposition, unsupported claims, and open gaps without allowing agent consensus to inflate confidence.

Agents can also run allowlisted local RE utilities through one explicit MCP tool: argv-only, cwd-rooted, timed, output-capped, and receipt-producing. It is not an OS sandbox. Tool output remains an observation until promoted through the evidence model. No environment enable switch or separate model-provider key is required. See Investigation workbench.

The database remembers evidence. A separate privacy-safe activity store remembers operation hashes, timing, status, and counts—never prompts, arguments, or returned evidence.

Runtime capture without command soup

Collectors place conventional files and a small manifest in one private folder:

text
roundtrip/├── capture.json├── wire.jsonl├── hooks.jsonl├── screen.mp4└── context.json

Then:

bash
hexwitness capture ./private/roundtrip

HexWitness checks the required roles and action markers, copies artifacts into an isolated private pack, normalizes a safe timeline by removing secret fields and replacing payloads with length plus SHA-256, seals checksums, verifies integrity, and imports the evidence. Missing or empty baseline artifacts fail closed. A failed normalization leaves the source pack recoverable.

See Capture packs for collector and scenario contracts.

Works with your stack

ToolDurable bridge
Binary NinjaDeep JSONL exporter plus optional official Binary Ninja MCP live viewer
IDA / IDAPythonFunctions, strings, imports, references, blocks, and optional Hex-Rays pseudocode plus live MCP
GhidraFunctions, strings, imports, references, blocks, types, fields, and enum exporter
Frida 17Narrow semantic-event observer and fail-closed JSONL normalizer
Other toolsVersioned adapter manifest and vendor-neutral JSONL schema

HexWitness does not ship a weaker disassembler inside the project. Viewer MCPs provide live eyes. Exporters turn reviewed findings into portable memory. Read Viewer MCP bridges and the Adapter SDK.

One truth, three interfaces

InterfaceBest use
MCPAgent-led investigations, read-only evidence tools, and one explicitly open-world local-tool runner
CLIImport, capture lifecycle, automation, recovery, and direct queries
RESTLocal read-only integration with a published route manifest

All three read the same SQLite evidence graph. Imports are transactional and idempotent. Addresses remain canonical hexadecimal strings, including unsigned 64-bit values.

Evidence, not vibes

  • Build — exact artifact identity and analysis provenance.
  • Entity — function, type, class, field, vtable, runtime object, or project-defined object.
  • Edge — call, reference, ownership, inheritance, dataflow, or runtime relationship.
  • Evidence — an observation with source, time, classification, and confidence.
  • Claim — an interpretation linked to supporting or opposing evidence.
  • Capture — a sealed scenario with artifacts, markers, events, and checksums.
  • Gap — the next missing fact needed to prove a behavior.

Conflicting claims remain visible. Unknown behavior becomes a worklist, not a fabricated answer.

Private by default

text
raw private material  →  normalized project evidence  →  synthetic public fixtures
  • Daemon binds to localhost and serves GET-only queries, including a loopback-only dashboard.
  • Non-local binding requires an API token and still needs trusted TLS transport.
  • Executable bytes and decompiler text are not exported by default.
  • Capture normalization recursively removes common secret and payload fields.
  • Public-release audit blocks credentials, captures, dumps, proprietary binary formats, large embedded payloads, and personal paths.

Read Privacy and Security before importing sensitive work.

Documentation

Start hereWhat it answers
Getting startedCan I prove the full local loop?
Why HexWitnessWhy not just use notes, a viewer MCP, or generic memory?
AI setup wizardWhat gets installed for each agent?
AI-first workflowsWhat should I ask the agent?
Capability matrixWhat is complete, variable, or intentionally out of scope?
Quality contractWhich claims are machine-checked?
Stability policyWhat remains compatible throughout 1.x?
CompatibilityWhich runtimes and viewer boundaries are supported?
Release readinessWhat does the 1.0 claim include?
CLI, REST, MCPWhat interfaces are available?
ArchitectureHow do the pieces fit?
TroubleshootingWhat failed and how do I prove it?

Project status

HexWitness 1.0 is a stable public developer release. Automated gates cover schema migration, importer, evidence graph, query engine, capture lifecycle, unified CLI, bundled distribution, read-only daemon, concurrent query behavior, MCP server, setup wizard, tailored agent skills, privacy audit, packaging, installed upgrade, and the CLI → DB → daemon → MCP journey. The exact trust boundary is documented in Release readiness.

Commercial viewer APIs still vary by edition and release. HexWitness documents that boundary instead of claiming universal compatibility. See Quality for the exact tested surface.

Contributing

Focused issues and pull requests welcome. Read Contributing. Never attach proprietary binaries, vendor databases, credentials, or captures you cannot redistribute.

Apache-2.0. Analyzed binaries, imported evidence, vendor SDKs, and RE databases retain their own terms.

Built and maintained by SiagiNW.
Make every byte testify.

來源:README.md,提交 5eb5f87

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。