mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-21 07:41:28 +02:00
The unit of exposure is now a service — (ip, port) — not a bare open port. Pipeline (EXPANSION): L0 produce hosts, L1 cdn_check + passive_ports, L2 port_scan, L3 http_probe, L4 screenshot/waf_detect/service_fingerprint. - cdn_check applies to every target type and records cdn_type, so a domain scan finally knows which addresses are CDN-fronted. cdn/waf is an edge you do not own (edge ports only); cloud is your own machine (scanned in full). - port_scan decides and records a per-address scan_policy (full/web/skip) honouring the scan context's excluded_ips, and offers port profiles, exclusions, scan type, a tarpit threshold and an address budget. - passive_ports reads Shodan internetdb through naabu -passive: keyless, touches_target=False, so a passive-intensity scan still gets exposure data. - http_probe seeds its host x port matrix from open ports and folds every live response back onto the port (is_http, tls, product). - service_fingerprint names the software behind non-web ports with a pure Python banner prober (tools/banner/), including a SOCKS5 CONNECT so it honours the context proxy. naabu -sV is unimplemented. - shared/definitions/ports.py is the one vocabulary; ip_inventory and port_inventory are the only writers of ip_addresses/ports. - open_ports_found is measured from the table (DERIVED_COUNTS): four stages write ports, so summing stage results double-counted. - naabu failures no longer report zero open ports as success. Surfaces: a Services tab (SERVICE_QUERY grammar, 16 fields, 18 counted leads, 9 group dimensions, detail sheet) built on the shared results shell, and an outlier-first Exposure panel on the Overview. Every count is a promise — leads, groups and panel pivots were verified to equal the row count they land on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BnC2xMMzV6WQnpDp5zcXoU
22 lines
499 B
Python
22 lines
499 B
Python
from shared.services.orchestrator.aggregate import (
|
|
COUNT_TO_COLUMN,
|
|
aggregate_counts,
|
|
aggregate_status,
|
|
derived_counts,
|
|
)
|
|
from shared.services.orchestrator.events import ScanEventPublisher
|
|
from shared.services.orchestrator.tracking import (
|
|
ScanActivityService,
|
|
ScanCommandRecorder,
|
|
)
|
|
|
|
__all__ = [
|
|
"COUNT_TO_COLUMN",
|
|
"ScanActivityService",
|
|
"ScanCommandRecorder",
|
|
"ScanEventPublisher",
|
|
"aggregate_counts",
|
|
"aggregate_status",
|
|
"derived_counts",
|
|
]
|