Potential Low-Packet Port Scan Detected

This rule identifies a potential low-packet port scan. It detects final flows or firewall connection attempts from one internal source to many destination ports on one destination and transport, while requiring no more than two packets in each matching observation. Attackers can use low-packet scans to identify exposed services while minimizing completed connections. Low packet count is a scan heuristic and does not by itself prove that the traffic contains bare TCP SYN packets.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2023/05/17"
  3integration = ["network_traffic", "panw"]
  4maturity = "production"
  5updated_date = "2026/11/03"
  6
  7[rule]
  8author = ["Elastic"]
  9description = """
 10This rule identifies a potential low-packet port scan. It detects final flows or firewall connection attempts from one
 11internal source to many destination ports on one destination and transport, while requiring no more than two packets in
 12each matching observation. Attackers can use low-packet scans to identify exposed services while minimizing completed
 13connections. Low packet count is a scan heuristic and does not by itself prove that the traffic contains bare TCP SYN
 14packets.
 15"""
 16from = "now-9m"
 17index = ["logs-network_traffic.*", "packetbeat-*", "filebeat-*", "logs-panw.panos*"]
 18language = "kuery"
 19license = "Elastic License v2"
 20max_signals = 5
 21name = "Potential Low-Packet Port Scan Detected"
 22risk_score = 21
 23rule_id = "bbaa96b9-f36c-4898-ace2-581acb00a409"
 24severity = "low"
 25tags = [
 26    "Domain: Network",
 27    "Tactic: Discovery",
 28    "Tactic: Reconnaissance",
 29    "Use Case: Network Security Monitoring",
 30    "Data Source: PAN-OS",
 31    "Resources: Investigation Guide",
 32    "Noise: High",
 33    "Performance: Normal",
 34    "Profile: Aggressive",
 35    "Rule Type: Threshold",
 36    "Data Source: Network Packet Capture",
 37]
 38timestamp_override = "event.ingested"
 39type = "threshold"
 40query = '''
 41(
 42  (
 43    data_stream.dataset:network_traffic.flow and
 44    event.action:network_flow and
 45    network_traffic.flow.final:true
 46  ) or
 47  (
 48    type:flow and
 49    event.action:network_flow and
 50    flow.final:true
 51  ) or
 52  (
 53    (data_stream.dataset:panw.panos or event.dataset:panw.panos) and
 54    panw.panos.type:TRAFFIC and
 55    event.action:flow_started
 56  )
 57) and
 58destination.port:* and
 59network.transport:(tcp or udp) and
 60network.packets <= 2 and
 61source.ip:(10.0.0.0/8 or 172.16.0.0/12 or 192.168.0.0/16)
 62'''
 63note = """## Triage and analysis
 64
 65> **Disclaimer**:
 66> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
 67
 68### Investigating Potential Low-Packet Port Scan Detected
 69
 70Low-packet port scanning is a reconnaissance technique where an actor probes many ports while completing little or no
 71application exchange. This method helps adversaries identify exposed services for potential exploitation. The rule
 72flags final flows or firewall attempt records from an internal source to many ports on one destination and transport
 73when each observation contains no more than two packets. The heuristic does not verify TCP SYN flags.
 74
 75### Possible investigation steps
 76
 77- Review the source IP address involved in the alert to determine if it belongs to a known or authorized scanner. Check for any recent changes or unusual activity associated with this IP.
 78- Analyze the destination ports targeted by the scan to identify any patterns or specific services that may be of interest to the attacker. Determine if these ports are associated with critical or vulnerable services.
 79- Review `network.transport` and raw flow or firewall records. For TCP, inspect TCP flags or connection state from another source before classifying the activity as a SYN scan.
 80- Examine historical logs to identify any previous scanning activity from the same source IP or similar patterns of behavior. This can help establish whether the activity is part of a larger reconnaissance effort.
 81- Correlate the alert with other security events or alerts to assess if there is a broader attack campaign underway. Look for related alerts that might indicate subsequent exploitation attempts.
 82- Investigate the timing and frequency of the scan attempts to understand if they coincide with other suspicious activities or known attack windows. This can provide context on the attacker's intent and urgency.
 83- Assess the network's current security posture and ensure that appropriate defenses, such as firewalls and intrusion detection systems, are configured to mitigate potential exploitation of identified open ports.
 84
 85### False positive analysis
 86
 87- Internal network scanning tools or scripts used by IT teams for legitimate network mapping can trigger this rule. To manage this, create exceptions for known internal IP addresses or subnets used by IT for network discovery.
 88- Automated monitoring systems or security appliances that perform regular port checks might be flagged. Identify these systems and exclude their IP addresses from the rule to prevent false positives.
 89- Software updates or patch management systems that check multiple ports for service availability can be mistaken for a low-packet port scan. Add exceptions for these systems after validation.
 90- Load balancers or network devices that perform health checks across multiple ports may trigger the rule. Exclude these devices from the rule to ensure accurate detection.
 91- Development or testing environments where multiple port scans are part of routine operations can cause false positives. Implement exceptions for these environments to maintain focus on genuine threats.
 92
 93### Response and remediation
 94
 95- Isolate the affected internal IP address to prevent further reconnaissance or potential exploitation of identified open ports.
 96- Conduct a thorough review of firewall and network access control lists to ensure that only necessary ports are open and accessible from internal networks.
 97- Implement appropriate connection-attempt rate limits or access controls to reduce unauthorized scanning.
 98- Monitor the network for any unusual outbound traffic from the affected IP address, which may indicate further malicious activity or data exfiltration attempts.
 99- Escalate the incident to the security operations team for further analysis and to determine if additional network segments or systems are affected.
100- Update intrusion detection and prevention systems to enhance detection capabilities for similar low-packet scanning activity.
101- Review and update network segmentation policies to limit the exposure of critical services and systems to internal reconnaissance activities."""
102setup = """## Setup
103
104This rule supports final flow records from the Elastic Network Packet Capture integration and PAN-OS traffic attempt
105records. It also retains a compatibility branch for standalone Packetbeat.
106
107Network Packet Capture 2.0.0 and later always applies ECS compatibility remapping. On earlier integration versions,
108enable `map_to_ecs` (the default since 1.31.1) so completed flows contain
109`data_stream.dataset:network_traffic.flow`, `event.action:network_flow`, and
110`network_traffic.flow.final:true`. The standalone Packetbeat branch uses the root `flow.final` field and requires
111`type:flow`.
112
113This rule requires cumulative lifetime flow counters. For standalone Packetbeat, configure
114`packetbeat.flows.enable_delta_flow_reports: false`. Network Packet Capture package 1.34.3 does not expose that setting
115in its Fleet policy template and uses cumulative reports by default; verify the deployed package and agent version
116before relying on the rule. Delta flow reporting is unsupported because a final delta can contain zero or few packets
117even when the complete connection transferred many packets.
118
119For PAN-OS, ingest TRAFFIC records through the PAN-OS integration. The rule counts session starts and does not include
120terminated, dropped, or denied flows.
121
122The rule evaluates TCP and UDP separately. The `network.packets <= 2` condition identifies low-packet observations but
123is not TCP-flag evidence. Create exceptions for approved scanners and monitoring infrastructure after validation.
124"""
125
126[[rule.threat]]
127framework = "MITRE ATT&CK"
128
129[[rule.threat.technique]]
130id = "T1046"
131name = "Network Service Discovery"
132reference = "https://attack.mitre.org/techniques/T1046/"
133
134[rule.threat.tactic]
135id = "TA0007"
136name = "Discovery"
137reference = "https://attack.mitre.org/tactics/TA0007/"
138
139[[rule.threat]]
140framework = "MITRE ATT&CK"
141
142[[rule.threat.technique]]
143id = "T1595"
144name = "Active Scanning"
145reference = "https://attack.mitre.org/techniques/T1595/"
146
147[[rule.threat.technique.subtechnique]]
148id = "T1595.001"
149name = "Scanning IP Blocks"
150reference = "https://attack.mitre.org/techniques/T1595/001/"
151
152[rule.threat.tactic]
153id = "TA0043"
154name = "Reconnaissance"
155reference = "https://attack.mitre.org/tactics/TA0043/"
156
157[rule.threshold]
158field = ["destination.ip", "source.ip", "network.transport"]
159value = 1
160
161[[rule.threshold.cardinality]]
162field = "destination.port"
163value = 250
164
165[rule.alert_suppression.duration]
166unit = "h"
167value = 1

Triage and analysis

Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

Investigating Potential Low-Packet Port Scan Detected

Low-packet port scanning is a reconnaissance technique where an actor probes many ports while completing little or no application exchange. This method helps adversaries identify exposed services for potential exploitation. The rule flags final flows or firewall attempt records from an internal source to many ports on one destination and transport when each observation contains no more than two packets. The heuristic does not verify TCP SYN flags.

Possible investigation steps

  • Review the source IP address involved in the alert to determine if it belongs to a known or authorized scanner. Check for any recent changes or unusual activity associated with this IP.
  • Analyze the destination ports targeted by the scan to identify any patterns or specific services that may be of interest to the attacker. Determine if these ports are associated with critical or vulnerable services.
  • Review network.transport and raw flow or firewall records. For TCP, inspect TCP flags or connection state from another source before classifying the activity as a SYN scan.
  • Examine historical logs to identify any previous scanning activity from the same source IP or similar patterns of behavior. This can help establish whether the activity is part of a larger reconnaissance effort.
  • Correlate the alert with other security events or alerts to assess if there is a broader attack campaign underway. Look for related alerts that might indicate subsequent exploitation attempts.
  • Investigate the timing and frequency of the scan attempts to understand if they coincide with other suspicious activities or known attack windows. This can provide context on the attacker's intent and urgency.
  • Assess the network's current security posture and ensure that appropriate defenses, such as firewalls and intrusion detection systems, are configured to mitigate potential exploitation of identified open ports.

False positive analysis

  • Internal network scanning tools or scripts used by IT teams for legitimate network mapping can trigger this rule. To manage this, create exceptions for known internal IP addresses or subnets used by IT for network discovery.
  • Automated monitoring systems or security appliances that perform regular port checks might be flagged. Identify these systems and exclude their IP addresses from the rule to prevent false positives.
  • Software updates or patch management systems that check multiple ports for service availability can be mistaken for a low-packet port scan. Add exceptions for these systems after validation.
  • Load balancers or network devices that perform health checks across multiple ports may trigger the rule. Exclude these devices from the rule to ensure accurate detection.
  • Development or testing environments where multiple port scans are part of routine operations can cause false positives. Implement exceptions for these environments to maintain focus on genuine threats.

Response and remediation

  • Isolate the affected internal IP address to prevent further reconnaissance or potential exploitation of identified open ports.
  • Conduct a thorough review of firewall and network access control lists to ensure that only necessary ports are open and accessible from internal networks.
  • Implement appropriate connection-attempt rate limits or access controls to reduce unauthorized scanning.
  • Monitor the network for any unusual outbound traffic from the affected IP address, which may indicate further malicious activity or data exfiltration attempts.
  • Escalate the incident to the security operations team for further analysis and to determine if additional network segments or systems are affected.
  • Update intrusion detection and prevention systems to enhance detection capabilities for similar low-packet scanning activity.
  • Review and update network segmentation policies to limit the exposure of critical services and systems to internal reconnaissance activities.

Related rules

to-top