Detection rules › Sigma

Mstsc.EXE Execution From Uncommon Parent

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects potential RDP connection via Mstsc using a local ".rdp" file located in suspicious locations.

MITRE ATT&CK coverage

TacticTechniques
Lateral MovementNo specific technique

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Mstsc.EXE Execution From Uncommon Parent
id: ff3b6b39-e765-42f9-bb2c-ea6761e0e0f6
status: test
description: Detects potential RDP connection via Mstsc using a local ".rdp" file located in suspicious locations.
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/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-18
tags:
    - attack.lateral-movement
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith:
            # Covers potential downloads/clicks from browsers
            - '\brave.exe'
            - '\CCleanerBrowser.exe'
            - '\chrome.exe'
            - '\chromium.exe'
            - '\firefox.exe'
            - '\iexplore.exe'
            - '\microsoftedge.exe'
            - '\msedge.exe'
            - '\opera.exe'
            - '\vivaldi.exe'
            - '\whale.exe'
            # Covers potential downloads/clicks from email clients
            - '\outlook.exe'
    selection_img:
        - Image|endswith: '\mstsc.exe'
        - OriginalFileName: 'mstsc.exe'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith:
        - '\brave.exe'
        - '\CCleanerBrowser.exe'
        - '\chrome.exe'
        - '\chromium.exe'
        - '\firefox.exe'
        - '\iexplore.exe'
        - '\microsoftedge.exe'
        - '\msedge.exe'
        - '\opera.exe'
        - '\vivaldi.exe'
        - '\whale.exe'
        - '\outlook.exe'

Stage 2: selection_img

selection_img:
    - Image|endswith: '\mstsc.exe'
    - OriginalFileName: 'mstsc.exe'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \mstsc.exe corpus 6 (sigma 6)
OriginalFileNameeq
  • mstsc.exe corpus 5 (sigma 4, elastic 1)
ParentImageends_with
  • \CCleanerBrowser.exe
  • \brave.exe corpus 2 (sigma 2)
  • \chrome.exe corpus 5 (sigma 5)
  • \chromium.exe
  • \firefox.exe corpus 4 (sigma 4)
  • \iexplore.exe corpus 2 (sigma 2)
  • \microsoftedge.exe corpus 2 (sigma 2)
  • \msedge.exe corpus 4 (sigma 4)
  • \opera.exe
  • \outlook.exe corpus 5 (sigma 5)
  • \vivaldi.exe corpus 2 (sigma 2)
  • \whale.exe