Elastic Defend high stable eql

Unusual Remote Desktop Client Process

Identifies a Remote Desktop Protocol (RDP) network connection from an unusual client process. Adversaries may attempt to connect to a remote system over RDP to achieve lateral movement and in some cases, may avoid using the Microsoft Terminal Services Client (mstsc.exe) binary in an attempt to evade detection.

View Source

Detection Logic

sequence by process.entity_id with maxspan=5m
   [ library where dll.name : "mstscax.dll" and
     process.executable:
           ("?:\\Windows\\System32\\*.exe",
            "?:\\Windows\\SysWOW64\\*.exe",
            "?:\\Windows\\Microsoft.NET\\*",
            "?:\\Windows\\notepad.exe") and
     not process.executable :
            ("?:\\Windows\\System32\\mstsc.exe",
             "?:\\Windows\\SysWOW64\\mstsc.exe",
             "?:\\Windows\\SysWOW64\\svchost.exe",
             "?:\\Windows\\System32\\svchost.exe",
             /* Issue #314 */
             "?:\\Windows\\System32\\telnet.exe",
             "?:\\Windows\\SysWOW64\\telnet.exe",
             "?:\\Windows\\LTSvc\\LTSVC.exe",
             "?:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
             "?:\\Windows\\System32\\MicrosoftEdgeCP.exe",
             "?:\\Windows\\System32\\OpenSSH\\*.exe",
             "?:\\Windows\\System32\\RDCMan.exe")]
    [ network where network.direction == "egress" and
      destination.port == 3389 and source.port >= 49152 and
      process.executable:
           ("?:\\Windows\\System32\\*.exe",
            "?:\\Windows\\SysWOW64\\*.exe",
            "?:\\Windows\\Microsoft.NET\\*",
            "?:\\Windows\\notepad.exe") ]

Field Validations

Loading…

Comments (0)

Loading comments...