Techniques › T1571
T1571 Non-Standard Port
command and control — ESXi, Linux, macOS, Windows · attack.mitre.org · JSON
1
MITRE detection strategy
4
analytics
5
Sigma rules tagged attack.t1571
1
KEV CVEs mapped here
<p>Adversaries may communicate using a protocol and port pairing 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.</p><p>Adversaries may also make changes to victim systems to abuse non-standard ports. For example, Registry keys and other configuration settings can be used to modify protocol and port pairings.</p>
KEV CVEs mapped to this technique · CTID Mappings Explorer
| CVE | Vendor / product | Mapping type | State | Added |
|---|---|---|---|---|
| CVE-2023-38035 | Ivanti Sentry | secondary impact | Mapped | 2023-08-22 |
Detection strategy · ATT&CK Enterprise v19.2
- DET0227 Detection Strategy for Non-Standard Ports v1.0
AN0633 WindowsProcesses 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.Tunable:
PortThresholdsProcessAllowListTimeWindowAN0634 LinuxUnusual daemons or user processes binding/listening on ports outside of standard ranges, or initiating client connections using mismatched protocol/port pairings.linux:syslogprocesses binding to non-standard ports or sshd configured on unexpected port→ DC0038 Application Log ContentTunable:AllowedServicesPayloadEntropyThresholdAN0635 macOSApplications making outbound connections on non-standard ports or launchd services bound to ports inconsistent with system baselines.Tunable:BaselinePortProfilesAN0636 ESXiVM 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.Tunable:ESXiAllowedPorts
Sigma rules · SigmaHQ da9bb07d64, tag attack.t1571
Author: Florian Roth (Nextron Systems)
· 2017-03-19 (modified 2024-03-12) · logsource: product=windows category=network_connection · 4b89abaa-99fe-4232-afdd-8f9aa4d20382
Detects programs that connect to known malware callback ports based on statistical analysis from two different sandbox system databases
Author: Florian Roth (Nextron Systems)
· 2017-03-19 (modified 2024-03-12) · logsource: product=windows category=network_connection · 6d8c3d20-a5e1-494f-8412-4571d716cf5c
Detects programs that connect to uncommon destination ports
Author: frack113
· 2022-01-23 · logsource: product=windows category=ps_script · adf876b3-f1f8-4aa9-a4e4-a64106feec06
Adversaries may communicate using a protocol and port paring that are typically not associated.
For example, HTTPS over port 8088(Citation: Symantec Elfin Mar 2019) or port 587(Citation: Fortinet Agent Tesla April 2018) as opposed to the traditional port 443.
Author: hasselj
· 2024-05-10 · logsource: product=linux category=network_connection · dbfc7c98-04ab-4ab7-aa94-c74d22aa7376
Detects programs that connect to known malware callback ports based on threat intelligence reports.
Author: @neu5ron, SOC Prime Team, Corelight
· 2021-05-04 (modified 2022-11-29) · logsource: product=zeek service=dns · ede05abc-2c9e-4624-9944-9ff17fdc0bf5
The DNS Z flag is bit within the DNS protocol header that is, per the IETF design, meant to be used reserved (unused).
Although recently it has been used in DNSSec, the value being set to anything other than 0 should be rare.
Otherwise if it is set to non 0 and DNSSec is being used, then excluding the legitimate domains is low effort and high reward.
Determine if multiple of these files were accessed in a short period of time to further enhance the possibility of seeing if this was a one off or the possibility of larger sensitive file gathering.
This Sigma query is designed to accompany the Corelight Threat Hunting Guide, which can be found here: https://www3.corelight.com/corelights-introductory-guide-to-threat-hunting-with-zeek-bro-logs'