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: Script Block Logging must be enable
detection:
selection_cmdlet:
ScriptBlockText|contains:
- 'Add-AppPackage '
- 'Add-AppxPackage '
selection_flag:
ScriptBlockText|contains: ' -AllowUnsigned'
condition: all of selection_*
falsepositives:
- Installation of unsigned packages for testing purposes