{"id":"6e22722b-dfb1-4508-a911-49ac840b40f8","title":"Suspicious Mstsc.EXE Execution With Local RDP File","description":"Detects potential RDP connection via Mstsc using a local \".rdp\" file located in suspicious locations.","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2023-04-18","modified":"","tags":["attack.command-and-control","attack.t1219.002"],"technique_ids":["T1219.002"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Likelihood is related to how often the paths are used in the environment"],"references":["https://www.blackhillsinfosec.com/rogue-rdp-revisiting-initial-access-methods/","https://web.archive.org/web/20230726144748/https://blog.thickmints.dev/mintsights/detecting-rogue-rdp/"],"source_path":"rules/windows/process_creation/proc_creation_win_mstsc_run_local_rdp_file_susp_location.yml","source_sha256":"681f4be280bed39e89566513c09c54d6ad4901acfaa9e91af903857ca356e945","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_mstsc_run_local_rdp_file_susp_location.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Mstsc.EXE Execution With Local RDP File\nid: 6e22722b-dfb1-4508-a911-49ac840b40f8\nstatus: test\ndescription: Detects potential RDP connection via Mstsc using a local \".rdp\" file located in suspicious locations.\nreferences:\n    - https://www.blackhillsinfosec.com/rogue-rdp-revisiting-initial-access-methods/\n    - https://web.archive.org/web/20230726144748/https://blog.thickmints.dev/mintsights/detecting-rogue-rdp/\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-04-18\ntags:\n    - attack.command-and-control\n    - attack.t1219.002\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\mstsc.exe'\n        - OriginalFileName: 'mstsc.exe'\n    selection_extension:\n        CommandLine|endswith:\n            - '.rdp'\n            - '.rdp\"'\n    selection_paths:\n        # Note: This list of paths is better transformed into a whitelist where you only exclude legitimate locations you use in your env\n        CommandLine|contains:\n            - ':\\Users\\Public\\'\n            - ':\\Windows\\System32\\spool\\drivers\\color'\n            - ':\\Windows\\System32\\Tasks_Migrated '\n            - ':\\Windows\\Tasks\\'\n            - ':\\Windows\\Temp\\'\n            - ':\\Windows\\Tracing\\'\n            - '\\AppData\\Local\\Temp\\'\n            # - '\\Desktop\\' # Could be source of FP depending on the environment\n            - '\\Downloads\\' # Could be source of FP depending on the environment\n    condition: all of selection_*\nfalsepositives:\n    - Likelihood is related to how often the paths are used in the environment\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1219.002","id":"T1219.002","name":"Remote Desktop Software","page":"techniques/enterprise/T1219.002/"}],"data_path":"data/detection-rules/6e22722b-dfb1-4508-a911-49ac840b40f8.json","kind":"sigma"}
