Invoke-Obfuscation VAR+ Launcher - PowerShell Module

Detects Obfuscated use of Environment Variables to execute PowerShell

Sigma rule (View on GitHub)

 1title: Invoke-Obfuscation VAR+ Launcher - PowerShell Module
 2id: 6bfb8fa7-b2e7-4f6c-8d9d-824e5d06ea9e
 3related:
 4    - id: 0adfbc14-0ed1-11eb-adc1-0242ac120002
 5      type: derived
 6status: test
 7description: Detects Obfuscated use of Environment Variables to execute PowerShell
 8references:
 9    - https://github.com/SigmaHQ/sigma/issues/1009  # (Task 24)
10author: Jonathan Cheong, oscd.community
11date: 2020/10/15
12modified: 2024/04/05
13tags:
14    - attack.defense_evasion
15    - attack.t1027
16    - attack.execution
17    - attack.t1059.001
18logsource:
19    product: windows
20    category: ps_module
21    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
22detection:
23    selection_4103:
24        Payload|re: 'cmd.{0,5}(?:/c|/r)(?:\s|)"set\s[a-zA-Z]{3,6}.*(?:\{\d\}){1,}\\"\s+?-f(?:.*\)){1,}.*"'
25    condition: selection_4103
26falsepositives:
27    - Unknown
28level: high

References

Related rules

to-top