While testing #2999, @ilija-lazoroski found that "Scanned Servers" in the report shows "unknown" (should've been SSH).

This is because the UI shows Machine.network_services and that field is only updated once in ScanEventHandler when a TCPScanEvent is published. The network service is hard-coded to be updated to NetworkService.UNKNOWN.
A Machine's network_services should be updated every time we get new information about them (which is only from fingerprinting, as of now).
Tasks
Agent
Island
While testing #2999, @ilija-lazoroski found that "Scanned Servers" in the report shows "unknown" (should've been SSH).
This is because the UI shows
Machine.network_servicesand that field is only updated once inScanEventHandlerwhen aTCPScanEventis published. The network service is hard-coded to be updated toNetworkService.UNKNOWN.A
Machine'snetwork_servicesshould be updated every time we get new information about them (which is only from fingerprinting, as of now).Tasks
Agent
NetworkPortto aSocketAddressand rename it (0d) @mssalvatoreFingerprintEventmodel for fingerprinters to publish (0d) @mssalvatoreFingerprintEventsHTTPFingerprinterto publishHTTPRequestEvents (0d) @mssalvatoreIsland
FingerprintEvents and update the machine (see ScanEventHandler for inspiration) (0.25d) - @shreyamalviyaScanEventHandler._get_network_services_from_event()so that known network services are not overwritten (0d) @mssalvatore