TraceForge
OfficialSupports inspecting WebAssembly binaries, including inventory of sections, imports, and exports.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TraceForge is a small, read-only toolkit for inspecting native binaries and keeping the result as verifiable Evidence. It does not execute the target, does not upload data, and does not require a cloud service.
What this does in 30 seconds
TraceForge reads a binary or an application bundle — it never runs it — writes a verifiable Evidence record to disk, and renders that record as one standalone HTML report you can open in any browser.
git clone https://github.com/Mutersec/traceforge.git
cd traceforge
npm ci
npm run build
node dist/cli.js scan /bin/ls # identify a native binary
node dist/cli.js report /bin/ls --out report.html # render it as one HTML report
open report.html # the evidence, offline, in a browserEvery report carries a content-addressed evidence_id. The HTML alone is not
verifiable by someone else: verification recomputes the identity from the stored
record, so hand over the record too — evidence export writes a portable
bundle and evidence import authenticates it (evidence verify <id> answers
invalid or missing when the record is absent). A signature closes the gap
without moving the whole store: evidence sign <id> plus evidence verify <id> --public-key <file>. No network, no account, no execution of the target.
A plain-Turkish, jargon-free guide to reading a report — what each line proves and what it does not — lives in docs/turkish-guide.md.
$ tforge scan /bin/ls
TraceForge · scan
path /bin/ls
sha256 13f44bfe1c4af602da4465c834dbe7b16a5441ccbd843178b36116ee23422bfb
size 252,512 bytes
format mach-o
Slices
x86_64 64-bit little executable
12 sections · 91 imports · 1 exports · 3 libraries
nx · undetermined: pie
arm64e 64-bit little executable
11 sections · 90 imports · 1 exports · 3 libraries
chained-fixups, nx · undetermined: pie
arm64_subtype_12 64-bit little executable
11 sections · 90 imports · 1 exports · 3 libraries
chained-fixups, nx · undetermined: pie
Evidence ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e (scan)Every console block in this README is real output, captured on an Apple
Silicon MacBook (darwin/arm64, Node v24.20.0). The two blocks that read
/tmp/traceforge-gallery targets reproduce byte for byte on any machine
(node scripts/gallery.mjs builds those targets); the rest were captured on
2026-11-02 on the 0.3.0 build and belong to this host. The Mach-O output was
cross-checked against otool.
Related MCP server: Flameox
Why TraceForge
Read-only by construction. Analysis never launches the target.
Evidence, not screenshots. Every result has a content-addressed
evidence_id, a SHA-256 input identity, limitations, and a local JSON record.Mitigations and provenance, decoded. Each slice states which structural protections are present, absent or undetermined, plus the build claims the container makes about itself.
Deterministic records. Stable JSON canonicalization means the same input and result produce the same identity.
Agent-native. A dependency-free MCP stdio server exposes the same core.
Zero telemetry. No network calls, no accounts, no background service.
Small dependency surface. Runtime code uses Node built-ins only.
Install
git clone https://github.com/Mutersec/traceforge.git
cd traceforge
npm ci
npm run build
npm link # optional: exposes `tforge` and `traceforge`Or run without linking:
node dist/cli.js scan /bin/lsCommands
Command | Purpose |
| Identify format, hashes, slices and collection counts. |
| Full section, import, export and library inventory. Use |
| Recursively inventory an |
| Compare two binaries by identity, sections, symbols and mitigation changes. |
| List local Evidence summaries. |
| Read one authenticated record. |
| Recompute and verify a record. With |
| Verify every local record, and count signed vs unsigned. |
| Create an Ed25519 signing key pair in |
| Write a detached signature sidecar for one record. |
| Export a deterministic bundle. |
| Authenticate and merge a bundle. |
| Write a standalone HTML Evidence report. |
| Start the MCP stdio server. |
Common flags: --json, --store <dir>, --no-save, --debug. For
agent-sized answers: --only <fields>, --limit <n>, --cursor <offset>.
Use --out report.html with report; npm run demo runs the whole showcase.
Evidence is written to .traceforge/evidence by default. Use --no-save for a
one-shot inspection.
Signing
$ tforge evidence keygen
TraceForge · Ed25519 key
fingerprint pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4
private key ./.traceforge/keys/pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4.pem
public key ./.traceforge/keys/pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4.pub.pem
Keep the private key offline. Anyone who holds it can sign records as you; share only the public key.
$ tforge evidence sign ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e
evidence ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e
key pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4
signature ./.traceforge/signatures/ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e.sig.json
$ tforge evidence verify ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e --public-key .traceforge/keys/pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4.pub.pem
signed · verified by pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4After that, the record was rewritten (one byte of input.size changed in the
JSON under .traceforge/evidence) and re-verified:
$ tforge evidence verify ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e --public-key .traceforge/keys/pk_786bbd87c43f5f088dafb5f9ab7ed0b6765b5a11bf60fbaea819da88714205a4.pub.pem
error [signature_mismatch]: The record changed after it was signed (record hash differs).
$ echo $?
1(The tamper step was run in a throwaway --store copy so the shipped store
stayed at 0 invalid; the CLI output above is verbatim.)
A detached Ed25519 sidecar binds one key to one record and proves the record
bytes have not changed since it was signed. Signatures use Node's own crypto;
there are still zero runtime dependencies. The signed message is the ASCII
prefix traceforge.signature.v1\n plus the SHA-256 of the record's canonical
JSON — deterministic, no timestamp, nothing random. If you change the record,
verify fails with The record changed after it was signed. Keys and
sidecars live under .traceforge/, which git ignores, and are written 0600.
What a signature does not prove — no time, no revocation, no origin, and an
embedded key is only self-reported — is spelled out in
docs/signing.md.
Inspecting a whole application
$ node dist/cli.js app /tmp/traceforge-gallery/DemoApp.app
TraceForge · app · app
path /tmp/traceforge-gallery/DemoApp.app
layout macos
members 18 files · 21 dirs · 5 links · 5.1 KiB
tree 1acdc995fc0b75edeb3ae4c6c5f01e4c2a40a3b3fe495aec186506ef6c5dd6fd
kinds code 6 · link 5 · manifest 11 · resource 1
architectures arm64 6
Manifest Contents/Info.plist · xml · 8 keys
sha256 aa9b64bc08d7f304b81f9509b554c787940b3cf62af2893907c77e3248652218
CFBundleIdentifier com.example.demo.app
CFBundleName DemoApp
CFBundleExecutable DemoApp
CFBundleShortVersionString 2.0.0
CFBundleVersion 200
CFBundlePackageType APPL
LSMinimumSystemVersion 12.0
NSHumanReadableCopyright Copyright 2026 Example Labs. Synthetic demo data.
PkgInfo signature=APPL os_type=????
Declared executable Contents/MacOS/DemoApp present
Largest code members 6 mach-o · 0 wasm · 0 elf · 0 pe
Contents/Frameworks/DemoFramework.framework/Versions/A/DemoFramework 136 B mach-o arm64
Contents/Frameworks/DemoFramework.framework/Versions/A/Updater.app/Contents/MacOS/Updater 136 B mach-o arm64
Contents/Frameworks/DemoFramework.framework/Versions/A/XPCServices/Downloader.xpc/Contents/MacOS/Downloader 136 B mach-o arm64
Contents/Frameworks/DemoFramework.framework/Versions/A/XPCServices/Installer.xpc/Contents/MacOS/Installer 136 B mach-o arm64
Contents/MacOS/DemoApp 136 B mach-o arm64
Contents/Resources/DemoUI.bundle/Contents/MacOS/DemoUI 136 B mach-o arm64
Nested packages 5
Contents/Frameworks/DemoFramework.framework
framework com.example.demo.framework
Contents/Frameworks/DemoFramework.framework/Versions/A/Updater.app
app com.example.demo.updater
Contents/Frameworks/DemoFramework.framework/Versions/A/XPCServices/Downloader.xpc
xpc-service com.example.demo.downloader
Contents/Frameworks/DemoFramework.framework/Versions/A/XPCServices/Installer.xpc
xpc-service com.example.demo.installer
Contents/Resources/DemoUI.bundle
bundle com.example.demo.ui
Limitations
- A package inventory hashes each inventoried member; it does not open archives, parse code signatures, or establish where any member came from.
- Manifest values are self-reported by the target; none were checked against a signature, notarization ticket or entitlements.
- Symbolic links were recorded with their target text but were never followed, opened or hashed.
- The tree fingerprint is computed over relative member paths, sizes and hashes, so it does not depend on where the package is mounted.
Evidence ev_4ad427e3ed0d1029153bd4d19e8d4407f283aacbede5a533e00f0f5221224e9a (app)The /tmp/traceforge-gallery/DemoApp.app target above is one of the synthetic
demo packages scripts/gallery.mjs builds (see
Evidence gallery); run that script once and this exact
command reproduces this exact output on any machine. Point the same app
command at any real .app or .framework directory you own.
Every member of the package gets its own SHA-256, size and format label; the
tree line is a fingerprint over those member identities, so a directory has an
input identity even though it is not one file. The bundle manifest is recorded
as declared identity — CFBundleIdentifier, versions, minimum system — and
the record states that none of it was checked against a signature or a
notarization ticket. Archives (.asar, .car, .zip) are counted and hashed
but not opened, symbolic links are written down but never followed, and the walk
stops at 5,000 members or depth 32 and says so in limitations instead of
failing. tforge report SomeApp.app renders the same record as HTML.
Evidence report
$ tforge report /bin/ls --out traceforge-report.html
TraceForge report → ./traceforge-report.html
Evidence ev_4395c41a8d44a30761004a29fa7cbeefe77330f9bf1e74587a01b8c632729d76The report is a standalone HTML file (27,918 bytes for /bin/ls): identity
badge, input hash, sections, imports/exports and limitations. It is generated
from the same authenticated record and contains no external scripts. Wide
member/section tables sit in a horizontally scrollable .table-wrap, and long
paths and hashes use overflow-wrap: anywhere, so a 177-character member path
or the 64-hex Evidence ID in the footer never breaks the layout on a phone or a
narrow window.
One limit worth stating plainly: the HTML itself is not tamper-evident. It
carries no script and does not embed the full canonical record, so verification
reads the stored record, not the page. Send the record (evidence export) or a
signature (evidence sign) alongside the report if the recipient must be able
to detect an edit. Measured on this machine: editing a committed gallery report
changed nothing for evidence verify, which still reported valid.

See docs/demo.md for a three-minute non-technical and technical demo script, and the Evidence gallery for four reports of script-built demo packages.
Evidence gallery
Four standalone HTML reports, written by tforge report against four synthetic
demo packages that scripts/gallery.mjs builds itself under one fixed,
username-free path (/tmp/traceforge-gallery), then committed unchanged. Every
machine that runs the script regenerates the same bytes and the same Evidence
IDs — no application needs to be installed for the gallery to be reproducible.
Open any file in a browser: it fetches nothing and runs nothing.
Report | Path | What it proves |
DemoApp | An app that contains other apps: 5 nested packages, including a framework version tree whose | |
HeavyKit | A 8,388,608-byte (8.00 MiB) member hashed in one pass, with the | |
WideApp | The walk hitting its 5,000-member cap on a 5,007-file tree and writing the stop into | |
Demo İstemci | A symlinked bundle root with a non-ASCII ( |
Each also exists under site/gallery/ for the live site. The four Evidence IDs
and exact byte sizes are pinned in
examples/README.md. Regenerate the whole set — fixtures
included — with one command:
node scripts/gallery.mjs # builds /tmp/traceforge-gallery, writes examples/gallery + site/gallery
node scripts/gallery.mjs --check # fresh run in a temp dir, byte-compared, keeps the repository cleanBudget: one report ≤ 700 KiB, gallery total ≤ 2 MiB. On this bump the four
reports are 15,206 / 9,997 / 64,092 / 12,280 B (101,575 B total), each well
under the cap.
Determinism
The evidence_id is a SHA-256 over the canonical JSON of the record, and that
record includes the tool version. Two facts follow, and both are real:
Same command, same input, same version → same ID. Running
tforge scan /bin/ls --no-savetwice on 2026-11-02 produced the identical ID both times:ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e (scan 1) ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e (scan 2)Same file, different tool version → different ID. Bumping
VERSIONfrom0.2.0to0.3.0changed the ID for the exact same/bin/lsbytes, becausetool.versionis part of the hashed content. This is not a hash change in the file — the input SHA-256 (13f44bfe…22bfb) is identical — it is the version label moving the identity, on purpose:0.2.0: ev_4881c15a0c4ae521f75e89d77d9abaca2cb5b6f68f32ce74cd005e58beb15e2a 0.3.0: ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0eThese IDs belong to this host's
/bin/ls. Another machine ships a different/bin/ls, so it produces a different ID — on GitHub's macOS runner the same command yieldsev_406547ca6a1a583e8abf56fac45ebaf018f2d5d824e9fe1ba72848e13a5531d5. What holds on every host is the self-consistency above, so no test pins a host-specific ID.⚠ When you bump the version, every example ID in this README, in
docs/, in the CHANGELOG, and in the gallery must be regenerated after the bump — an old ID will not reproduce on the new build. The gallery script rebuilds its own synthetic targets and re-runs the CLI, so it always emits current-version IDs — and, because the targets are generated from fixed bytes at a fixed username-free path, the same IDs on every machine.
MCP
Add TraceForge to any MCP client:
{
"mcpServers": {
"traceforge": {
"command": "node",
"args": ["/absolute/path/to/traceforge/dist/cli.js", "mcp"],
"env": {
"NO_COLOR": "1"
}
}
}
}Tools:
scan_binaryinspect_binaryinspect_packagecompare_binariesget_evidencelist_evidence
The protocol is newline-delimited JSON-RPC 2.0 over stdio. See docs/mcp.md.
Agent ergonomics
One answer per big binary or package should never balloon into MiB of JSON.
--onlykeeps just what you asked for.inspectacceptssections, imports, exports, libraries, provenance, security;appacceptsfiles, manifest, nested, limitations. Unselected fields are removed from the answer and named inomitted; a stored record always stays complete.--limit <1-500>with--cursor <offset>pages member and symbol lists in--jsonand MCP answers. Followpage.next_cursoruntil it isnull.MCP caps one tool answer at 256 KiB of text: an oversized
detail=completedegrades to summary withtruncated: trueand a hint instead of a MiB blob.MCP resources:
traceforge://evidence,traceforge://evidence/{evidence_id}andtraceforge://store— counts and state only, key files are never read.
$ node dist/cli.js app /tmp/traceforge-gallery/WideApp.app --json --only files --limit 2
{
"evidence_id": "ev_b204eb46a39655c8927ee52cff2b2a0349500584746f8e902b43bee9b9f26b91",
"detail": "complete",
"page": {
"limit": 2,
"returned": 2,
"next_cursor": "2",
"total": 5000
},
"inventory": {
"schema": "traceforge.app.inventory.v1",
"path": "/tmp/traceforge-gallery/WideApp.app",
"kind": "app",
"layout": "macos",
"tree_sha256": "8d8ea26886f78d8499e41a2512d517f513cebb9c01f3d127ed52370810bca926",
"total_bytes": 145770,
"counts": {
"files": 5000,
"directories": 4,
"links": 0,
"special": 0,
"unreadable": 0,
"executable": 1,
"total_bytes": 145770,
"hashed_bytes": 145770,
"by_kind": {
"code": 1,
"manifest": 2,
"other": 4997
},
"by_format": {
"mach-o": 1,
"unknown": 4999
},
"architectures": {
"arm64": 1
}
},
"files": [
{
"path": "Contents/Info.plist",
"size": 713,
"sha256": "a4b2985e0def718e194b769c7a719b2e7c66bbdf05ef9bc34b8f9397b7b4956e",
"kind": "manifest",
"format": "unknown",
"executable": false,
"architectures": [],
"file_types": [],
"link_target": null
},
{
"path": "Contents/MacOS/WideApp",
"size": 136,
"sha256": "fe00877c17b9aed6506f988790893f1ddf34e1470130cd6c2b2a71ffb3da2ca1",
"kind": "code",
"format": "mach-o",
"executable": true,
"architectures": [
"arm64"
],
"file_types": [
"executable"
],
"link_target": null
}
]
},
"omitted": [
"manifest",
"nested",
"limitations"
]
}Paging is a transport convenience, not an evidence boundary.
Supported formats
Format | Inventory |
Mach-O / universal | slices, sections, symbols, dylibs, UUID, entrypoint, mitigations, build-version claims |
ELF32 / ELF64 | sections, symbols, |
PE32 / PE32+ | sections, imports, exports, RVA entrypoint, |
WebAssembly | sections, imports, exports |
| recursive member inventory, per-member SHA-256 and format, declared bundle manifest, nested packages |
Property list (XML, binary, JSON) | manifest keys and scalar claims, as declared identity |
Unknown | input identity and a declared limitation |
Every mitigation name is a structural claim from container headers, never an observation of runtime enforcement, and each decision rule is documented in docs/parsers.md.
TraceForge is an inspector, not a disassembler. It does not reconstruct code or execute targets. Stripped binaries may expose fewer symbols. Parser limits and coverage are documented in docs/parsers.md.
Architecture
flowchart LR
A[CLI] --> O[Operations]
M[MCP stdio] --> O
O --> P[Format parsers]
O --> E[Evidence store]
P --> M1[Mach-O]
P --> E1[ELF]
P --> P1[PE]
P --> W1[WASM]
E --> S[(.traceforge/evidence)]The parsers own byte interpretation. Operations compose input identity, result and limitations into one record. The store owns durability and authentication; adapters never re-interpret parser facts.
Safety
Targets are opened read-only.
Files larger than 512 MiB are rejected before parsing.
Section hashing is capped at 64 MiB per section.
A package walk stops at 5,000 members, depth 32 and 64 nested packages, and records the stop as a limitation instead of failing; members are labelled from a 64 KiB header window, and manifests from a 4 MiB read.
Symbolic links are recorded with their target text but never followed or opened; pipes and sockets are skipped so a read can never block.
Archives (
.asar,.car,.zip) are counted and hashed but never opened — the record states that their contents were not inspected, and no file inside an.asaris ever listed.Bounds, counts and string lengths are checked before allocation.
Evidence is written atomically with owner-only permissions.
Signing keys are written 0600 under the git-ignored
.traceforge/tree; the file mode is the only guard, so keep the private key offline.The tool does not execute, attach to, or modify targets.
What a signature does not prove (all of these, deliberately): no timestamp
or timestamping authority, so it cannot say when a record was signed; no key
revocation, so a compromised key keeps verifying; it is not a code signature and
says nothing about Apple codesign, notarization or Authenticode origin; and an
embedded key with no --public-key is only self-reported. See
docs/signing.md for the full model and
SECURITY.md for reporting. The delivered/open split for the
current release is in docs/roadmap.md.
Development
npm ci
npm run typecheck
npm test
npm run build
npm run check # typecheck + tests + build
# the same gates CI runs, locally
BENCH_ITERATIONS=25 npm run bench --silent | node scripts/bench-gate.mjs
npm pack --dry-run --json | node scripts/package-audit.mjs
npm publish --dry-run # offline: packs, runs prepublishOnly, publishes nothingTests cover synthetic ELF/PE/WASM fixtures, synthetic bundle trees with XML and
binary property lists, parser limits, Evidence integrity, Ed25519 signing and
tamper detection, bundle round-trips, MCP protocol and a real macOS Mach-O and
a real installed bundle when run on Darwin. CI runs the matrix
ubuntu-latest × macos-latest on Node 22 and 24 (fail-fast off): npm run check, a live smoke set (synthetic package through app --no-save, then
scan/inspect --only/diff/report on the runner's own /bin/ls, an MCP
stdio session asserting the six tool names in order and the 256 KiB answer
ceiling, and the full keygen → sign → verify lifecycle in a throwaway store
whose keys are deleted at job end and never uploaded), the benchmark smoke
ceiling above, and the package gates. Platform guards matter for reading CI:
the real Mach-O, real-bundle, live-CLI-signing and live-paging test bodies
early-return on Linux (they run on the macOS leg), and the real-ELF test
early-returns on macOS (it runs on the Ubuntu leg) — so four red-free legs do
not mean the same test bodies ran on each. scan /bin/ls on this machine must
still hash to ev_72e61605858e30e40a66f858b0ca1d3e74c934cb39f6acced07abf9226dd6b0e
(the pinned value tracks VERSION, so it moves with every version bump — see
Determinism);
CI instead proves determinism by scanning the runner's own /bin/ls twice and
comparing ids, because runner binaries differ per image.
Performance
Measured on an Apple Silicon arm64 host with Node 24.20.0, 25 iterations over a
252,512-byte universal Mach-O (/bin/ls), on 2026-11-02:
Operation | Median | p95 | CPU median |
| 0.47 ms | 0.59 ms | 1.04 ms |
Reproduce with npm run bench -- /bin/ls (it rebuilds first). The benchmark is
local and parser-only; it does not execute the target or use a network. These
numbers are a starting point, not a cross-tool comparison. CI runs the benchmark
too, but its gate is a wide smoke ceiling (median ≤ 10 ms, p95 ≤ 25 ms on 25
iterations), not a regression comparison: shared-runner noise makes one CI
sample unfit to catch a real slowdown, and no cross-run baseline artifact is
retained to compare against yet. See bench/README.md.
License
MIT © 2026 Mutersec.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only release evidence for coding agents: findings, deliveries, source and runtime data.
Read-only verifier for 25 ProofRelay MCP tools and non-confidential evidence bundles.
Read-only agent identity index with provenance, historical evidence and explained coverage.
A read-only verified record of agent-operable GTM tools: search, fetch, compare, track changes.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables coding agents to query, compare, and audit local profiler traces, benchmarks, memory captures, and execution evidence without uploading code or data, using CLI and MCP interfaces.11181 PyPI245MIT
- FlicenseNot gradedqualityAmaintenanceEnables coding agents to collect bounded local runtime evidence by coordinating profilers, benchmark tools, trace processors, and direct targets, then inspect and preserve artifacts for tracing, profiling, and hotspot analysis.-
- FlicenseNot gradedqualityAmaintenanceEnables coding agents to coordinate profilers, benchmark tools, trace processors, and direct local targets to capture bounded runtime evidence, analyze artifacts, and inspect preserved evidence with provenance, coverage, and limitations.-
- FlicenseNot gradedqualityAmaintenanceEnables coding agents to coordinate local profilers, benchmark tools, trace processors, and direct command or artifact targets to produce bounded, typed runtime evidence about application, native, and GPU-kernel hotspots, including coverage, provenance, and limitations. It also supports optional durable preservation of native bytes and canonical evidence bundles by hash for later inspection and replay.-