← Back to Pull requests

feat(proxy): log TLSFP and TCP SYN fingerprints #2219

Closed
unknown closed this pull request without merging on Nov 09, 2026 14:02 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 09:43 UTC
Author

Log connection-derived TLSFP and TCP SYN fingerprints on the public nginx listeners, alongside request and negotiated TLS metadata. Serve HTTPS using the existing certificate mounts and keep the development override HTTP-only. Anubis continues to filter public requests before forwarding accepted traffic to the internal listener.

Build nginx 1.30.6 with the independently implemented, BSD-2-Clause nginx-connfp module, pinned to commit 7d83cab08d1521df8a453c8b4fd0df9700a0f652. Verify both source archives with SHA-256. The module uses OpenSSL's message callback and Linux saved-SYN socket options, so nginx core patches are unnecessary. The image includes the module's LICENSE and NOTICE with attribution to ntop's TLSFP specification.

Public JSON logs contain:

  • tlsfp: ntop TLSFP draft 0.1, with ephemeral-extension filtering and a supported-groups hash.

  • tlsfp_registry: ephemeral extension registry version 1.

  • tcp_syn: the module's versioned syn1: format, containing IP version, TTL/hop limit, IPv4 DF, TCP window, MSS, window scale and TCP option order.
  • The module preserves tcp_save_syn and the two legacy variable names $http_ssl_ja4 and $http_ssl_ja4t as aliases. Their values use TLSFP and syn1:; existing JA4/JA4T matching rules and parsers need migration. Log consumers must use tlsfp and tcp_syn in place of the earlier tls_ja4 and tcp_ja4t keys.

    Client-supplied fingerprint headers cannot supply these values. The internal port 8080 retains its original log format and disables SYN capture. Capture must occur at the original connection edge; a terminating proxy supplies its own handshake. SYN capture requires Linux support and may be unavailable with SYN cookies. Fingerprints are telemetry, not authentication.

    Validation passed on a Linux Docker host:

    docker build -t dashboard-proxy:connfp ./proxy
    python3 proxy/test-fingerprints.py dashboard-proxy:connfp
    

    The smoke test exercises real Anubis forwarding, static/API routing, HTTP/1.1 and HTTP/2, TLS 1.2/1.3, keepalive, forged headers, JSON escaping and certificate-free development startup. Module CI also passed static/dynamic builds, IPv4/IPv6 SYN capture, fragmented ClientHellos, HelloRetryRequest, TLS resumption, reload behavior and more than six million parser fuzz inputs under sanitizers.

    Diff: 304 lines (+228 / -76) across 3 files Reviewer: nuclearcat Review duration: 4579m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 304 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.342
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #2219"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.3% (MEDIUM) · Higher = larger blast radius
    63.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25% · Safe to merge
    25%