# Protocol: IPv6 leak under IPv4-only residential proxy

Slug: `ipv6-leak-ipv4-proxy-3day`  
Frozen at: `2026-11-24T13:18:16.242Z`  
Question: with an IPv4-only residential HTTP or SOCKS proxy, do AAAA records and WebRTC ICE still expose the cloud VM’s IPv6?

## What this study is not

- Not a re-run of the browser path-leak study. That snapshot asked whether document echoes and WebRTC followed any proxy. Here the surfaces are AAAA presence, document IP **family**, and WebRTC IPv6 candidate classes under an IPv4-only exit.
- Not sticky-residential continuity. One ProxySeller sticky session id is reused; stickiness is not scored.
- Not CometVPN. CometVPN is VPN-only. This VM has no measured TUN tunnel. That condition is `NOT_RUN`.
- Not a Happy-Eyeballs lab across many ISPs. One USA Cursor cloud VM, one residential package.

## Schedule

Collection starts 2026-11-24. Stop after `2026-11-26T18:30:00Z`. Article and site page after that stop, on this PR.

| Slot id | Window start (UTC) |
| --- | --- |
| `2026-11-24-immediate` | As soon as this protocol is frozen on 2026-11-24 |
| `2026-11-24-1800Z` | 2026-11-24 18:00 |
| `2026-11-25-0600Z` | 2026-11-25 06:00 |
| `2026-11-25-1800Z` | 2026-11-25 18:00 |
| `2026-11-26-0600Z` | 2026-11-26 06:00 |
| `2026-11-26-1800Z` | 2026-11-26 18:00 |

A slot that has not started by 30 minutes after its start is missed, not backfilled. Do not collect after the stop. Do not edit this protocol to match a result.

## Lean resource rules

- Frozen host set ≤ 6 dual-stack / echo targets (see `hosts.frozen.json`).
- **One probe per condition per slot** (three probes total). No retries except a single proxy reconnect if the first attempt fails before any public row is written.
- Reuse the injected `PROXYSELLER_USER` as-is for every residential probe (one credential bundle; no session-suffix mutation). Continuity is not scored.
- No exploratory ProxySeller spam. Day 0 is one dry-run CONNECT plus the immediate slot.
- Prefer cloud-direct for stack capability; residential only for the leak question.

## Conditions

Order fixed every slot:

1. `cloud-direct` — no browser proxy; process proxy env cleared for the collector child.
2. `residential-http` — ProxySeller HTTP from `PROXYSELLER_HOST`, `PROXYSELLER_HTTP_PORT`, `PROXYSELLER_USER`, `PROXYSELLER_PASS`.
3. `residential-socks` — ProxySeller SOCKS5 via local `proxy-chain` anonymizer (Chromium lacks SOCKS username/password). Port: `PROXYSELLER_SOCKS_PORT`.

If the five-name bundle is missing, residential conditions are `NOT_RUN` and cloud-direct still runs. Values are never printed, never written to git, never put on argv.

## Frozen hosts

Day 0 dry-run rule (applied once, then frozen):

1. Candidate dual-stack names must return at least one system AAAA.
2. Freeze the first three dual-stack names that pass, plus the three fixed echo/trace URLs below.
3. Cap = 6. Do not expand after freeze.

| Role | Host / URL |
| --- | --- |
| Dual-stack AAAA | `dns.google` |
| Dual-stack AAAA | `cloudflare.com` |
| Dual-stack AAAA | `one.one.one.one` |
| Echo IPv4-prefer | `https://api.ipify.org?format=json` |
| Echo dual / v6-prefer | `https://api64.ipify.org?format=json` |
| Exit trace | `https://www.cloudflare.com/cdn-cgi/trace` |

WebRTC STUN (not a visit host): `stun:stun.cloudflare.com:3478` only. No TURN.

## Client

- Playwright Chromium, headless, locale `en-US`, timezone `UTC`, viewport 1360×900.
- Local fixture on `127.0.0.1` with Chromium bypass `127.0.0.1,localhost,<loopback>` (not `<-loopback>`, which forces loopback through the proxy).
- Echoes via Playwright `APIRequestContext` (same proxy as the page).
- WebRTC via local fixture (`RTCPeerConnection`, 8s ICE gather).

## Measurements per probe

Public rows keep families, counts, hashes, country/colo — never raw addresses.

1. **Cloud IPv6 stack** (once per slot on cloud-direct): UDP connect to `2001:4860:4860::8888:53` succeeds or not; if a local address appears, store `ip_` + SHA-256[:16] only.
2. **System AAAA** (once per slot): for each frozen dual-stack name, AAAA count and sorted-set hash.
3. **Document egress family**: parse ipify / api64 / Cloudflare trace; record family (`ipv4`/`ipv6`), salted hash, Cloudflare `loc`/`colo` (drop `ip`).
4. **WebRTC**: candidate `typ`, protocol, classify class, family; address hashes only. Flags: any non-local IPv6; hash overlap with cloud IPv4/IPv6 baselines.

## Scoring

Implemented in `analyze.py`. Primary leak labels per residential probe:

| Label | Rule |
| --- | --- |
| `cloud_ipv6_absent` | Cloud stack probe failed; no cloud IPv6 hash in the slot baseline |
| `aaaa_available` | All three frozen dual-stack names had AAAA count ≥ 1 |
| `document_ipv6_via_proxy` | Any successful echo family is `ipv6` under a residential condition |
| `webrtc_ipv6_nonlocal` | Any WebRTC candidate classify is `ipv6_public_or_other` |
| `webrtc_matches_cloud_ipv6` | A WebRTC address hash is in the cloud-direct IPv6 baseline set (echoes + public ICE) |
| `webrtc_matches_cloud_ipv4` | A WebRTC address hash is in the cloud-direct IPv4 baseline set (path leak of v4; secondary) |

`document_ipv6_via_proxy` or `webrtc_matches_cloud_ipv6` answers the study question in the affirmative for that probe. `cloud_ipv6_absent` plus no nonlocal WebRTC IPv6 and no document IPv6 is a negative for cloud IPv6 exposure on this vantage, not a claim about other clouds.

## Public evidence

Under `public/research/ipv6-leak-ipv4-proxy-3day/`.

- Families, hashes, counts, colo/loc, Chromium version, env **names** present/absent.
- No raw IPs, no proxy host, no credentials.

`research/ipv6-leak-ipv4-proxy-3day/private/` is gitignored.

## Limits

One headless Chromium build, one cloud VM, one residential account. Echo endpoints are not a single ground-truth oracle. Headless is not a typical desktop profile. One probe per condition is a diary point, not a population rate. CometVPN is `NOT_RUN`.

## Affiliates

The article after the last slot may link `/proxyseller/` and `/cometvpn/` with a disclosure. Affiliates do not change this protocol or the scorer.
