Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
category: ps_script
product: windows
detection:
selection:
- ScriptBlockText|contains: 'https://dnot.sh/'
- ScriptBlockText|contains|all:
- '/defendnot'
- 'github' # covers both api.github.com and raw.githubusercontent.com
condition: selection
falsepositives:
- Unlikely