Detectionlowtest
Mstsc.EXE Execution With Local RDP File
Detects potential RDP connection via Mstsc using a local ".rdp" file
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems), Christopher PeacockCreated Tue Apr 18Updated Sun Apr 305fdce3ac-e7f9-4ecd-a3aa-a4d78ebbf0afwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic3 selectors
detection:
selection_img:
- Image|endswith: '\mstsc.exe'
- OriginalFileName: 'mstsc.exe'
selection_cli:
CommandLine|endswith:
- '.rdp'
- '.rdp"'
filter_optional_wsl:
ParentImage: 'C:\Windows\System32\lxss\wslhost.exe'
CommandLine|contains: 'C:\ProgramData\Microsoft\WSL\wslg.rdp'
condition: all of selection_* and not 1 of filter_optional_*False Positives
Likely with legitimate usage of ".rdp" files
MITRE ATT&CK
Tactics
Other
attack.t1219.002
Rule Metadata
Rule ID
5fdce3ac-e7f9-4ecd-a3aa-a4d78ebbf0af
Status
test
Level
low
Type
Detection
Created
Tue Apr 18
Modified
Sun Apr 30
Path
rules/windows/process_creation/proc_creation_win_mstsc_run_local_rdp_file.yml
Raw Tags
attack.command-and-controlattack.t1219.002