VeriKQL by Kaushik Saha

T1571 Non-Standard Port

Command and Controlon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0227 Detection Strategy for Non-Standard Ports

AN0633 Windows

Processes initiating outbound connections on uncommon ports or using protocols inconsistent with the assigned port. Correlating process creation with subsequent network connections reveals anomalies such as svchost.exe or Office applications using high, atypical ports.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=5156, 5157
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (5156, 5157)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (5156, 5157)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (5156, 5157)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN0634 Linux

Unusual daemons or user processes binding/listening on ports outside of standard ranges, or initiating client connections using mismatched protocol/port pairings.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLsocket/connect syscallsNot mapped to Sentinel yet.
linux:syslogprocesses binding to non-standard ports or sshd configured on unexpected portNot mapped to Sentinel yet.
linux:osqueryprocess listening or connecting on non-standard portsNot mapped to Sentinel yet.

AN0635 macOS

Applications making outbound connections on non-standard ports or launchd services bound to ports inconsistent with system baselines.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogoutbound TCP/UDP traffic over unexpected portNot mapped to Sentinel yet.
macos:unifiedloglaunchd services binding to non-standard portsNot mapped to Sentinel yet.

AN0636 ESXi

VM services or management daemons communicating on ports not defined by VMware defaults, such as vpxa or hostd processes initiating traffic over high-numbered or unexpected ports.

MITRE log sourceIn Microsoft Sentinel
esxi:vpxdESXi service connections on unexpected portsNot mapped to Sentinel yet.
esxcli:networklistening sockets bound to non-standard portsNot mapped to Sentinel yet.

Content Hub rules tagged with it (18)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1571 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

5 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.