Windows Capability Added via PowerShell Add-WindowsCapability (OpenSSH)

Flags PowerShell commands that add Windows capabilities, specifically OpenSSH, via Add-WindowsCapability in logged script blocks.

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

What it detects

This rule identifies PowerShell script content that invokes the Add-WindowsCapability cmdlet with the -Name OpenSSH. Adding Windows capabilities can expand functionality on a system and may be leveraged by attackers to enable additional components such as remote access features. The detection relies on PowerShell Script Block logging telemetry capturing the ScriptBlockText that contains the cmdlet call and the specified capability name.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

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