Cap open ports on catch-all hosts across every port source
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, networking
Research direction
Start by reading the cdn_port_filter.max_ports implementation from #3663, especially Scanner.filter_catch_all_ports() and the existing CDN/WAF check in ScanEgress where the central cap would live. Then trace the portscan module's masscan result streaming and its cached-port replay per hostname, plus the speculate URL-derived ports and asset_inventory replay paths that bypass the cap today. Done means catch-all hosts are recorded on the scan by any source and the cap is enforced once in ScanEgress, with portscan counting distinct open ports per host as its own detection.
Written by the indexing model from the issue text.
Description
#3663 adds cdn_port_filter.max_ports: when a passive port source (shodan_idb, shodan_enterprise, censys_ip) lists more than that many open TCP ports for a host, only cdn_port_filter.allowed_ports and explicitly targeted ports are kept. Each module applies it to its own API response through Scanner.filter_catch_all_ports(), and the verdict isn't recorded anywhere, so other sources can still flood the same host:
portscanstreams masscan results port by port and never consults the cap. Against a host that answers SYN-ACK on every port,-c modules.portscan.ports=1-65535still yields every port, andportscanreplays its cached ports for each extra hostname that resolves to the IP.- A second passive source whose response stays under the cap, ports
speculatederives from URLs, andasset_inventoryreplays aren't capped either.
Proposal: record catch-all hosts on the scan when a source detects one, and enforce the cap centrally next to the existing CDN/WAF check in ScanEgress, reusing its seed exemption. portscan would need its own detection, such as counting distinct open ports per host as masscan reports them.
- Dominant language
- Python
- Stars
- 10.9k
- Forks
- 959
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 84
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blacklanternsecurity/bbot
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blacklanternsecurity/bbot#3679 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
blacklanternsecurity/bbot#3678 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 22/100
blacklanternsecurity/bbot#3646 · 2 reactions ·
Maintainers usually reply within 2 days
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 58/100
blacklanternsecurity/bbot#3630 · 1 assignee ·
Maintainers usually reply within 2 days
-
Publish python deps for modules as optional depencency groupsPossibly taken @liquidsec claimed this 27 days ago. Openenhancement
blacklanternsecurity/bbot#3581 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
All issues in blacklanternsecurity/bbot
Similar issues
-
eegprep-lean: set channel types from the Zarr group's channel_typePossibly taken @claude claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sccn/eegprep#668 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Link Checker ReportOpenBot Type: Bug Type: Documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
area: ci enhancement perceived difficulty: 1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainers usually reply within 1 day