Invoke-Obfuscation VAR+ Launcher - PowerShell

Detects Obfuscated use of Environment Variables to execute PowerShell

Sigma rule (View on GitHub)

 1title: Invoke-Obfuscation VAR+ Launcher - PowerShell
 2id: 0adfbc14-0ed1-11eb-adc1-0242ac120002
 3status: test
 4description: Detects Obfuscated use of Environment Variables to execute PowerShell
 5references:
 6    - https://github.com/SigmaHQ/sigma/issues/1009  # (Task 24)
 7author: Jonathan Cheong, oscd.community
 8date: 2020-10-15
 9modified: 2024-04-05
10tags:
11    - attack.defense-evasion
12    - attack.t1027
13    - attack.execution
14    - attack.t1059.001
15logsource:
16    product: windows
17    category: ps_script
18    definition: 'Requirements: Script Block Logging must be enabled'
19detection:
20    selection_4104:
21        ScriptBlockText|re: 'cmd.{0,5}(?:/c|/r)(?:\s|)"set\s[a-zA-Z]{3,6}.*(?:\{\d\}){1,}\\"\s+?-f(?:.*\)){1,}.*"'
22    condition: selection_4104
23falsepositives:
24    - Unknown
25level: high

References

Related rules

to-top