Detectionhighexperimental

HackTool - Defendnot Installation via PowerShell One-Liner

Detects execution of Defendnot installation via PowerShell one-liner that downloads and executes the Defendnot script from a remote URL. Defendnot is a hacktool that abuses Microsoft's undocumented WSC API to disable Windows Defender by registering itself as a fake antivirus product.

Open in Detection LabConvert ruleBuild Package
Swachchhanda Shrawan Poudel (Nextron Systems)Created 2026-10-1850b159ba-a147-40f7-9d11-561e724b8a2ewindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Detection Logic
Detection Logic1 selector
detection:
    selection:
        - ScriptBlockText|contains: 'https://dnot.sh/'
        - ScriptBlockText|contains|all:
              - '/defendnot'
              - 'github' # covers both api.github.com and raw.githubusercontent.com
    condition: selection
False Positives
Unlikely

False positives are unlikely for most environments. High confidence detection.