Systems Initiating Connections to a High Number of Ports
Detects hosts that establish network connections across a large number of unique ports within a given period. This behavior may indicate port scanning, network reconnaissance, or potentially malicious enumeration activity originating from a compromised host or unauthorized tool. The query aggregates by host and process, listing associated filenames, command lines, and user context to assist with triage.
CQL · Falcon Next-Gen SIEMCopy query
#event_simpleName=/^(NetworkConnectIP4|ProcessRollup2)$/
| falconPID:=TargetProcessId | falconPID:=ContextProcessId
| UserID:=UserSid | UserID:=UID
| selfJoinFilter(field=[aid, falconPID], where=[{#event_simpleName=NetworkConnectIP4}, {#event_simpleName=ProcessRollup2}])
| groupBy([aid, ComputerName, falconPID], function=([
collect([FileName, CommandLine, UserName, UserID]),
count(RemotePort, as=uniquePortCount),
collect([RemotePort], separator=", ", limit=25),
count(RemoteAddressIP4, distinct=true, as=remoteIPcount)
]), limit=max)
| FileName=* RemotePort=*
| test(uniquePortCount>25)systems_initiating_connections_to_a_high_number_of_ports.yml
T1595, T1046
CrowdStrike
Hunting
Endpoint
Insight
2025-10-30
2025-10-30
