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.

Origin Trace Flow · Lineageexample trace
  1. network · request_startedSelected requestPOST shop.example.test/api/checkout/sign
  2. script · fetch call siteRecorded linkapp.4f1c.js:1:48211
  3. wasm · export sign → func[212]Recorded linkguard.wasm · sha256 a91e…07c4
  4. canvas · toDataURL readbackShared identifiers2D context · 220 × 30 · image retained
  5. Missing predecessor · no recorded linkGapTrace gap
  6. dynamic · generated scriptTime-adjacent onlyartifact 311 · created by app.4f1c.js
● local only3 recorded links · 1 correlated · 1 gap · 1 time-adjacent

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.

Renderer

Native probe

Off until a session turns it on. Allocation-free while inactive. Never blocks.

Renderer

Bounded transport

Fixed memory. A full queue records a drop you can see.

Browser process

Bridge

Carries session, frame, context and parent identifiers across.

Loopback

Event broker

Validates, versions and correlates every record.

This Mac

Evidence store

Append-only events and hashed artifacts on disk.

This Mac

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.

Origin Trace Capturingexample data
EVIDENCE Traffic ⌘1 Sources ⌘2 VM ⌘3 Fingerprinting ⌘4 Flow ⌘5
NameStatusTypeMethodTime
shop.example.test/cart200DocGET212 ms
cdn.example.test/app.4f1c.js200JSGET41 ms
cdn.example.test/guard.wasm200WasmGET63 ms
shop.example.test/api/checkout/sign200FetchPOST84 ms
telemetry.example.test/v2/collect204FetchPOST19 ms
live.example.test/socket101SocketGET7 ms
cdn.example.test/inter.woff2200FontGET12 ms
cdn.example.test/hero.avif200ImgGET38 ms
shop.example.test/api/cart/items200FetchGET56 ms
HeadersPayloadPreviewResponseInitiatorTimingSignals
POST /api/checkout/sign · 412 bytes
sha256 5be0…91aa
{
  "cart": "c_81f2",
  "ts": 1764712800,
  "sig": "9f3c2a71…e1",
  "env": "eyJ3IjoxNDQwLCJoIjo5MDB9"
}
Trace originCross-references · 2 in · 1 out
● capturing9 of 9 requests0 sequence gaps0 drops
Originalapp.4f1c.js · sha256 4f1c…d20b
// 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]]();
Static cleanupderived · 14 mapped ranges
// 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
3 sources1 generated at runtimecleanup ran locally{ } pretty print
guard.wasm · func[212] · br_table · 38 selectors + defaultVM score 82 · coverage partial
Physical module offsets and selectors are not recovered guest opcodes. A row is the dispatch the engine performed.
Source offsetSelectorOperation / handlerEvidenceSamples
0x1a40 + 5 bytes0push_const (your name)observed4,112
0x1a52 + 9 bytes7xor_rot (your name)observed2,048
0x1a7c + 12 bytes12call_indirect · table 0 · slot 44observed96
0x1ab0 + 6 bytes19handler 19inferred31
0x1acc + 4 bytes23handler 23unknown0
0x1ad8 + 7 bytesdefaulttrap armunknown0
EffectsDispatch sitesHandler tablesNative observationsBytesReachabilityCoverageUnknownsHost links
11 program trees1 nested VM candidateopcode ledger: 4 of 38 named
WebGL118getParameter · getSupportedExtensions
Device and layout64screen.width · devicePixelRatio
Canvas46fillText · toDataURL
Web Audio23createOscillator · startRendering
Storage12estimate
Runtime9Function constructor
Permissions4query
WebRTC3createDataChannel
Canvas renderreadback S1:R10:0961
  1. fillRect
  2. fillText
  3. fillText
  4. toDataURL → 3.1 KiB retained
8 families279 operationsrequest link: sign · 3 families
Graphsession flow
shop.example.test · main frame cdn.example.test · worker /cart generated app.4f1c.js func[212] POST sign
CFGfunc[212] · 6 blocks
0x1a20 entry 0x1a38 br_table 0x1a40 0x1a52 0x1a7c 0x1ae0 loop
LineagePOST sign
network · request_started script · fetch call site wasm · func[212] !gap · no recorded link dynamic · time-adjacent
Timelinetracked calls · window.sign
0 ms400 ms800 mscall 5 · selectors 7, 12
one selection, four panesobserved evidence onlysolid observed · dashed shared · dotted adjacent

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.

Origin Trace Flow · Graphexample data
shop.example.test · main world · frame 1 · pid 4120
guard.example.test · main world · frame 3 · pid 4133
func 212 · sign · 7 blocks · 41 instructions · declared
Trace value · both directions · decisions on · calls entered
Comes from · 4 sources
Goes to · 3 sinks

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.

16 MiB

The whole body.

Of request and of response, kept for every request, with headers and cookie lists. All of it stays on this Mac.

8

Fingerprint families.

CanvasWebGLWeb AudioDevice and layoutPermissionsStorageWebRTCRuntime

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.

⌘K

Search requests, sources and VM findings from anywhere.

X

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.

  1. Read onlyStructural reads. No captured content leaves. The default.
  2. Ask for actionsEach action waits for Allow once.
  3. Auto-approve actionsNo prompts. Every call is in the transcript.
  4. 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.

Agent Claude · API keyAskexample
You
Where does the sig field in the selected request come from?
get_origin_trace 6 rows · 1.2 kB
get_wasm_value_flow 41 nodes · 3.8 kB
Agent
The request was started by app.4f1c.js:1:48211, which calls the export sign → func[212]. There is one gap before the canvas readback, so they share a context but I cannot say the image feeds the signature. Tracking window.sign in the next capture would close that.
Track calls to window.sign in the next capture?
DenyAllow once
2 tool callscontent omitted below Full access

Everything

The whole list.

Install

Two apps. Side by side.

Apple silicon, macOS 13 or later. About 1 GiB together.

  1. Download both

    Origin Trace and Brave Browser Development, from the latest release.

  2. Check the hashes

    Verify both ZIPs against SHA256SUMS.

  3. Open Origin Trace

    It starts capture and opens the Brave window.

  4. 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

Find the past.