Lateral movement · Windows
mstsc.exe
Remote Desktop Connection client
The Remote Desktop client. Launching it, especially with a saved credential or an .rdp file, is part of interactive lateral movement across hosts.
Legitimate use
Used daily to connect to remote desktops and servers.
Switches
The server to connect to (/v:host).
LowConnects to the admin session of the server.
LowConnects without sending credentials to the host. Can be used to pass a hash to RDP.
MediumStarts full screen.
InfoUses multiple monitors.
InfoCommand lines to worry about
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
- Security4624Logon Type 10 on the target for the RDP session.
- RDP connections1149RDP connection authenticated, with the source user and address, on the target.
- RDP client1024Outbound RDP connection attempt logged on the source host, naming the target.
Community detections
4 SigmaHQ rules for mstsc.exe. The explainer checks every pasted command line against all of them.
- HighMstsc.EXE Execution From Uncommon Parent
Detects potential RDP connection via Mstsc using a local ".rdp" file located in suspicious locations.
by Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Mstsc.EXE Execution With Local RDP File
Detects potential RDP connection via Mstsc using a local ".rdp" file located in suspicious locations.
T1219.002by Nasreddine Bencherchali (Nextron Systems)
- MediumNew Remote Desktop Connection Initiated Via Mstsc.EXE
Detects the usage of "mstsc.exe" with the "/v" flag to initiate a connection to a remote server. Adversaries may use valid accounts to log into a computer using the Remote Desktop Protocol (RDP). The adversary may then perform actions as the logged-on user.
T1021.001by frack113
- LowMstsc.EXE Execution With Local RDP File
Detects potential RDP connection via Mstsc using a local ".rdp" file
T1219.002by Nasreddine Bencherchali (Nextron Systems), Christopher Peacock @securepeacock
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.