
breachwatch
org.identity-breach-response/breachwatch
Breach news, email auth, MTA-STS, TLS reporting and passive domain exposure checks.
Documentation
breachwatch
Breach-news monitoring + passive domain exposure audits (SPF/DMARC/TLS) from public sources only.
Live instance: https://identity-breach-response.org (free tier: POST /keys/self-serve with an email → bearer key, no card)
Quick start
# free key
curl -X POST https://identity-breach-response.org/keys/self-serve -H 'Content-Type: application/json' -d '{"email":"you@example.com"}'
# MCP endpoint (streamable-HTTP JSON-RPC: initialize / tools/list / tools/call)
curl -X POST https://identity-breach-response.org/mcp -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Install an MCP client connection
Request a free product key using the Quick start command above. Set the environment variable BREACHWATCH_MCP_API_KEY to the returned data.api_key value.
For Claude Code, merge this entry into your project's .mcp.json and launch the client from that environment.
{
"mcpServers": {
"breachwatch": {
"type": "http",
"url": "https://identity-breach-response.org/mcp",
"headers": {
"Authorization": "Bearer ${BREACHWATCH_MCP_API_KEY}"
}
}
}
}
Other MCP clients can use the same URL with Streamable HTTP and the Authorization: Bearer YOUR_API_KEY header. Supply the key through your client's secret input when available. initialize and tools/list are public. Tool calls require a product key.
Verify a TXT, MX, CNAME, A, or AAAA change
Call MCP tool bw_dns_propagation, or POST the same JSON to
/v1/dns/propagation with a BreachWatch bearer key.
{"name":"_dmarc.example.com","type":"TXT","expected":"v=DMARC1; p=reject"}
For MX use "type":"MX","expected":{"priority":10,"exchange":"mail.example.com"}.
Use priority 0 and exchange . for a null MX. TXT matches the exact UTF-8 bytes
(up to 1024), joining DNS character strings. MX matches both fields. The check
tests for presence of one value at the exact name, even if other TXT or MX values coexist.
For hosted DKIM or a service alias, send a CNAME target as text:
{"name":"selector1._domainkey.example.com","type":"CNAME","expected":"selector1.example._domainkey.provider.example.org"}
CNAME matches the immediate target at the queried owner, ignoring case and an optional trailing dot. The check does not follow the alias chain. A response showing DNAME synthesis or multiple distinct CNAME targets is inconclusive.
For an address cutover, use "type":"A","expected":"192.0.2.10" for IPv4
or "type":"AAAA","expected":"2001:db8::10" for IPv6. The check compares a
single address at the exact owner and includes other values from the same
RRset. IPv6 equivalent spellings match. An address belonging to an alias
target is outside the queried owner's RRset.
The report includes observed_utc, matching states and observed answer TTLs
for Cloudflare, Google and up to two authoritative nameservers, discovered via
Cloudflare and queried directly over IPv4. The report lists any unusable
addresses among the first four nameservers considered. matched_all_sampled
covers the observed views only. resolver_disagreement means the sampled authorities saw the
value but at least one recursive resolver did not. The other summary states are
authoritative_disagreement, not_seen_at_authority, and inconclusive.
Repeat the request to retest and keep the JSON as a record. Resolver caches can
persist. The VPS runtime uses the system /usr/bin/dig (BIND utilities).
Check email syntax and routing
Call MCP tool bw_email_routing or send the same JSON with your bearer key
to POST /v1/email/routing.
{"email":"postmaster@identity-breach-response.org"}
The check accepts bare SMTP addresses, quoted local parts, internationalized
domains and SMTPUTF8 local parts. The syntax result identifies addresses that
require SMTPUTF8. DNS receives the public domain and published exchanger names.
The response contains the canonical domain and leaves mailbox_status as
unknown.
explicit_mx indicates at least one sampled exchanger has a public address.
implicit_mx indicates an A or AAAA route applies after confirmed absence of
MX records. no_mail indicates a single valid null MX. no_route indicates
confirmed absence of a usable route in the DNS answers. Resolver failures,
incomplete results, contradictory null MX records, and exchanger aliases can
return unknown. The check samples up to four exchangers in priority order.
A usable route can have partial coverage if a lookup fails or the sample is
capped. Complete DNS observations can be reused for 90 seconds and include
their observation time.
The gateway uses idna for normalization and dig for public DNS.
Discover an MTA-STS policy pointer
Call MCP tool bw_mta_sts_discovery or send the same JSON with your bearer key
to POST /v1/email/mta-sts.
{"domain":"example.com"}
published includes the opaque policy_id. Save it and compare it with a
later observation to detect a change. not_published means the sampled DNS
view returned no STSv1 pointer. invalid means a malformed or conflicting
STSv1 pointer. unknown means the DNS answer could not establish the result.
The response includes the queried owner and observation time. For a delegated
pointer it also shows the effective TXT owner when established.
Discovery samples Cloudflare Public DNS and covers the DNS pointer only.
HTTPS policy validity, MX coverage and enforcement require separate checks.
See RFC 8461 §3.1.
Check MTA-STS policy text and MX coverage
Call MCP tool bw_mta_sts_policy_check or send the same JSON with your bearer
key to POST /v1/email/mta-sts/policy-check.
{"domain":"example.com","policy":"version: STSv1\nmode: none\nmax_age: 0"}
Send the proposed or captured text, up to 65536 UTF-8 bytes. The receipt
includes its SHA-256, policy mode, maximum age in seconds, and configured
MX patterns when the text is valid. For testing and enforce mode it
compares each explicit MX observed via Cloudflare Public DNS, showing the
matching pattern where found. A wildcard covers exactly one leftmost label.
It distinguishes all, some or none matched, confirmed absence, null MX and
unknown DNS. Invalid policies and mode: none skip the lookup.
The scope is supplied text and explicit MX names. Live HTTPS serving, implicit
mail routing, STARTTLS and mail server certificates require separate checks.
Verify the served MTA-STS policy
Call MCP tool bw_mta_sts_serving_proof or send the same JSON with your bearer
key to POST /v1/email/mta-sts/serving-proof.
- Send
{"domain":"example.com"}and publish the returned TXT challenge at the exactauthorization.challenge.recordname. The challenge is tied to this domain and your key, and expires at the reported UTC time. - With the same key, send the domain and
expected_policy_sha256from the supplied-text check. Each completed request uses one call.
BreachWatch rechecks the TXT before fetching
https://mta-sts.<domain>/.well-known/mta-sts.txt. It validates TLS for that
hostname and reads up to 65536 bytes of plain text from HTTP 200. Redirects
end the check. The receipt gives the exact byte-hash comparison and reports
the served policy syntax separately. Differences in line endings or whitespace
can change the digest. The proof covers one HTTPS observation. MTA-STS DNS
discovery, MX coverage and SMTP delivery require separate checks.
Discover SMTP TLS reporting destinations
Call MCP tool bw_tls_reporting_discovery or send the same JSON with your
bearer key to POST /v1/email/tls-reporting.
{"domain":"example.com"}
The check reads _smtp._tls from Cloudflare Public DNS. published lists the
advertised mailto and HTTPS destination URIs in record order. The result
counts destinations with unsupported schemes. It distinguishes absence
(not_published), malformed or unusable records (invalid), and an
inconclusive DNS lookup (unknown). Save the dated observation alongside
the MTA-STS result. This check reads DNS only. It sends no report and leaves
destination availability unknown. See RFC 8460 §3.
Get a mail transport receipt
Call MCP tool bw_mail_transport or send the same JSON with your bearer key
to POST /v1/email/transport.
{"domain":"example.com"}
By default the receipt has the mta_sts DNS pointer and tls_reporting
destinations. Add policy text to populate policy_check with syntax and MX
coverage. Set include_serving to true with valid policy text to populate
serving_proof. If ownership proof is needed, publish the returned TXT
challenge and retry with the same key. Invalid text still yields the DNS
observations and a policy issue. A busy component returns unavailable
with a retry interval. Each completed receipt uses one call, and its
components retain their separate scopes and timestamps.
Deployment shape
- FastAPI gateway (systemd user service) on the VPS, fronted by a Cloudflare Tunnel
- SQLite (WAL) for keys, metering, watches, invoices; Stripe (LIVE) subscriptions for paid tiers
- Port 8803; per-product data dir
/home/hermes/apps/breachwatch/data/ - Shared MCP transport:
gateway/../_shared/mcp_transport.py(mirrored here)
Operations
GET /health— livenessGET /.well-known/mcp-manifest.json— tool discovery documentPOST /mcp— MCP streamable-HTTP transport (protocol 2025-03-26)GET /docs— OpenAPI docs;GET /openapi.json— raw schema
Status
Live in production since 2026-11-30. All endpoints verified with real upstream data (FRED, CoinGecko, DefiLlama, crt.sh, RDAP, Internet Archive, public RPCs).
Operated by Open Agents · contact: 6neonedge9@gmail.com
Next.js advisory applicability
Call bw_nextjs_advisory over MCP or send {"lockfile":"<package-lock.json text>"}
to POST /v1/advisories/nextjs with your BreachWatch key. The first assessment
covers CVE-2025-67779 on Next.js 15.5. It distinguishes the affected 15.5.8
version, the fix on that line from 15.5.9, and unsupported or ambiguous
inventory. The lockfile alone establishes only the resolved package version.
The optional serving_evidence field accepts the original signed RemedyProof
observation envelope as JSON text (up to 8000 UTF-8 bytes). The accepted
schemas are oci-deployment-observation-v4, oci-deployment-observation-v5,
and oci-deployment-runtime-monitor-v1. The lockfile limit is 131072 UTF-8
bytes. A deployment operator can configure an
existing collector in BW_SERVING_TRUST_PATH, a private server-side JSON
object keyed by caller key SHA-256. Each value is an array of enrolled records
with caseId, propertyId, receiptId, hostname, keyId, and publicKey
(the collector's Ed25519 SubjectPublicKeyInfo DER in unpadded base64url).
Register a collector only after confirming site authorization in RemedyProof.
Without enrollment the serving result is unknown. A verified result covers
the two signed slots at the observation time. Observations expire after an
hour and mixed builds do not verify. The tool installs nothing, contacts no
sites, and does not store submitted evidence.
No installation packages available.