botrefund.com
← BotRefund 首页 信号解释

资源计时 DNS 与连接

BotRefund inspects cross-origin PerformanceResourceTiming entries for zero DNS resolution time paired with slow TCP connect handshakes exceeding 150 ms to spot remote proxy DNS resolution.

检测内容

Client telemetry iterates through performance.getEntriesByType('resource') for cross-origin resource URLs whose servers expose timing details via Timing-Allow-Origin (domainLookupEnd above 0).

If any cross-origin resource reports zero DNS lookup duration (domainLookupEnd - domainLookupStart equals 0) alongside a TCP handshake exceeding 150 ms (connectEnd - connectStart above 150), the probe flags a potential proxy-tunnel DNS mismatch.

为何重要

Sending traffic through a remote SOCKS5 or HTTP proxy that resolves DNS remotely causes the browser's timing API to record 0 ms DNS lookup time while still paying over 150 ms over the network to establish the proxied TCP connection.

Important Caveat: Authentic mobile users on congested cellular links or desktop visitors hitting a warm local or DoH DNS cache (0 ms DNS) over high-latency routes (over 150 ms TCP connect) satisfy the exact same timing pattern—so this check is cleared whenever genuine human interaction is observed.

说明

如何解读结果

01 预期结果

可测量的 DNS 查找或快速 TCP 握手

Direct connections show non-zero DNS lookup timing on cold fetches, fast TCP connects (150 ms or under), or omit cross-origin Timing-Allow-Origin timing headers.

Example result Cross-origin: yes • DNS duration: 14.2 ms • TCP connect: 42.8 ms — Result: normal direct connection timing
02 可能的自动化信号

零 DNS 时长且连接时间超过 150 毫秒

A cross-origin fetch showing 0 ms DNS time alongside an over-150 ms TCP connect delay points to remote proxy DNS resolution when genuine human interaction is absent.

Example result Cross-origin: yes • DNS duration: 0 ms • TCP connect: 248.5 ms — Result: possible remote proxy tunnel

Forensic significance: Supporting proxy-tunnel timing indicator with a warm-DNS and cellular-RTT caveat; analysts should always corroborate it with ASN origin, TCP MSS, and user interaction.