Interactive Tutorial · Local Browser WebAssembly · 6 min

Chapter 6: Reverse .pcap -> Scrub Secrets -> Rebuild .pcap

Reverse binary captures into .frasm text, redact private subnets & internal hostnames, and rebuild valid .pcap files for vendor support.

Labs completed0/7
The Situation · 6 min

Vendor TAC asks for your failing login .pcap, except it exposes 10.99.4.x and "payroll.secret-corp.internal" inside DNS and TLS SNI — scrub both before uploading.

What You'll Pull Off Here

  • Reverse .pcap / .pcapng bytes into readable .frasm (host1, host2, ...) locally in the browser or via frameassembly reverse.
  • Replace private IPs once in host so every packet header and transport checksum updates automatically.
  • Redact Layer 7 strings (qname, sni, hosthdr) without corrupting IP total lengths or TCP seq counters.
Interactive Lab Check

Lab 6: Scrub 10.99.4.x & "payroll.secret-corp.internal"

Replace every 10.99.4.x host IP (198.51.100.21, 198.51.100.53, and 198.51.100.80) and replace "payroll.secret-corp.internal" with "app.example.test".

  1. 1.Change host1, host2, and host3 from 10.99.4.x to 198.51.100.21, 198.51.100.53, and 198.51.100.80.
  2. 2.Replace "payroll.secret-corp.internal" on both DNS lines and the TLS sni line with "app.example.test".
  3. 3.Click Check Exercise to verify your TAC-safe .pcap.

1. Why .pcap -> .frasm -> .pcap Beats tcprewrite

Hex-editing a .pcap breaks IP lengths and TCP checksums the instant "payroll.secret-corp.internal" shortens to "app.example.test". Meanwhile tcprewrite swaps outer Layer 3 IPs while leaving internal domain names sitting in plaintext inside DNS queries and TLS SNI.

Running frameassembly reverse incident.pcap clean.frasm (or clicking "Reverse Sample .pcap" in the sandbox) converts the capture into readable host1, host2, ... lines. Find-and-replace sensitive values, rebuild, and attach a clean .pcap to your ticket.

  • Zero cloud uploads: reversing and rebuilding run locally inside WebAssembly in your browser tab.
  • Custom binary payloads survive round-trips intact via hexpayload "...".
Word-by-Word Syntax Breakdown
The 3-step .pcap -> .frasm -> .pcap scrubbing workflow:
frameassembly reverse customer_trace.pcap sanitized.frasm
reverse customer_trace.pcap1. ReverseReads .pcap / .pcapng bytes and emits host1, host2, ...
sanitized.frasm2. Find & ReplaceSwap private IPs, MACs, VLANs, and internal hostnames in any editor
frameassembly sanitized.frasm3. RebuildBuilds sanitized.pcap with fresh lengths, seq offsets, and checksums
tac_ticket_sanitized.frasmLoading WASM…
Try two-way reverse right in your browser:
Wireshark filter: dns || tls
Open in Playground
0 B · 0.000 ms
Compiling capture in WebAssembly…
Learn FrameAssembly: Docs, Protocols & Labs — FrameAssembly