TraceWeaver.
An evidence-first reverse-engineering research system connecting runtime observations to static-code locations.
authorized binaryFrida
bounded capturetw-ingest
validation
inspect / replay / exportGhidra
verified static mapping
Overview
I’m building TraceWeaver to connect what happens while a program runs with what I can inspect in a reverse-engineering tool. The aim is to make runtime evidence easier to collect, revisit, and use without reading more into it than it actually shows.
It’s still a research project. The focus is on keeping the evidence useful and the workflow repeatable, rather than presenting it as a finished tool for every target.
Problem and constraints
A runtime address on its own doesn’t tell me enough. I need to know which module it belongs to and where it sits relative to that module before I can use it in static analysis.
There’s also a difference between observing an event and explaining why it happened. TraceWeaver keeps the captured data separate from an analyst’s findings and hypotheses, so those two things don’t quietly become the same thing.
Architecture
The diagram above follows the evidence through the system:
- Frida observes an authorized target and collects events within defined capture bounds.
tw-ingestchecks the collector data before it enters the core trace format.tw-coreholds the evidence independently of the tool that collected it.- The CLI supports inspection, replay, correlation, and export.
- The Ghidra importer checks module identity before adding annotations.
That last check matters. An address that looks plausible isn’t enough reason to attach evidence to a binary.
Approach
I’ve kept a few rules at the center of the design:
- Keep observations separate from conclusions. Captured events, relationships, findings, and hypotheses have different roles.
- Check the module before mapping an address. SHA-256 identity and relative virtual addresses support that check.
- Make captures replayable. Append-only JSONL bundles include manifests, diagnostics, and capture bounds, so analysis can work from an existing trace.
- Keep integrations replaceable. The core evidence model doesn’t depend on Frida or Ghidra.
Implementation
The main workspace is written in Rust, with separate parts for the core types, ingestion, and CLI. A Python transport bridge connects Frida collection to the ingestion layer.
Once a trace bundle exists, analysis can use it without running the target again. That makes the saved evidence part of the workflow, rather than something that disappears when a live session ends.
Results and validation
The project’s documented validation includes controlled benign fixtures, portable regression tests, live WSL captures, and isolated Windows fixture runs. It also records analyst acceptance in a specific Ghidra/WSL setup.
Those checks describe the environments and cases covered so far. They aren’t a claim that every target or platform is supported, and this write-up doesn’t represent a separate reproduction of all those tests.
Challenges
The difficult part is keeping the links between evidence trustworthy. Module identity, address mapping, and capture bounds all affect what a trace can support. A useful annotation needs those checks behind it; a neat-looking connection on its own isn’t enough.
Limitations
Coverage is still limited to the documented profiles and fixtures. Matching a selected call’s entry and return doesn’t prove a wider chain of cause and effect.
Broader API instrumentation, general memory provenance, and verified static call-chain resolution aren’t established capabilities. TraceWeaver also doesn’t decide whether behavior is malicious or write an analyst’s conclusions.
Packaging and licensing are still unresolved. There isn’t an approved public source or demo link to share here yet.