FCaptcha icon indicating copy to clipboard operation
FCaptcha copied to clipboard

bench: validate canvas stability on stock Firefox and Safari

Open cport1 opened this issue 1 week ago • 4 comments

Follow-up to #95 and #234.

PR #234 merged the low-confidence canvas readback-stability signal after the full Chromium and fixed-corpus gates passed. The original acceptance criteria also called for stock Firefox and Safari coverage; both browsers have now been validated through isolated native-browser runs.

Scope

  • [x] Prove two identical renders produce canvasStable: true in stock Firefox.
  • [x] Prove two identical renders produce canvasStable: true in stock Safari (actual Safari, not only Playwright WebKit).
  • [x] Confirm no raw canvas data URL is transmitted in Firefox.
  • [x] Confirm no raw canvas data URL is transmitted in Safari.
  • [x] Record Firefox browser/OS versions and isolated-run provenance.
  • [x] Record Safari browser/OS versions and isolated-run provenance.
  • [x] Keep privacy/RFP behavior non-blocking; instability remains weak fingerprint evidence only.

Acceptance

  • [x] Stock Firefox remains allow with the new field present.
  • [x] Stock Safari remains allow with the new field present.
  • [x] Browser-specific incompatibilities discovered by the live runs are fixed with Go/Node/Python parity tests; no client or minified-build canvas incompatibility was found.
  • [x] The fixed benchmark remains at zero human blocks.

No production weight increase or promotion is in scope.

The Safari and Firefox evidence, plus both merged false-positive fixes, is recorded below.

cport1 avatar Nov 25 '26 15:11 cport1

The eventual isolated stock Firefox/Safari run should capture two artifacts together:

  1. #235 canvas stability (canvasStable: true, no raw data URLs), and
  2. #98's native/trusted JA4 value and browser/OS version.

PR #236 uses pinned FoxIO reference cipher-set hashes and fails open to unknown on drift. A current live capture can therefore validate the family mapping without changing production scoring or adding another browser run.

cport1 avatar Nov 25 '26 15:11 cport1

Local environment inventory after #236 merged:

  • Safari 26.6.2 (safaridriver 21624.5.1.11.3) is installed.
  • Safari WebDriver is already enabled and its local status endpoint reported ready: true; no setting was changed and the driver was stopped without opening an automation session.
  • Firefox 160.0 is installed; geckodriver is not installed.
  • Existing committed real-browser captures cover Safari 26.6.2 and Firefox 158 on macOS, but they predate the canvasStable client field and have no native/trusted JA4, so they cannot close this issue.

Apple documents that Safari WebDriver uses a clean automation window isolated from normal history, AutoFill, settings, and other browsing data. That protects profile data, but it is not by itself the complete execution boundary required for this audit: the unreleased target client still needs explicit network, memory, process, disk, file, output, and wall limits. The local native macOS route cannot currently enforce the full set without also affecting unrelated Safari processes, so no target page was loaded and no result is claimed.

Next valid route: a dedicated bounded macOS VM/runner (actual Safari) plus a temporary-profile stock Firefox runner, both against a loopback-only native-TLS FCaptcha endpoint. Retain only browser/OS version, client commit/hash, canvasStable, raw-data-URL absence, allow result, native JA4, and the identity-coherence-v1 TLS axis; discard tokens and secrets.

cport1 avatar Nov 25 '26 15:11 cport1

Stock Safari validation completed on the local Mac and the incompatibility found by the run is fixed in merged PR #241 (79689e0).

Environment and isolation:

  • Safari 26.6.2, WebKit build 21624.5.1.11.3
  • macOS 26.6.2 build 25G83
  • source baseline 578a5d1; patched result merged as 79689e0
  • loopback-only native-TLS endpoint in resource-limited Docker containers, with no outbound network
  • retained output was limited to version/provenance, canvas boolean, raw-data-URL presence boolean, native JA4, verdict, and sanitized experimental observation; no token or raw signals were logged

Initial stock Safari result exposed an unrelated but real invisible-mode false positive:

  • canvasStable: true
  • containsCanvasDataURL: false
  • JA4: t13i2012h2_a09f3c656075_7f0f34a4126d
  • identity-coherence-v1: clear
  • score 0.60, recommendation block

Cause: /api/score has no click target, but vision_ai emitted No mouse movement detected before click. That duplicated the legitimate weak zero-input behavioral observation across two categories and invoked the corroboration floor.

PR #241 gates only that click-specific detector on widget mode in Go, Node, and Python. Widget mode still detects a pointerless click; invisible mode retains the independent behavioral evidence.

Patched stock Safari rerun:

  • canvasStable: true
  • containsCanvasDataURL: false
  • same native Safari JA4
  • identity-coherence-v1: clear
  • vision_ai: 0
  • score 0.0756, recommendation allow

All PR checks passed, including Go, Node, Python, conformance, browser, replica, Helm/Kubernetes, and the 858-sample benchmark gate. Firefox is now the only remaining stock-browser acceptance gap.

cport1 avatar Nov 25 '26 22:11 cport1

Stock Firefox completion evidence (2026-11-26):

  • Browser/OS: Firefox 160.0 on macOS 26.6.2 (25G83).
  • Provenance: real stock Firefox, disposable server built from merged commit 2e97208, native TLS termination inside the isolated target, loopback-only fixed-destination relay, read-only/resource-limited containers, and no external target network. The validator logged only sanitized result fields; no token or raw signals.
  • Result: success: true, score 0.1296, recommendation allow.
  • Canvas: canvasStable: true; containsCanvasDataURL: false.
  • Native JA4: t13i1516h2_8daaf6152771_e6dcd7ae0a9e.
  • Observations: animation consistency clear; external CDP input shape clear; identity coherence clear; no experimental detections and wouldBlock: false.

The first pre-fix run showed that Firefox 160 now shares JA4_b 8daaf6152771 with Chromium, invalidating the old Blink-only label. PR #242 fixed that false positive across Go, Node and Python by treating the shared hash as unknown, added a measured Firefox 160 parity vector, and passed every CI job including the benchmark gate. The merged-code rerun above is clean.

cport1 avatar Nov 26 '26 00:11 cport1