Sigma rule: Tamper Windows Defender - PSClassic
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ad6e9d167de4, updated 2024-01-02T00:00:00.000Z.
Rule
- Title
- Tamper Windows Defender - PSClassic
- Status
- test
- Level
- high
- Author
- frack113, Nasreddine Bencherchali (Nextron Systems)
- Date
- 2021-06-07
- Modified
- 2024-01-02
- File
- rules/windows/powershell/powershell_classic/posh_pc_tamper_windows_defender_set_mp.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Attempting to disable scheduled scanning and other parts of Windows Defender ATP or set default actions to allow.
Log source
- product
- windows
- category
- ps_classic_provider_start
Detection
selection_set_mppreference:
Data|contains: 'Set-MpPreference'
selection_options_bool_allow:
Data|contains:
- '-dbaf $true'
- '-dbaf 1'
- '-dbm $true'
- '-dbm 1'
- '-dips $true'
- '-dips 1'
- '-DisableArchiveScanning $true'
- '-DisableArchiveScanning 1'
- '-DisableBehaviorMonitoring $true'
- '-DisableBehaviorMonitoring 1'
- '-DisableBlockAtFirstSeen $true'
- '-DisableBlockAtFirstSeen 1'
- '-DisableCatchupFullScan $true'
- '-DisableCatchupFullScan 1'
- '-DisableCatchupQuickScan $true'
- '-DisableCatchupQuickScan 1'
- '-DisableIntrusionPreventionSystem $true'
- '-DisableIntrusionPreventionSystem 1'
- '-DisableIOAVProtection $true'
- '-DisableIOAVProtection 1'
- '-DisableRealtimeMonitoring $true'
- '-DisableRealtimeMonitoring 1'
- '-DisableRemovableDriveScanning $true'
- '-DisableRemovableDriveScanning 1'
- '-DisableScanningMappedNetworkDrivesForFullScan $true'
- '-DisableScanningMappedNetworkDrivesForFullScan 1'
- '-DisableScanningNetworkFiles $true'
- '-DisableScanningNetworkFiles 1'
- '-DisableScriptScanning $true'
- '-DisableScriptScanning 1'
- '-MAPSReporting $false'
- '-MAPSReporting 0'
- '-drdsc $true'
- '-drdsc 1'
- '-drtm $true'
- '-drtm 1'
- '-dscrptsc $true'
- '-dscrptsc 1'
- '-dsmndf $true'
- '-dsmndf 1'
- '-dsnf $true'
- '-dsnf 1'
- '-dss $true'
- '-dss 1'
selection_options_actions_func:
Data|contains:
- 'HighThreatDefaultAction Allow'
- 'htdefac Allow'
- 'LowThreatDefaultAction Allow'
- 'ltdefac Allow'
- 'ModerateThreatDefaultAction Allow'
- 'mtdefac Allow'
- 'SevereThreatDefaultAction Allow'
- 'stdefac Allow'
condition: selection_set_mppreference and 1 of selection_options_*False positives (as the rule lists them)
- Legitimate PowerShell scripts that disable Windows Defender for troubleshooting purposes. Must be investigated.
Tags
- attack.defense-impairment
- attack.t1685
MITRE ATT&CK ids this rule names
Related rules
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_classic/posh_pc_tamper_windows_defender_set_mp.yml
Sources and licences
SigmaHQ
"Tamper Windows Defender - PSClassic" by frack113, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_classic/posh_pc_tamper_windows_defender_set_mp.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Tamper Windows Defender - PSClassic",
entity page, dataset version ref-ad6e9d167de4, updated 2024-01-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ec19ebab-72dc-40e1-9728-4c0b805d722c (accessed 2026-11-03).
Underlying source: SigmaHQ rule ec19ebab-72dc-40e1-9728-4c0b805d722c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.