ca09ae5039
Edited suggested searches to improve performance:
VAR+
16ms: .*cmd.*(?:\/c|\/r).*set.*(?:\{\d\}){1,}\\\"\s+?\-f(?:.*\)){1,}.*\"
6ms: .*cmd.{0,5}(?:\/c|\/r)(?:\s|)\"set\s[a-zA-Z]{3,6}.*(?:\{\d\}){1,}\\\"\s+?\-f(?:.*\)){1,}.*\"
STDIN+
7ms: .*cmd.*(?:\/c|\/r).*powershell.+(?:\$\{?input}?|noexit).*\"
3ms: .*cmd.{0,5}(?:\/c|\/r).+powershell.+(?:\$\{?input\}?|noexit).+\"
CLIP+
28ms: .*cmd.*(?:\/c|\/r).*\|.*clip(?:\.exe)?.*&&.*clipboard]::\(\s\\\"\{\d\}.*\-f.*\"
11ms: .*cmd.{0,5}(?:\/c|\/r).+clip(?:\.exe)?.{0,4}&&.+clipboard]::\(\s\\\"\{\d\}.+\-f.+\"
29 lines
931 B
YAML
29 lines
931 B
YAML
title: Invoke-Obfuscation CLIP+ Launcher
|
|
id: 73e67340-0d25-11eb-adc1-0242ac120002
|
|
description: Detects Obfuscated use of Clip.exe to execute PowerShell
|
|
status: experimental
|
|
author: Jonathan Cheong, oscd.community
|
|
date: 2020/10/13
|
|
references:
|
|
- https://github.com/Neo23x0/sigma/issues/1009 #(Task 26)
|
|
tags:
|
|
- attack.defense_evasion
|
|
- attack.t1027
|
|
- attack.execution
|
|
- attack.t1059.001
|
|
logsource:
|
|
product: windows
|
|
service: powershell
|
|
detection:
|
|
selection_1:
|
|
EventID: 4104
|
|
selection_2:
|
|
- ScriptBlockText|re: '.*cmd.{0,5}(?:\/c|\/r).+clip(?:\.exe)?.{0,4}&&.+clipboard]::\(\s\\\"\{\d\}.+\-f.+\"'
|
|
selection_3:
|
|
EventID: 4103
|
|
selection_4:
|
|
- Payload|re: '.*cmd.{0,5}(?:\/c|\/r).+clip(?:\.exe)?.{0,4}&&.+clipboard]::\(\s\\\"\{\d\}.+\-f.+\"'
|
|
condition: ( selection_1 and selection_2 ) or ( selection_3 and selection_4 )
|
|
falsepositives:
|
|
- Unknown
|
|
level: high |