diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-09 08:56:25 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-09 08:56:25 +0200 |
| commit | 42a36e88424aa3dac13ed3d578bfa871e44ad460 (patch) | |
| tree | badad98b9b5e2c069ba01a41189a0b8f56233e2d /tests/test_parse.py | |
| parent | 00c68e841c416c7c069869a52d64e8c15a72e1de (diff) | |
| download | abusectl-42a36e88424aa3dac13ed3d578bfa871e44ad460.tar.gz abusectl-42a36e88424aa3dac13ed3d578bfa871e44ad460.zip | |
docs: spec the contacts subcommand
Settles what the umbrella design left open for this part: RDAP bootstrap,
caching policy, and what happens for a netblock that publishes no abuse
contact.
Scope is IPs and domains, with a URL contributing only its host. The
bootstrap files are fetched from IANA and cached with a long TTL, while
responses are cached in memory for one run only: a stale bootstrap merely
misses, but a stale abuse address sends a report into a dead mailbox
silently. The registrable domain is found by walking up the labels and
asking the registry rather than by bundling a Public Suffix List, which
would be a transcribed table that goes stale weekly.
Address extraction is a strict abuse-role match with no fallback. In
particular it never constructs abuse@<domain>, because for a phishing
domain that mailbox belongs to the attacker and mailing it would confirm
both the catch and that the address is live.
Adds a fourth non-negotiable property: a query carries a bare host or IP
and never a URL. Property 1 governs what is published, and a query is a
disclosure that appears in no report, so a path segment that parse
deliberately flags rather than redacts would otherwise leak.
Transport is urllib with an injected fetch, so requirements.txt stays
empty and the suite keeps passing with sockets raising, for the whole
suite rather than for everything except contacts.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wrfqr2xqQfhtXCscU7zrdz
Diffstat (limited to 'tests/test_parse.py')
0 files changed, 0 insertions, 0 deletions
