winrm_session_created_sysmon_behavior


Description

This detects when a remote session is created on a machine License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.

Query · yara_l

events:
($selection1.metadata.product_event_type = "3" and re.regex($selection1.target.process.file.full_path, `.*powershell\.exe`) and re.regex($selection1.principal.port, `.*`) and $selection1.target.port = "5985")

  condition:
    $selection1
Raw source winrm_session_created_sysmon_behavior · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule winrm_session_created_sysmon_behavior {
 meta:
    author = "Lee Archinal"
    description = "This detects when a remote session is created on a machine  License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md."
    reference = "https://tdm.socprime.com/tdm/info/V1tyK5giCwqm"
    version = "0.01"
    created = "2019/06/30"
    product = "windows"
    service = "sysmon"
    mitre = "lateral_movement, t1028"

  events:
($selection1.metadata.product_event_type = "3" and re.regex($selection1.target.process.file.full_path, `.*powershell\.exe`) and re.regex($selection1.principal.port, `.*`) and $selection1.target.port = "5985")

  condition:
    $selection1
}

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.