You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cap open ports on catch-all hosts across every port source #3671
#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:
portscan streams 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-65535 still yields every port, and portscan replays its cached ports for each extra hostname that resolves to the IP.
A second passive source whose response stays under the cap, ports speculate derives from URLs, and asset_inventory replays 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.
Activity