SplitCast & Zero-Telemetry Wire Architecture
Protocol specification for GhostStack Shield userland DPI circumvention, RFC-8484 HTTP/2 encrypted DNS, and fail-closed Tor SOCKS5h chaining.
01 // MIDDLEBOX THREAT MODEL
Commercial and ISP DPI middleboxes rely on two passive signals to block TLS sessions:
- Plaintext DNS (UDP/53): Forged A/AAAA responses inject block-page IPs before TCP setup.
- Unfragmented TLS ClientHello SNI: Deep packet inspectors parse the first TCP frame on port 443 for TLS handshake record
0x16and read the SNI extension.
02 // RFC-8484 HTTP/2 WIRE DOH
To prevent OS DNS bootstrap leaks and omit domain names from HTTP query strings (?name=...), GhostStack transmits binary application/dns-message payloads over multiplexed HTTP/2 straight to Anycast IPs:
POST /dns-query HTTP/2 Host: adblock.dns.mullvad.net (TCP target: 194.242.2.3:443) Content-Type: application/dns-message Accept: application/dns-message
Concurrent lookups coalesce on a single in-flight promise, with a 150ms hedged race against secondary Anycast endpoints (1.1.1.1 / 9.9.9.9).
03 // SPLITCAST TCP SEGMENTATION
Sockets bind with TCP_NODELAY=1 to bypass Nagle coalescing. Upon receiving initial TLS handshake byte chunk[0] === 0x16:
- Segment 1: Writes 1-byte (or 2-byte) record header prefix and flushes immediately.
- Delta: Pauses client socket reads for
2ms(configurable0–150ms) to force two distinct wire frames. - Segment 2: Emits the remainder containing TLS extensions and SNI. Origin hosts reassemble TCP transparently while stateless DPI state trackers fail to extract SNI.
04 // FAIL-CLOSED TOR SOCKS5H
Client-side fragmentation defeats DPI middleboxes without VPN throughput limits, while leaving client IP visible to origin endpoints. Engaging Tor SOCKS5h Mode switches egress to RFC 1928 ATYP=0x03 domain tunneling so DNS resolves at the Tor exit node—returning HTTP 503 fail-closed if Tor is offline.
05 // ZERO TELEMETRY AUDIT
- Zero outbound telemetry beacons, analytics, or external geo/IP lookups.
- Zero persistent device identifiers or disk logs.
- Windows HUD runs with Edge
--inprivateinside an isolated temp directory wiped on exit.