{"id":"954f0af7-62dd-418f-b3df-a84bc2c7a774","title":"New Remote Desktop Connection Initiated Via Mstsc.EXE","description":"Detects the usage of \"mstsc.exe\" with the \"/v\" flag to initiate a connection to a remote server.\nAdversaries 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.\n","author":"frack113","status":"test","level":"medium","date":"2022-01-07","modified":"2024-06-04","tags":["attack.lateral-movement","attack.t1021.001"],"technique_ids":["T1021.001"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["WSL (Windows Sub System For Linux)"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.001/T1021.001.md#t1021001---remote-desktop-protocol","https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mstsc"],"source_path":"rules/windows/process_creation/proc_creation_win_mstsc_remote_connection.yml","source_sha256":"9ac7304ab946b2c1c0693bd02c681c1239286cd6cbaa8df8c5f8751c562ca9e8","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_mstsc_remote_connection.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: New Remote Desktop Connection Initiated Via Mstsc.EXE\nid: 954f0af7-62dd-418f-b3df-a84bc2c7a774\nstatus: test\ndescription: |\n    Detects the usage of \"mstsc.exe\" with the \"/v\" flag to initiate a connection to a remote server.\n    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.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.001/T1021.001.md#t1021001---remote-desktop-protocol\n    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mstsc\nauthor: frack113\ndate: 2022-01-07\nmodified: 2024-06-04\ntags:\n    - attack.lateral-movement\n    - attack.t1021.001\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\mstsc.exe'\n        - OriginalFileName: 'mstsc.exe'\n    selection_cli:\n        CommandLine|contains|windash: ' /v:'\n    filter_optional_wsl:\n        # Example: mstsc.exe /v:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /hvsocketserviceid:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /silent /wslg /plugin:WSLDVC /wslgsharedmemorypath:WSL\\XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\\wslg C:\\ProgramData\\Microsoft\\WSL\\wslg.rdp\n        ParentImage: 'C:\\Windows\\System32\\lxss\\wslhost.exe'\n        CommandLine|contains: 'C:\\ProgramData\\Microsoft\\WSL\\wslg.rdp'\n    condition: all of selection_* and not 1 of filter_optional_*\nfalsepositives:\n    - WSL (Windows Sub System For Linux)\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1021.001","id":"T1021.001","name":"Remote Desktop Protocol","page":"techniques/enterprise/T1021.001/"}],"data_path":"data/detection-rules/954f0af7-62dd-418f-b3df-a84bc2c7a774.json","kind":"sigma"}
