Skip to content

Document the ASN risk known-scanners split (#15) - #17

Merged
foospidy merged 1 commit into
masterfrom
feature/15-asn-risk-known-scanners
Oct 8, 2026
Merged

foospidy merged 1 commit into
masterfrom
feature/15-asn-risk-known-scanners

Conversation

@foospidy

@foospidy foospidy commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Closes #15.

From the August 2026 report on, the API keeps known internet scanners out of the ASN risk ranking and lists them in a separate, unscored scanner_report as benign activity. The client passes responses through untouched, so there is no behaviour change — this brings its documentation and tests in line with the contract.

Changes

  • Docstrings / CLI help: asn_risk, asn_risk_history, the ASN_RISK_SCANNERS comment, asn-risk --scanners and asn --risk.
  • README: rewritten ASN risk section — scanners="only" returns activity rows (no risk_score / rank / percentile), asns_report, asns_total / asns_returned, scanner_report and summary.scanners_observed on every response, deprecated keys, and known_scanner (top-level object vs per-entry boolean) on the per-ASN call.
  • Tests: new tests/test_asn_risk_fixtures.py (29 tests) against seven trimmed fixtures — August 2026 (split shape) and July 2026 (methodology 1.0) reports, and three per-ASN responses (known scanner, ranked, scanner with a gap month).
  • Version: 2.1.2.

Notes for review

  • The fixtures are derived from the published monthly reports, not recorded from the live API.
  • The two known_scanner.period != latest_month cases (an ASN taken off the scanner list; an ASN absent in the latest month) are documented but have no fixture: no published month contains one yet.
  • tests/test_client.py and tests/test_cli.py are untouched.

Verification

ruff format --check, ruff check, pytest (110 passed); the built wheel contains only the honeydb package.

🤖 Generated with Claude Code

From the August 2026 report on, the API keeps known internet scanners out
of the ASN risk ranking and lists them in a separate, unscored
scanner_report. The client is a pass-through, so behaviour is unchanged;
this updates what it says:

- asn_risk / asn_risk_history docstrings, the ASN_RISK_SCANNERS comment,
  and the --scanners / --risk CLI help
- README ASN risk section and CLI examples: scanners=only returns
  activity rows, asns_report, asns_total / asns_returned, scanner_report,
  known_scanner on the per-ASN call
- tests against trimmed fixtures for August 2026 (split shape) and
  July 2026 (methodology 1.0), plus three per-ASN responses
- version 2.1.2

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@foospidy
foospidy merged commit 601e891 into master Oct 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ASN risk: scanners=only returns activity rows; known_scanner on the per-ASN call (honeydb-web #407)

1 participant