Suspicious Powershell Defender Exclusion (via process_creation)

This rule detects requests to exclude files, folders or processes from Antivirus scanning using PowerShell cmdlets

SigmamediumWindowsv1
sigma
title: Suspicious Powershell Defender Exclusion (via process_creation)
id: a3df3594-25f7-59e7-8ede-f0937848d437
status: stable
description: This rule detects requests to exclude files, folders or processes from Antivirus scanning using PowerShell cmdlets
references:
    - https://attack.mitre.org/techniques/T1685/
    - https://learn.microsoft.com/en-us/defender-endpoint/configure-process-opened-file-exclusions-microsoft-defender-antivirus
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://twitter.com/AdamTheAnalyst/status/1483497517119590403
author: Huntrule Team
date: 2026-01-05
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    selection1:
        CommandLine|contains:
            - 'Add-MpPreference '
            - 'Set-MpPreference '
    selection2:
        CommandLine|contains:
            - ' -ExclusionPath '
            - ' -ExclusionExtension '
            - ' -ExclusionProcess '
            - ' -ExclusionIpAddress '
    condition: all of selection*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.