Skip to content

Commit

Permalink
Merge pull request SigmaHQ#865 from j91321/defender-rules
Browse files Browse the repository at this point in the history
Windows Defender logsource and rules
  • Loading branch information
Neo23x0 authored Jun 30, 2020
2 parents eb3a6e8 + 24029d9 commit 2e3669a
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
26 changes: 26 additions & 0 deletions rules/windows/other/win_defender_disabled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: Windows Defender Threat Detection Disabled
id: fe34868f-6e0e-4882-81f6-c43aa8f15b62
description: Detects disabling Windows Defender threat protection
date: 2020/07/28
author: Ján Trenčanský
references:
- https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-antivirus/troubleshoot-windows-defender-antivirus
status: stable
tags:
- attack.defense_evasion
- attack.t1089
- attack.t1562.001
logsource:
product: windows
service: windefend
detection:
selection:
EventID:
- 5001
- 5010
- 5012
- 5101
condition: selection
falsepositives:
- Administrator actions
level: high
22 changes: 22 additions & 0 deletions rules/windows/other/win_defender_threat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: Windows Defender Threat Detected
id: 57b649ef-ff42-4fb0-8bf6-62da243a1708
description: Detects all actions taken by Windows Defender malware detection engines
date: 2020/07/28
author: Ján Trenčanský
references:
- https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-antivirus/troubleshoot-windows-defender-antivirus
status: stable
logsource:
product: windows
service: windefend
detection:
selection:
EventID:
- 1006
- 1116
- 1015
- 1117
condition: selection
falsepositives:
- unlikely
level: high
5 changes: 5 additions & 0 deletions tools/config/logstash-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ logsources:
service: dhcp
conditions:
Channel: 'Microsoft-Windows-DHCP-Server/Operational'
windows-defender:
product: windows
service: windefend
conditions:
Channel: 'Microsoft-Windows-Windows Defender/Operational'
defaultindex: logstash-*
5 changes: 5 additions & 0 deletions tools/config/powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ logsources:
service: dhcp
conditions:
LogName: 'Microsoft-Windows-DHCP-Server/Operational'
windows-defender:
product: windows
service: windefend
conditions:
LogName: 'Microsoft-Windows-Windows Defender/Operational'
5 changes: 5 additions & 0 deletions tools/config/winlogbeat-modules-enabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ logsources:
service: dhcp
conditions:
winlog.provider_name: 'Microsoft-Windows-DHCP-Server/Operational'
windows-defender:
product: windows
service: windefend
conditions:
winlog.channel: 'Microsoft-Windows-Windows Defender/Operational'
defaultindex: winlogbeat-*
# Extract all field names qith yq:
# yq -r '.detection | del(.condition) | map(keys) | .[][]' $(find sigma/rules/windows -name '*.yml') | sort -u | grep -v ^EventID$ | sed 's/^\(.*\)/ \1: winlog.event_data.\1/g'
Expand Down
5 changes: 5 additions & 0 deletions tools/config/winlogbeat-old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ logsources:
service: dhcp
conditions:
source: 'Microsoft-Windows-DHCP-Server/Operational'
windows-defender:
product: windows
service: windefend
conditions:
source: 'Microsoft-Windows-Windows Defender/Operational'
defaultindex: winlogbeat-*
# Extract all field names qith yq:
# yq -r '.detection | del(.condition) | map(keys) | .[][]' $(find sigma/rules/windows -name '*.yml') | sort -u | grep -v ^EventID$ | sed 's/^\(.*\)/ \1: event_data.\1/g'
Expand Down
5 changes: 5 additions & 0 deletions tools/config/winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ logsources:
service: dhcp
conditions:
winlog.provider_name: 'Microsoft-Windows-DHCP-Server/Operational'
windows-defender:
product: windows
service: windefend
conditions:
winlog.channel: 'Microsoft-Windows-Windows Defender/Operational'
defaultindex: winlogbeat-*
# Extract all field names qith yq:
# yq -r '.detection | del(.condition) | map(keys) | .[][]' $(find sigma/rules/windows -name '*.yml') | sort -u | grep -v ^EventID$ | sed 's/^\(.*\)/ \1: winlog.event_data.\1/g'
Expand Down

0 comments on commit 2e3669a

Please sign in to comment.