Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-Recon-DistributedPortScanSweep.

Unlock with Pro - from £29/user/mo
THREAT-Recon-DistributedPortScanSweep Elastic Security · Elastic

Detect Distributed Low-and-Slow Port/Service Scanning Sweep in Elastic Security

Adversaries increasingly avoid classic single-source port scan detection (which alerts on one IP hitting many ports/hosts in a short window) by distributing the sweep across a large pool of source IPs — botnet nodes, residential proxies, or rented scanning infrastructure — with each individual source only touching a handful of destination hosts or ports. No single source ever crosses a per-IP threshold, but the aggregate campaign methodically walks the organization's entire public IP block (T1595.001 — Active Scanning: Scanning IP Blocks) looking for exposed services ahead of exploitation. This is a persistent detection gap because most SIEM scan-detection rules key off a single source IP's touch count within a window; a coordinated low-and-slow sweep spread across dozens or hundreds of source IPs, each staying under that threshold, sails through undetected. Reliable detection requires aggregating perimeter firewall deny/reset telemetry at the destination CIDR level across ALL source IPs in a rolling window, then flagging when a large number of distinct low-touch sources collectively achieve high coverage of the organization's address space — the fingerprint of a coordinated sweep rather than background internet noise.

MITRE ATT&CK

Tactic
Reconnaissance

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by destination.address with maxspan=24h
  [network where event.action in ("deny", "drop", "reset") and
   network.direction == "inbound" and
   destination.ip : ("203.0.113.0/24", "198.51.100.0/23")] with runs=50
medium severity medium confidence

Elastic EQL sequence over perimeter firewall network events (via a firewall integration such as Palo Alto, Fortinet, or Cisco ASA shipping to logs-*) approximating the distributed sweep pattern: 50 or more denied/dropped/reset inbound connection events against the organization's registered public CIDR ranges within a 24h window, aggregated by destination address to surface which parts of the IP block are being swept. Elastic EQL cannot natively express the per-source low-touch aggregation used in the KQL/SPL primary detection — pair this with the Elastic SIEM Detection Engine's threshold/EQL correlation rule (grouping by source.ip with a max-count cap) to fully reproduce the two-stage low-touch + broad-coverage logic.

Data Sources

Elastic Network Traffic integrations (Palo Alto, Fortinet, Cisco ASA)Packetbeat / Zeek perimeter flow data

Required Tables

logs-panw.panos-*logs-fortinet_fortigate.log-*logs-network_traffic.flow-*

False Positives & Tuning

  • Known internet research scanners (Shodan, Censys, Shadowserver, GreyNoise) sweeping the same address space on a recurring schedule
  • Contracted attack-surface-management vendors performing authorized recurring external scans

Other platforms for THREAT-Recon-DistributedPortScanSweep


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulated Low-Touch Multi-Source Port Probe (Single Host, Multiple Ports)

    Expected signal: Perimeter firewall deny/reset log entries for the connection attempts to closed/filtered ports on the lab target, recorded with the source IP and each probed destination port.

  2. Test 2Simulated Coordinated Sweep (Multiple Scripted Sources, Sequential IP Block Walk)

    Expected signal: Firewall deny/reset log entries showing the same source IP touching multiple sequential destination IPs in the lab CIDR block, each with a small number of probed ports.

  3. Test 3Masscan High-Speed IP Block Sweep (Single Source, Lab Range)

    Expected signal: Firewall/NetFlow records showing SYN-only or single-packet connection attempts across every host in the lab /28 range from one source IP.

Unlock playbooks & atomic tests with Pro

Get the full detection package for THREAT-Recon-DistributedPortScanSweep — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections