WebRTC 与 STUN 泄漏测试
导出 ▾
WebRTC 与 STUN 泄漏测试 — 实时遥测与诊断
8 层取证级遥测拆解
在本地实时测量客户端环境、C++ 字节码引擎、芯片限制以及 L4–L7 传输层参数。
正在检测
2. 地理位置、ISP 与 /24 网段信誉
3. 告警信号与一致性
4. 浏览器、C++ 引擎与五域一致性
5. 硬件、GPU 限制与 WebAssembly
6. 软件、Canvas IDAT 与哨兵字体
7. 自动化、CDP 与权限同步
8. 移动端与云手机 ARM64 审计
相关诊断工具
面向精细化 QA 验证的独立协议与浏览器检测模块。
DNS、ECS 与 rDNS PTR 测试→
查看哪些 DNS 解析器到达了权威服务器、请求了哪些记录以及是否携带 ECS。支持部署下还提供 25 + 25 域名扩展测试。
我的 IP 是什么→
展示本次 HTTP 连接观测到的出口 IP 以及 ASN、反向 DNS PTR、地理估算和 WebRTC 对比结果。
代理检测与传输层审计→
评估传输层代理指标,包括 split-TCP 往返时延差、估算初始 TTL、观测 MSS、转发头及公网出口端口。
IP、rDNS PTR 与 /24 子网→
查看基于 IP 的地理位置估算。您也可在本页面单独请求浏览器定位读数及其精度(仅限本页展示)。
LiveCam 与虚拟摄像头测试→
缺少设备标签可能源于权限受限。编解码支持情况无法确定摄像头型号或预测平台审核结果。
全维度身份检测→
报告会明确展示哪些检查产生了证据、哪些检查不可用。检测覆盖范围受浏览器支持度、权限与网络路径影响。
JA4、JA4T 与 ECH 链路测试→
边缘节点抓包可提供额外字段。TLS 终结代理会改变各观测点实际描述的连接对象。
连接请求头审查→
加载时检查连接请求头,并提供按需检测公网出口 IP 常见代理端口(1080、3128、8080、8888)的可选功能,不扫描本地回环端口。
WebRTC ICE Gathering, STUN Binding & mDNS Address Leakage Forensics
深度技术拆解文章正文以英文撰写;文章摘要、实时诊断工具、检测方法论与基准测试页面均支持您所选的界面语言。
How RTCPeerConnection Gathers Host, Server-Reflexive, and Relay Candidates
Interactive Connectivity Establishment (RFC 8445) discovers local interface addresses, NAT-mapped STUN bindings, and TURN relay endpoints asynchronously.
When a web application instantiates RTCPeerConnection with an ICE server list and creates an SDP offer, the browser begins Interactive Connectivity Establishment (RFC 8445). Three distinct candidate classes can appear in onicecandidate events: host candidates bound to local network interfaces, srflx (server-reflexive) candidates returned by a STUN server via RFC 8489 Binding Responses, and relay candidates allocated through a TURN server.
Because STUN operates primarily over connectionless UDP, misconfigured split-tunnel VPNs or HTTP-only browser proxies frequently fail to encapsulate STUN packets. As a result, the srflx candidate returned inside the browser's SDP attribute exposes the underlying residential or mobile carrier IP address while HTTPS requests appear to exit through a proxy server. Even when a browser blocks client-side reading of srflx attributes, the outbound UDP packet still arrives at the STUN responder carrying the true NAT source IP.
Additionally, AntidetectLab creates an ephemeral RTCDataChannel before calling createOffer() so ICE gathering proceeds cleanly even on browsers that omit media transceivers or lack attached audio/video capture devices. Tracking iceGatheringState transitions ensures timed-out or policy-blocked ICE sessions are labeled accurately rather than treated as leak-free.
ICE Candidate Taxonomy, Address Scopes & Privacy Mitigations
Comparing RFC 1918 private ranges, CGNAT blocks, IPv6 ULA prefixes, mDNS UUID masking, and server-side STUN correlation.
AntidetectLab pairs client-side ICE parsing with a first-party UDP STUN responder bound to the active diagnostic session via unique ephemeral credentials. By comparing the HTTP socket IP against both the client-reported srflx candidates and the server-logged STUN source IP, the workbench detects address mismatches, dual-stack IPv6 leaks where IPv4 is proxied but IPv6 bypasses the tunnel, and carrier-grade NAT (RFC 6598 100.64.0.0/10) exposure.
| Candidate / Field | RFC / Specification | Typical Address Scope | Diagnostic Significance |
|---|---|---|---|
| typ host (mDNS) | RFC 6762 / WebRTC mDNS | <uuid>.local | Masks local LAN IP when media permissions are ungranted |
| typ host (raw IPv4/v6) | RFC 1918 / RFC 4193 | 10.0.0.0/8, 192.168.0.0/16, fc00::/7 | Exposes internal NIC layout if mDNS obfuscation is disabled |
| typ srflx | RFC 8489 (STUN) | Public IPv4/IPv6 or CGNAT 100.64.0.0/10 | Reveals true NAT egress IP if UDP bypasses proxy |
| typ relay | RFC 8656 (TURN) | Allocated TURN server IP | Expected when iceTransportPolicy: "relay" is enforced |
| SDP origin & m-lines | RFC 8866 (SDP) | o=mozilla... / codec list | Differentiates Gecko, Blink, and WebKit media stacks |
Dual-Stack IPv6 Bypass and Media Permission Side-Effects
Granting camera or microphone permissions changes ICE host exposure and can reveal unproxied IPv6 interfaces.
WebRTC privacy behavior is state-dependent. Under Chromium and Firefox privacy guidelines, granting camera or microphone permissions lifts mDNS masking on subsequent peer connections, allowing raw RFC 1918 or link-local (169.254.0.0/16, fe80::/10) addresses to surface in host candidates. Furthermore, IPv4-only proxy configurations often leave OS-level IPv6 enabled, allowing srflx IPv6 candidates to leak the host's native prefix.
In addition to IP addresses, SDP offer attributes—including DTLS fingerprint algorithms, RTP extension URIs, and origin lines such as o=mozilla—fingerprint the underlying media engine independently of navigator.userAgent. If an SDP capabilities hash resembles Firefox Gecko while the HTTP request claims Chrome Blink, automation or naive header spoofing is immediately visible.
Configuring WebRTC ICE Policies Without Breaking Conferencing APIs
Evaluating Chromium WebRTC IP handling policies and UDP-capable SOCKS5 or VPN routing.
When auditing proxy hygiene, verify that Address comparison with HTTP shows a clean match (or intentional relay/policy suppression). For SOCKS5 tunnels, ensure the client and proxy server both support UDP Associate (RFC 1928) or enforce Chromium's disable_non_proxied_udp policy so WebRTC never falls back to direct local interfaces. Always inspect DNS Leak & EDNS0 alongside Proxy Checker to verify that UDP STUN, recursive DNS, and TCP HTTP egress all terminate on the same network path.
Be cautious with browser extensions that monkey-patch window.RTCPeerConnection in JavaScript while leaving underlying native C++ sockets untouched or breaking RTCDataChannel promises. Native browser IP-handling flags preserve clean WebIDL prototypes while ensuring UDP candidates never bypass your configured tunnel.
相关取证研究文章
深度拆解指纹浏览器内核、ARM64 云手机、JA4 TLS 协议栈与代理网络卫生。
WebRTC STUN & EDNS0 Client-Subnet DNS Leaks
Where ICE addresses, resolver addresses and optional client-subnet prefixes come from.
Reading IP, subnet and timing observations
How to interpret network ownership, timezone, latency and local sample-based indicators.
Comparing browser consistency tools
How to compare coverage across consistency tests and keep an observation separate from its interpretation.
本工具专项技术问答
Why can WebRTC reveal my real ISP IP even when an HTTP proxy is active?
HTTP and SOCKS proxies configured only at the browser HTTP stack do not automatically tunnel UDP datagrams. When RTCPeerConnection sends a STUN Binding Request directly over UDP port 3478, the STUN server observes your unproxied public egress IP in the XOR-MAPPED-ADDRESS attribute.
What does an mDNS .local hostname in a host ICE candidate mean?
Per draft-ietf-rtcweb-mdns-ice-candidates, modern browsers replace raw RFC 1918 LAN IPv4 addresses (such as 192.168.x.x) with ephemeral UUID.local mDNS hostnames unless camera or microphone permissions have already been granted.
Is disabling RTCPeerConnection completely safer than routing it through TURN?
Completely deleting or throwing on RTCPeerConnection breaks legitimate video/voice conferencing apps and creates an unusual API fingerprint. Most privacy policies prefer iceTransportPolicy set to relay or proxy-tunneled UDP over full API removal.
Why does the server-observed STUN address sometimes show unavailable?
Corporate firewalls, strict symmetric NATs, browser WebRTC disable flags, or environments where UDP port 3478/34780 is blocked prevent the STUN Binding Request from reaching the server, leaving only local host candidates or zero candidates.
How does SDP o=mozilla or media-line hashing identify browser engines?
Session Description Protocol (RFC 8866) offers encode codec payload order, RTP header extensions, and origin lines (such as o=mozilla... in Gecko) that differ across Blink, WebKit, and Gecko implementations.
重新测试时创建已隐去隐私信息的公开报告
任何获得链接的人均可阅读已发布的报告。