Sigma rule: Potential Suspicious Windows Feature Enabled
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-62d175558bc0, updated 2022-12-29T00:00:00.000Z.
Rule
- Title
- Potential Suspicious Windows Feature Enabled
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2022-09-10
- Modified
- 2022-12-29
- File
- rules/windows/powershell/powershell_script/posh_ps_enable_susp_windows_optional_feature.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects usage of the built-in PowerShell cmdlet "Enable-WindowsOptionalFeature" used as a Deployment Image Servicing and Management tool.
Similar to DISM.exe, this cmdlet is used to enumerate, install, uninstall, configure, and update features and packages in Windows images
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection_cmd:
ScriptBlockText|contains|all:
- 'Enable-WindowsOptionalFeature'
- '-Online'
- '-FeatureName'
selection_feature:
# Add any insecure/unusual windows features to your env
ScriptBlockText|contains:
- 'TelnetServer'
- 'Internet-Explorer-Optional-amd64'
- 'TFTP'
- 'SMB1Protocol'
- 'Client-ProjFS'
- 'Microsoft-Windows-Subsystem-Linux'
condition: all of selection_*False positives (as the rule lists them)
- Legitimate usage of the features listed in the rule.
Tags
- attack.stealth
Related rules
References
- https://learn.microsoft.com/en-us/powershell/module/dism/enable-windowsoptionalfeature?view=windowsserver2022-ps
- https://learn.microsoft.com/en-us/windows/win32/projfs/enabling-windows-projected-file-system
- https://learn.microsoft.com/en-us/windows/wsl/install-on-server
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_script/posh_ps_enable_susp_windows_optional_feature.yml
Sources and licences
SigmaHQ
"Potential Suspicious Windows Feature Enabled" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_enable_susp_windows_optional_feature.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: Potential Suspicious Windows Feature Enabled",
entity page, dataset version ref-62d175558bc0, updated 2022-12-29T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/55c925c1-7195-426b-a136-a9396800e29b (accessed 2026-11-03).
Underlying source: SigmaHQ rule 55c925c1-7195-426b-a136-a9396800e29b, 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.