Name:Windows Defender ASR Audit Events id:0e4d46b1-22bd-4f0e-8337-ca6f60ad4bea version:10 date:None author:Michael Haag, Splunk status:production type:Anomaly Description:This detection searches for ASR audit events that are generated when a process or application attempts to perform an action that would be blocked by an ASR rule, but is allowed to proceed for auditing purposes. Data_source:
-Windows Event Log Defender 1122
-Windows Event Log Defender 1125
-Windows Event Log Defender 1132
-Windows Event Log Defender 1134
search:`ms_defender` EventCode IN ( 1122, 1125, 1132, 1134 ) | fillnull value=NULL | stats count min(_time) as firstTime max(_time) as lastTime by host EventCode Parent_Commandline Process_Name Target_Commandline Path ID RuleType
how_to_implement:The following analytic requires collection of Windows Defender Operational logs in either XML or multi-line. To collect, setup a new input for the Windows Defender Operational logs. In addition, it does require a lookup that maps the ID to ASR Rule name. Note that Audit and block Event IDs have different fields, therefore the analytic will need to be modified for each type of event. known_false_positives:Some false positives are expected initially as the ASR rules are tuned and configured. References: -https://asrgen.streamlit.app/ -https://learn.microsoft.com/en-us/defender-endpoint/attack-surface-reduction-rules-overview drilldown_searches: name:'View the detection results for - "$dest$"' search:'%original_detection_search% | search dest = "$dest$"' earliest_offset:'$info_min_time$' latest_offset:'$info_max_time$' name:'View risk events for the last 7 days for - "$dest$"' search:'| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`' earliest_offset:'7d' latest_offset:'0' analytic_story:['Windows Attack Surface Reduction']