2020-10-15 10:36:27 +00:00
|
|
|
title: Invoke-Obfuscation VAR+ Launcher
|
|
|
|
id: 0adfbc14-0ed1-11eb-adc1-0242ac120002
|
|
|
|
description: Detects Obfuscated use of Environment Variables to execute PowerShell
|
|
|
|
status: experimental
|
|
|
|
author: Jonathan Cheong, oscd.community
|
|
|
|
date: 2020/10/15
|
|
|
|
references:
|
|
|
|
- https://github.com/Neo23x0/sigma/issues/1009 #(Task 24)
|
|
|
|
tags:
|
|
|
|
- attack.defense_evasion
|
|
|
|
- attack.t1027
|
|
|
|
- attack.execution
|
|
|
|
- attack.t1059.001
|
|
|
|
logsource:
|
|
|
|
product: windows
|
|
|
|
service: powershell
|
|
|
|
detection:
|
|
|
|
selection_1:
|
|
|
|
EventID: 4104
|
|
|
|
selection_2:
|
2020-10-18 10:15:43 +00:00
|
|
|
- ScriptBlockText|re: '.*cmd.{0,5}(?:\/c|\/r)(?:\s|)\"set\s[a-zA-Z]{3,6}.*(?:\{\d\}){1,}\\\"\s+?\-f(?:.*\)){1,}.*\"'
|
2020-10-15 10:36:27 +00:00
|
|
|
selection_3:
|
|
|
|
EventID: 4103
|
|
|
|
selection_4:
|
2020-10-18 10:15:43 +00:00
|
|
|
- Payload|re: '.*cmd.{0,5}(?:\/c|\/r)(?:\s|)\"set\s[a-zA-Z]{3,6}.*(?:\{\d\}){1,}\\\"\s+?\-f(?:.*\)){1,}.*\"'
|
2020-10-15 10:36:27 +00:00
|
|
|
condition: ( selection_1 and selection_2 ) or ( selection_3 and selection_4 )
|
|
|
|
falsepositives:
|
|
|
|
- Unknown
|
|
|
|
level: high
|