Reverse Engineering Browser
Every request
has a past.
A research build of Brave that records what a page really does. And the Mac app that lets you walk it back.
Start anywhere
Pick a request.
Any header, cookie or body field. This one carries a signature.
Recorded link
Find the script that sent it.
The engine saw this exact stack start the request.
Recorded link
Follow it into WebAssembly.
JavaScript crossed into the module through one exported function.
Shared identifiers
See what it read on the way.
A canvas readback in the same context. Correlated, and drawn dashed to say so.
Gap
Know where the trail ends.
No recorded link means a gap row, with its reason. No caller is guessed.
Time-adjacent only
And what just happened nearby.
Shown and labelled. Never counted as cause.
- network · request_startedSelected requestPOST shop.example.test/api/checkout/sign
- script · fetch call siteRecorded linkapp.4f1c.js:1:48211
- wasm · export sign → func[212]Recorded linkguard.wasm · sha256 a91e…07c4
- canvas · toDataURL readbackShared identifiers2D context · 220 × 30 · image retained
- Missing predecessor · no recorded linkGapTrace gap
- dynamic · generated scriptTime-adjacent onlyartifact 311 · created by app.4f1c.js
Nothing is injected into the page. The probes are compiled into the browser itself. Evidence moves one way, through bounded queues, to a store on your Mac. *The *browser *writes *the *recording. *The *app *only *reads *it.
How it works
Six steps. One direction.
Brave Browser Development records. Origin Trace reads. Nothing in between can reach back into the page.
Native probe
Off until a session turns it on. Allocation-free while inactive. Never blocks.
Bounded transport
Fixed memory. A full queue records a drop you can see.
Bridge
Carries session, frame, context and parent identifiers across.
Event broker
Validates, versions and correlates every record.
Evidence store
Append-only events and hashed artifacts on disk.
Origin Trace
Reads only. Never instruments a page.
Traffic
Every request. With its body.
Headers, cookies and up to 16 MiB of request and response, by tab and host.
Sources
Obfuscated in. Readable out.
Cleaned up locally and mapped range by range. The original bytes never change.
VM
The machine inside the machine.
Every dispatch the engine performed, beside the static analysis. Nested VMs too.
Fingerprinting
Watch the page look at you.
Canvas, WebGL, audio and five more families, down to the image it read back.
Flow
One selection. Four views.
Session graph, control flow, lineage and timeline, always in step.
| Name | Status | Type | Method | Time |
|---|---|---|---|---|
| shop.example.test/cart | 200 | Doc | GET | 212 ms |
| cdn.example.test/app.4f1c.js | 200 | JS | GET | 41 ms |
| cdn.example.test/guard.wasm | 200 | Wasm | GET | 63 ms |
| shop.example.test/api/checkout/sign | 200 | Fetch | POST | 84 ms |
| telemetry.example.test/v2/collect | 204 | Fetch | POST | 19 ms |
| live.example.test/socket | 101 | Socket | GET | 7 ms |
| cdn.example.test/inter.woff2 | 200 | Font | GET | 12 ms |
| cdn.example.test/hero.avif | 200 | Img | GET | 38 ms |
| shop.example.test/api/cart/items | 200 | Fetch | GET | 56 ms |
POST /api/checkout/sign · 412 bytes sha256 5be0…91aa { "cart": "c_81f2", "ts": 1764712800, "sig": "9f3c2a71…e1", "env": "eyJ3IjoxNDQwLCJoIjo5MDB9" }
// retained bytes, never edited var _0x3fa1=['\x63\x61\x6e\x76\x61\x73', '\x74\x6f\x44\x61\x74\x61\x55\x52\x4c']; (function(_0x1a,_0x2b){ var _0x4c=function(_0x5d){ while(--_0x5d){ _0x1a['push'](_0x1a['shift']());}}; _0x4c(++_0x2b); }(_0x3fa1,0x1a3)); var _0x9e=document['createElement'] (_0x3fa1[0x0]); var _0x7b=_0x9e[_0x3fa1[0x1]]();
// derived view, each range maps back const canvas = document.createElement("canvas"); const data = canvas.toDataURL(); // string table recovered: 2 entries // rotation helper removed: 1 // unresolved: 0 // nothing executed, nothing uploaded
| Source offset | Selector | Operation / handler | Evidence | Samples |
|---|---|---|---|---|
| 0x1a40 + 5 bytes | 0 | push_const (your name) | observed | 4,112 |
| 0x1a52 + 9 bytes | 7 | xor_rot (your name) | observed | 2,048 |
| 0x1a7c + 12 bytes | 12 | call_indirect · table 0 · slot 44 | observed | 96 |
| 0x1ab0 + 6 bytes | 19 | handler 19 | inferred | 31 |
| 0x1acc + 4 bytes | 23 | handler 23 | unknown | 0 |
| 0x1ad8 + 7 bytes | default | trap arm | unknown | 0 |
- fillRect
- fillText
- fillText
- toDataURL → 3.1 KiB retained
Flow graph
Every stack. One graph.
Request, navigation, async and cookie-write stacks, folded so each function is drawn once.
Request journey
Pick a request. Its stack lights up.
Everything off the path dims, and keeps its place.
Crossings
See every boundary it crossed.
JavaScript into Wasm, into eval, across frames. Written on the row and drawn in its own colour.
Basic-block graph
Open the function.
One Wasm function as its blocks. Taken is solid, false is dashed, table arms are dotted with their case numbers.
Trace value
Ask where a value came from.
Every source and every sink, through joins, memory and calls. No depth cap.
Quiet mode. On by default.
- DevTools endpoint
- CDP connection to the page
- Wrappers around page APIs
- debugger; traps
- Probes compiled into the browser.
Quiet mode removes debugger signals. It is not fingerprint spoofing, and a page can still tell that capture is on.
Evidence, not guesses
It shows you what it doesn't know.
Every link says how it is known. A missing link stays on screen as a missing link.
Observed
A recorded parent event. The engine saw one thing cause the next.
Shared identifiers
Same context, frame or request identity. Correlated, and labelled that way.
Time-adjacent
Close in time only. Never counted as a predecessor or as value flow.
Gap
No recorded link. The row stays with its reason. No caller is inferred.
And that's not all
Built for the hard parts.
The whole body.
Of request and of response, kept for every request, with headers and cookie lists. All of it stays on this Mac.
Fingerprint families.
No depth cap.
Trace one Wasm value backward and forward through joins, memory cells, decisions and calls. Complete, and paged.
Run it offline.
One captured Wasm function in a local interpreter, imports stubbed, under fuel, memory and deadline limits.
Diff two builds.
Match functions between captured modules even after renumbering: changed, added, removed, ambiguous.
Search requests, sources and VM findings from anywhere.
Cross-references. What points at the selection, and what it points at. Recorded links only.
Names that stick.
Your names for requests, sources, handlers and Wasm functions, keyed by hash and kept on disk.
Know the library.
Toolchain and runtime conclusions with their evidence offsets, plus crypto and encoding constant matches, for every captured module.
Decode anything.
Byte-safe decoder chains for Base64, hex, URL, compression and JSON. JWT inspection. Float32 buffers compared bit for bit.
Agents
A model beside the evidence. On your terms.
Claude, ChatGPT or Grok, docked next to the capture. Off by default, and turned on for one session after you read exactly what leaves this Mac.
- Read onlyStructural reads. No captured content leaves. The default.
- Ask for actionsEach action waits for Allow once.
- Auto-approve actionsNo prompts. Every call is in the transcript.
- Full accessAlso source, Wasm bytes, bodies, offline runs and its own sessions.
Prefer your own tools? reb-api mcp gives Claude Code or Codex the same loopback API, at the same four levels.
sig field in the selected request come from?window.sign in the next capture would close that.Everything
The whole list.
Install
Two apps. Side by side.
Apple silicon, macOS 13 or later. About 1 GiB together.
Download both
Origin Trace and Brave Browser Development, from the latest release.
Check the hashes
Verify both ZIPs against
SHA256SUMS.Open Origin Trace
It starts capture and opens the Brave window.
Read SAFETY.md first
Capture only what you are authorized to analyze.
Good to know
- Live stepping and request replay are outside this build.
- Captures can contain credentials, and the raw store is not masked. A redacted Traffic export is a separate copy.
- Both apps are ad-hoc signed and not notarized. Brave Browser Development is a workstation build, not a Brave Software release.
From source
REB_BRAVE_BINARY="/path/to/Brave Browser Development" \ make live