FortiSIEM Rules

Invalid TCP/UDP Port Traffic

Rule ID

PH_Rule_Flow_205

Default Status

Enabled

Description

Detects invalid TCP/UDP traffic with port number 0 (more than 10 in 3 minutes)

Severity

9

Category

Security

MITRE ATT&CK® Tactics

Command And Control

MITRE ATT&CK® Techniques


T1571

Non-Standard Port

Adversaries may communicate using a protocol and port paring that are typically not associated. For example, HTTPS over port 8088 or port 587, as opposed to the traditional port 443. Adversaries may make changes to the standard port used by a protocol to bypass filtering or muddle analysis/parsing of network data.

https://attack.mitre.org/techniques/T1571

Impacts

Network

Data Source

FortiGate via Syslog or Netflow,Checkpoint via Syslog or Netflow, Palo Alto via Syslog or Netflow

Detection

Correlation

Remediation Guidance

No remediation guidance specified

Time Window

If the following pattern or patterns match an ingested event within the given time window in seconds, trigger an incident.

180 seconds

Trigger Conditions

If the following defined pattern/s occur within a 180 second time window.

InvalidTCPUDP

SubPattern Definitions

SubPattern Name: InvalidTCPUDP

This is the named definition of the event query, this is important if multiple subpatterns are defined to distinguish them.

SubPattern Query

This is the query logic that matches incoming events

(ipProto = 17 OR ipProto = 6) AND destIpPort = 0 AND eventType IN (Group@PH_SYS_EVENT_PermitNetTraffic, Group@PH_SYS_EVENT_NetflowTraffic, Group@PH_SYS_EVENT_BiNetflowTraffic)

Group by Attributes

This defines how matching events are aggregated, only events with the same matching attribute values are grouped into one unique incident ID

srcIpAddr

Aggregate Constraint

This is most typically a numerical constraint that defines when the rule should trigger an incident

COUNT(*) > 10

Incident Attribute Mapping

This section defines which fields in matching raw events should be mapped to the incident attributes in the resulting incident.

The available raw event attributes to map are limited to the group by attributes and the aggregate event constraint fields for each subpattern

 srcIpAddr = InvalidTCPUDP.srcIpAddr,
 incidentCount = InvalidTCPUDP.COUNT(*)