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