Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
product: windows
category: ps_script
definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
selection:
ScriptBlockText|contains|all:
- '$env:APPDATA'
- 'function MainPayload'
- '::WriteAllBytes'
- 'wscript.exe'
condition: selection
falsepositives:
- Unknown