Repository navigation
Document the ASN risk known-scanners split (#15) - #17
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_reportas 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
asn_risk,asn_risk_history, theASN_RISK_SCANNERScomment,asn-risk --scannersandasn --risk.scanners="only"returns activity rows (norisk_score/rank/percentile),asns_report,asns_total/asns_returned,scanner_reportandsummary.scanners_observedon every response, deprecated keys, andknown_scanner(top-level object vs per-entry boolean) on the per-ASN call.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).Notes for review
known_scanner.period != latest_monthcases (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.pyandtests/test_cli.pyare untouched.Verification
ruff format --check,ruff check,pytest(110 passed); the built wheel contains only thehoneydbpackage.🤖 Generated with Claude Code