PowerShell on Windows adding Windows capabilities via Add-WindowsCapability

Alerts when PowerShell adds an OpenSSH-related Windows capability using Add-WindowsCapability.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-01-22
Updated
2026-07-30

What it detects

This rule flags process executions where PowerShell (powershell.exe or pwsh.exe) runs a command line containing the Add-WindowsCapability cmdlet and specifies a capability string that includes OpenSSH. Attackers may use this to install or enable additional Windows capabilities as part of setup or post-compromise activity. It relies on Windows process creation telemetry, matching on the process image and command-line contents.

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