Invoke-Obfuscation VAR+ Launcher - PowerShell Module

 Original Source: [Sigma source]
Title: Invoke-Obfuscation VAR+ Launcher - PowerShell Module
Status: test
Description:Detects Obfuscated use of Environment Variables to execute PowerShell
References:
  -https://github.com/SigmaHQ/sigma/issues/1009
Author: Jonathan Cheong, oscd.community
Date: 2020-10-15
modified:2024-04-05
Tags:
  • -'attack.stealth'
  • -'attack.t1027'
  • -'attack.execution'
  • -'attack.t1059.001'
Logsource:
  • product: windows
  • category: ps_module
  • definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
Detection:
  selection_4103:
    Payload|re: 'cmd.{0,5}(?:/c|/r)(?:\s|)"set\s[a-zA-Z]{3,6}.*(?:\{\d\}){1,}\\"\s+?-f(?:.*\)){1,}.*"'
  condition:selection_4103
Falsepositives:
  -Unknown
Level: high