PH_Rule_TH_ES_WINDOWS_8
Disabled
Detects HAFNIUM Suspicious OWA access in an attempt to bypass authntication via POST to certain directories in Exchange OWA Server. This needs Windows agents to be run on these server to get IIS logs.
9
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
Microsoft IIS via FortiSIEM Agent
Correlation
Check if the source is patched for the CVE associated with the event. If yes then remove the host from the network and patch immediately. If host is not scanned then determine if the host is running the affected version of the application. If yes then patch immediately, else it is likely a false positive.
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 CONTAIN "AO-WUA-IIS-Web" AND httpMethod="POST" AND ( uriStem CONTAIN "/owa/auth/Current/themes/resources/" OR (uriStem CONTAIN "/owa/auth/Current/" AND httpUserAgent IN ("DuckDuckBot/1.0;+(+http://duckduckgo.com/duckduckbot.html)","Mozilla/5.0+(X11;+Linux+x86_64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/51.0.2704.103+Safari/537.36","Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)","Mozilla/5.0+(compatible;+Bingbot/2.0;++http://www.bing.com/bingbot.htm)","Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html","Mozilla/5.0+(compatible;+Konqueror/3.5;+Linux)+KHTML/3.5.5+(like+Gecko)+(Exabot-Thumbnails)","Mozilla/5.0+(compatible;+Yahoo!+Slurp;+http://help.yahoo.com/help/us/ysearch/slurp)","Mozilla/5.0+(compatible;+YandexBot/3.0;++http://yandex.com/bots)","facebookexternalhit/1.1+(+http://www.facebook.com/externalhit_uatext.php)")) OR (uriStem CONTAIN "/ecp/" AND httpUserAgent IN ("ExchangeServicesClient/0.0.0.0","python-requests/2.19.1","python-requests/2.25.1")) OR (uriStem REGEXP ".*/aspnet_client/.*|.*/owa/.*" AND httpUserAgent IN ("Googlebot/2.1+(+http://www.googlebot.com/bot.html)","Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)","antSword/v2.1")) OR uriStem REGEXP ".*/ecp/default\.flt.*|.*/ecp/main\.css.*|.*/owa/auth/Current/.*" OR (uriStem REGEXP ".*/ecp/.*" AND uriStem REGEXP ".*\.js.*"))
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