Detection rules › Sigma

Terminal Server Client Connection History Cleared - Registry

Status
test
Severity
high
Log source
product windows, category registry_delete
Author
Christian Burkard (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the deletion of registry keys containing the MSTSC connection history

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1112 Modify Registry
StealthT1070 Indicator Removal
Defense ImpairmentT1112 Modify Registry

Event coverage

ProviderEventTitle
SysmonEvent ID 14RegistryEvent (Key and Value Rename)

Rule body yaml

title: Terminal Server Client Connection History Cleared - Registry
id: 07bdd2f5-9c58-4f38-aec8-e101bb79ef8d
status: test
description: Detects the deletion of registry keys containing the MSTSC connection history
references:
    - https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/remove-entries-from-remote-desktop-connection-computer
    - http://woshub.com/how-to-clear-rdp-connections-history/
    - https://www.trendmicro.com/en_us/research/23/a/vice-society-ransomware-group-targets-manufacturing-companies.html
author: Christian Burkard (Nextron Systems)
date: 2021-10-19
modified: 2023-02-08
tags:
    - attack.persistence
    - attack.stealth
    - attack.defense-impairment
    - attack.t1070
    - attack.t1112
logsource:
    category: registry_delete
    product: windows
detection:
    selection1:
        EventType: DeleteValue
        TargetObject|contains: '\Microsoft\Terminal Server Client\Default\MRU'
    selection2:
        EventType: DeleteKey
        TargetObject|contains: '\Microsoft\Terminal Server Client\Servers\'
    condition: 1 of selection*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection1

selection1:
    EventType: DeleteValue
    TargetObject|contains: '\Microsoft\Terminal Server Client\Default\MRU'

Stage 2: selection2

selection2:
    EventType: DeleteKey
    TargetObject|contains: '\Microsoft\Terminal Server Client\Servers\'

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
EventTypeeq
  • DeleteKey
  • DeleteValue corpus 5 (sigma 4, splunk 1)
TargetObjectmatch
  • \Microsoft\Terminal Server Client\Default\MRU
  • \Microsoft\Terminal Server Client\Servers\