endpoint(opens in a new tab or window)
windows(opens in a new tab or window)
/* Identifies the modification of RDP Shadow registry or
the execution of processes indicative of active shadow RDP session */
any where host.os.type == "windows" and
(
(event.category == "registry" and
registry.path : (
"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\Terminal Services\\Shadow",
"\\REGISTRY\\MACHINE\\Software\\Policies\\Microsoft\\Windows NT\\Terminal Services\\Shadow",
"MACHINE\\Software\\Policies\\Microsoft\\Windows NT\\Terminal Services\\Shadow"
)
) or
(event.category == "process" and event.type == "start" and
(process.name : ("RdpSaUacHelper.exe", "RdpSaProxy.exe") and process.parent.name : "svchost.exe") or
(?process.pe.original_file_name : "mstsc.exe" and process.args : "/shadow:*")
)
)
Install detection rules in Elastic Security
Detect Potential Remote Desktop Shadowing Activity in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).