PowerShell: Defendnot hacktool installation via one-liner fetching dnot.sh

Flags PowerShell one-liners that reference dnot.sh and GitHub/defendnot paths consistent with Defendnot installation.

FreeReviewedSigma · High · v1
Product
windows
Category
ps_script
Author
Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2026-10-18
Updated
2026-10-19
title: "PowerShell: Defendnot hacktool installation via one-liner fetching dnot.sh"
id: 419821f3-86da-46b1-99cd-049575895a88
related:
  - id: 0aaa9689-9f38-491d-bd4d-a9af6eb43138
    type: similar
  - id: 50b159ba-a147-40f7-9d11-561e724b8a2e
    type: derived
status: experimental
description: This rule flags PowerShell script block content that includes the dnot.sh URL and a Defendnot path segment containing /defendnot and a GitHub reference. Such one-liners can download and execute a Defense Evasion component, specifically Defendnot, which is designed to impair Windows Defender by abusing an undocumented WSC API. The detection relies on ScriptBlockText telemetry from PowerShell script execution.
references:
  - https://github.com/es3n1n/defendnot/blob/525176a37721ead27d3f9f77f59b58abfc305988/README.md#one-liner
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_script/posh_ps_hktl_defendnot_installation.yml
author: Swachchhanda Shrawan Poudel (Nextron Systems), Huntrule Team
date: 2026-10-18
tags:
  - attack.defense-impairment
  - attack.t1685
logsource:
  category: ps_script
  product: windows
detection:
  selection:
    - ScriptBlockText|contains: https://dnot.sh/
    - ScriptBlockText|contains|all:
        - /defendnot
        - github
  condition: selection
falsepositives:
  - Unlikely
level: high
license: DRL-1.1