Splitting into two rules

This commit is contained in:
Наталья Шорникова 2020-10-28 19:13:29 +03:00
parent ef8f5e626f
commit a4a3e01f25
2 changed files with 28 additions and 12 deletions

View File

@ -19,17 +19,6 @@ detection:
ScriptBlockText|contains|all:
- 'CL_Mutexverifiers.ps1'
- 'runAfterCancelProcess'
selection2:
EventID: 4104
ScriptBlockText|contains:
- 'CL_Mutexverifiers.ps1'
- 'runAfterCancelProcess'
timeframe: 1m
condition:
- selection
# PS > Import-Module c:\Windows\diagnostics\system\Audio\CL_Mutexverifiers.ps1; runAfterCancelProcess c:\Evil.exe
- selection2 | count(ScriptBlockText) by Computer > 2
# PS > Import-Module c:\Windows\diagnostics\system\Audio\CL_Mutexverifiers.ps1
# PS > runAfterCancelProcess c:\Evil.exe
condition: selection
falsepositives: Unknown
level: high

View File

@ -0,0 +1,27 @@
title: Execution via CL_Mutexverifiers.ps1
id: 39776c99-1c7b-4ba0-b5aa-641525eee1a4
description: Detects Execution via runAfterCancelProcess in CL_Mutexverifiers.ps1 module
status: experimental
author: oscd.community, Natalia Shornikova
date: 2020/10/14
references:
- https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSScripts/CL_mutexverifiers.yml
- https://twitter.com/pabraeken/status/995111125447577600
tags:
- attack.defense_evasion
- attack.t1216
logsource:
product: windows
service: powershell
detection:
selection:
selection2:
EventID: 4104
ScriptBlockText|contains:
- 'CL_Mutexverifiers.ps1'
- 'runAfterCancelProcess'
condition: selection2 | count(ScriptBlockText) by Computer > 2
# PS > Import-Module c:\Windows\diagnostics\system\Audio\CL_Mutexverifiers.ps1
# PS > runAfterCancelProcess c:\Evil.exe
falsepositives: Unknown
level: high