Sigma rule: Remote PowerShell Sessions Network Connections (WinRM)

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-f523749cdb40, updated 2022-10-09T00:00:00.000Z.

Rule

Title
Remote PowerShell Sessions Network Connections (WinRM)
Status
test
Level
high
Author
Roberto Rodriguez @Cyb3rWard0g
Date
2019-09-12
Modified
2022-10-09
File
rules/windows/builtin/security/win_security_remote_powershell_session.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects basic PowerShell Remoting (WinRM) by monitoring for network inbound connections to ports 5985 OR 5986

Log source

product
windows
service
security

Detection

selection:
    EventID: 5156
    DestPort:
        - 5985
        - 5986
    LayerRTID: 44
condition: selection

False positives (as the rule lists them)

  • Legitimate use of remote PowerShell execution

Tags

  • attack.execution
  • attack.t1059.001

MITRE ATT&CK ids this rule names

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/builtin/security/win_security_remote_powershell_session.yml

Sources and licences

  • SigmaHQ

    "Remote PowerShell Sessions Network Connections (WinRM)" by Roberto Rodriguez @Cyb3rWard0g (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/security/win_security_remote_powershell_session.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Remote PowerShell Sessions Network Connections (WinRM)",
entity page, dataset version ref-f523749cdb40, updated 2022-10-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/13acf386-b8c6-4fe0-9a6e-c4756b974698 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 13acf386-b8c6-4fe0-9a6e-c4756b974698, 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.