Skip to content

v3.40.0: Counterparty Check and Case File

Choose a tag to compare

@osintph osintph released this 29 Nov 00:16
· 3 commits to main since this release

Changed in v3.40.1: the Counterparty archive tests ignore parking pages (the 3.40.0 control osintph.info was RE-REGISTERED only because its first capture was a parking page), RE-REGISTERED now says what was there before and how long ago the registration started, and a legal name is no longer read from page text or theme credits (3.40.0 took "Qode Interactive" from a theme footer). urlscan.io was never a Counterparty source in either release. provision.sh now installs everything, including the Ransomware Watch collector and the MCP venv.

Released 2026-11-29.

Two new tabs, Counterparty Check and Case File, a "Pin to case" control on every
result card in every tab, and the counterparty_check MCP tool (eleven tools).

Added

  1. Counterparty Check tab (app/counterparty/, app/routers/counterparty.py,
    app/static/counterparty.js). Is the organisation behind an email address or
    domain consistent with what it claims? For organisations, never people.
    • Input is an email address, a domain or a URL, normalised to the registrable
      domain. The part of an email address before the @ is dropped in the browser,
      again first thing on the server, and again in the MCP tool; it is never
      logged, cached or sent anywhere.
    • Consumer mailbox providers (the Attack Surface free-mail list) answer
      CONSUMER MAILBOX with no lookup and no outbound call, and do not count
      against the limit.
    • Six cards, each with raw evidence: registration (RDAP through the Hunt RDAP
      client, every event), archive history (Wayback CDX, two requests, up to three
      snapshots), mail (MX provider, SPF, DMARC, four common DKIM selectors, the
      Microsoft 365 tenant ID, DNS markers such as a GoDaddy NETORGFT tenant name),
      website now (locked to the submitted domain, parking detection shared with
      Hunt, hosting ASN from RIPEstat), identity strings (legal name, phone, street
      address, site-domain email, licence numbers, from regex and schema.org
      JSON-LD) and identity collision (other registered domains publishing at least
      two of the same identifiers; shared infrastructure never counts; registry
      wildcards dropped as in Hunt).
    • A deterministic verdict, thresholds as named constants in
      app/counterparty/verdict.py: CONSUMER MAILBOX, INCONCLUSIVE, IDENTITY
      CONFLICT, RE-REGISTERED, NEW, NO PRESENCE, NEW, ESTABLISHED, CONSISTENT.
      Every sentence links to its card; "N of M sources responded"; never
      legitimate, safe, scam or fraud.
    • PDF export, "Pin to case" on every card, 25 checks per IP per day, 24 hour
      cache under a keyed HMAC of the domain. COUNTERPARTY_ENABLED (default true).
  2. Case File tab (app/static/casefile.js, app/case/, app/routers/case.py).
    Cases live only in the browser (IndexedDB) and in exported files.
    • Every result card in every tab gets "Pin to case"; Route Map pins its hop
      table JSON. A pin keeps the API response as received, the sources it names,
      the UTC time, the app version and a SHA-256 of a canonical JSON form. 2 MB per
      pin, 50 MB per case.
    • Pivot graph (D3) of domains, IPs, ASNs, certificate fingerprints, Microsoft
      tenant IDs, email domains (never local parts) and URLs; a node opens a tab with
      the input filled in and never runs the lookup.
    • "Timestamp this case" sends only the manifest hash to
      POST /api/case/timestamp; the server builds the RFC 3161 request, calls
      TSA_URL (FreeTSA by default) and verifies the token's imprint, nonce,
      signature, chain and validity against the vendored FreeTSA certificates before
      returning it. CASE_TIMESTAMP_ENABLED (default true), 20 per IP per day.
    • .fecase export (a zip with the canonical pins, the manifest, the token, the
      authority's certificates and VERIFY.txt with the openssl commands to check
      everything offline) and a strict, untrusted import with a per-pin verified,
      mismatch or missing badge. JSZip 3.10.1 vendored under /static/lib/.
    • Report as PDF and Markdown; "Refresh all pins" with the cost shown first, new
      pin versions and a field-level diff.
    • Optional LLM summary, LLM_CASE_SUMMARY_ENABLED (default false), 10 per IP per
      day: every sentence must cite a pin, and every date, number, domain, IP, ASN,
      hash and email domain in it must appear in a pin it cites, or the sentence is
      replaced by "removed: unsupported by evidence".
  3. counterparty_check MCP tool, the eleventh. Same privacy rule, same verdict.
  4. app/utils/host_gate.py: paces one upstream across every gunicorn worker
    (SQLite row per upstream). FreeTSA gets at most one request per second from the
    host; the Wayback Machine one request per 3 seconds, and none for 10 minutes
    after it refuses a connection.
  5. app/version.py, the running version for code that needs it, checked against
    every bump location by tests/unit/test_version_constant.py.

Changed

  1. The Hunt RDAP client's user agent was hardcoded FalconEye-Hunt/3.38.27. It now
    carries the current version and the OPERATOR_CONTACT_UA token. No other change
    to Hunt behaviour.
  2. Hunt's parking test is now the public detect_parked() in
    app/hunt/candidate.py, called by Hunt and by Counterparty Check, so there is
    one copy of the signal lists. Hunt's results are unchanged (its tests, including
    the ground truth, pass unmodified).
  3. safe_fetch accepts an optional request body and returns the raw bytes beside
    the text (additive), so the time-stamp request goes through the same SSRF guard.
  4. parse_rdap adds an ordered event_list (additive), so two events of one kind
    are both kept.
  5. The MCP server reports the running version (it said 3.38.27).

Not included

  • PCAB, SEC and DTI lookups. SEC and DTI refused the server (HTTP 403) and DTI
    takes a business name, not a domain. PCAB's licence page needs no login and has
    no CAPTCHA, but its data comes from an undocumented internal endpoint, so it is
    out of scope. Licence numbers are labelled "as published on the site, not
    checked with PCAB".
  • urlscan.io identifier search in the collision check: the documented field for
    page text (text.content) is a paid-plan field and could not be verified on
    this instance's key.
  • Server-side cases, sharing, and MCP access to cases.

Release conditions

  • New dependencies: pyasn1-modules==0.4.2, and pyasn1==0.6.4 and
    cryptography>=42 named explicitly (both were already installed). Both venvs
    get them through fe_pip_sync; both scripts end with fe_check_case_file, and
    fe_check_page_version checks the two new script tags.
  • .env.example: COUNTERPARTY_ENABLED, COUNTERPARTY_PER_DAY,
    COUNTERPARTY_CACHE_HOURS, CASE_TIMESTAMP_ENABLED, TSA_URL,
    TSA_CA_CERT_PATH, TSA_CERT_PATH, CASE_TIMESTAMP_PER_DAY,
    TSA_MIN_INTERVAL_SECONDS, LLM_CASE_SUMMARY_ENABLED, LLM_CASE_SUMMARY_PER_DAY.
  • No new server-side state outside the existing database, so the backup list is
    unchanged. The CSP is unchanged.