Detection rules › Sigma

Potential Suspicious Windows Feature Enabled

Severity
medium
Author
frack113
Source
upstream

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

Event coverage

ProviderEvent IDTitle
PowerShell4104Creating Scriptblock text (MessageNumber of MessageTotal).

Stages and Predicates

Stage 1: all of selection_cmd

ScriptBlockText|contains: -FeatureName
ScriptBlockText|contains: -Online
ScriptBlockText|contains: Enable-WindowsOptionalFeature

Stage 2: all of selection_feature

or:
ScriptBlockText|contains: Client-ProjFS
ScriptBlockText|contains: Internet-Explorer-Optional-amd64
ScriptBlockText|contains: 'Microsoft-Windows-Subsystem-Linux'
ScriptBlockText|contains: SMB1Protocol
ScriptBlockText|contains: TFTP
ScriptBlockText|contains: TelnetServer

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ScriptBlockTextmatch
  • -FeatureName corpus 2 (sigma 2)
  • -Online corpus 2 (sigma 2)
  • Client-ProjFS
  • Enable-WindowsOptionalFeature
  • Internet-Explorer-Optional-amd64
  • Microsoft-Windows-Subsystem-Linux
  • SMB1Protocol
  • TFTP
  • TelnetServer

Neighbors

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.