PH_Rule_TH_ES_WINDOWS_9
Enabled
Detects Windows Powershell opening TCP Connection
7
Security
Command and Control
Command and Control consists of techniques that adversaries may use to communicate with systems under their control within a victim network. Adversaries commonly attempt to mimic normal, expected traffic to avoid detection. There are many ways an adversary can establish command and control with various levels of stealth depending on the victim’s network structure and defenses.
https://attack.mitre.org/tactics/TA0011No Technique Specified
Network
Windows App Log / Agent or OMI
Correlation
No remediation guidance specified
If the following pattern or patterns match an ingested event within the given time window in seconds, trigger an incident.
300 seconds
If the following defined pattern/s occur within a 300 second time window.
Hafnium
This is the named definition of the event query, this is important if multiple subpatterns are defined to distinguish them.
This is the query logic that matches incoming events
eventType="Win-PowerShell-4104" AND msg REGEXP ( ".*Invoke-PowerShellTCP.*" )
This defines how matching events are aggregated, only events with the same matching attribute values are grouped into one unique incident ID
hostName
This is most typically a numerical constraint that defines when the rule should trigger an incident
COUNT(*) >= 1
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
hostName = Hafnium.hostName