Sigma rule: RDP Sensitive Settings Changed

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-3bfbfb883c52, updated 2025-11-22T00:00:00.000Z.

Rule

Title
RDP Sensitive Settings Changed
Status
test
Level
high
Author
Samir Bousseaden, David ANDRE, Roberto Rodriguez @Cyb3rWard0g, Nasreddine Bencherchali
Date
2022-08-06
Modified
2025-11-22
File
rules/windows/registry/registry_set/registry_set_terminal_server_tampering.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects tampering of RDP Terminal Service/Server sensitive settings.
Such as allowing unauthorized users access to a system via the 'fAllowUnsolicited' or enabling RDP via 'fDenyTSConnections', etc.

Below is a list of registry keys/values that are monitored by this rule:

- Shadow: Used to enable Remote Desktop shadowing, which allows an administrator to view or control a user's session.
- DisableRemoteDesktopAntiAlias: Disables anti-aliasing for remote desktop sessions.
- DisableSecuritySettings: Disables certain security settings for Remote Desktop connections.
- fAllowUnsolicited: Allows unsolicited remote assistance offers.
- fAllowUnsolicitedFullControl: Allows unsolicited remote assistance offers with full control.
- InitialProgram: Specifies a program to run automatically when a user logs on to a remote computer.
- ServiceDll: Used in RDP hijacking techniques to specify a custom DLL to be loaded by the Terminal Services service.
- SecurityLayer: Specifies the security layer used for RDP connections.

Log source

product
windows
category
registry_set

Detection

selection_shadow:
    TargetObject|contains:
        - '\Control\Terminal Server\'
        - '\Windows NT\Terminal Services\'
    TargetObject|endswith: '\Shadow'
    Details:
        - 'DWORD (0x00000001)' # Full Control with user’s permission
        - 'DWORD (0x00000002)' # Full Control without user’s permission
        - 'DWORD (0x00000003)' # View Session with user’s permission
        - 'DWORD (0x00000004)' # View Session without user’s permission
selection_terminal_services_key:
    TargetObject|contains:
        - '\Control\Terminal Server\'
        - '\Windows NT\Terminal Services\'
    TargetObject|endswith:
        - '\DisableRemoteDesktopAntiAlias' # Disable anti-aliasing for remote desktop (DarkGate malware)
        - '\DisableSecuritySettings' # Disable security settings, allowing access to programs/entire desktop (DarkGate malware)
        - '\fAllowUnsolicited' # Allow unsolicited remote assistance offers
        - '\fAllowUnsolicitedFullControl'
    Details: 'DWORD (0x00000001)'
selection_tamper_only:
    # Any changes to these keys should be suspicious and looked at
    TargetObject|contains:
        - '\Control\Terminal Server\InitialProgram' # This value can be set to specify a program to run automatically when a user logs on to a remote computer.
        - '\Control\Terminal Server\WinStations\RDP-Tcp\InitialProgram' # This value can be set to specify a program to run automatically when a user logs on to a remote computer.
        - '\services\TermService\Parameters\ServiceDll' # RDP hijacking
        - '\Terminal Server\WinStations\RDP-Tcp\SecurityLayer'
        - '\Windows NT\Terminal Services\InitialProgram' # This value can be set to specify a program to run automatically when a user logs on to a remote computer.
filter_main_securitylayer_tls:
    TargetObject|endswith: '\SecurityLayer'
    Details: 'DWORD (0x00000002)' # TLS Enabled
condition: (selection_shadow or selection_terminal_services_key or selection_tamper_only) and not 1 of filter_main_*

False positives (as the rule lists them)

  • Some of the keys mentioned here could be modified by an administrator while setting group policy (it should be investigated either way)

Tags

  • attack.persistence
  • attack.defense-impairment
  • attack.t1112

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_terminal_server_tampering.yml

Sources and licences

  • SigmaHQ

    "RDP Sensitive Settings Changed" by Samir Bousseaden, David ANDRE, Roberto Rodriguez @Cyb3rWard0g, Nasreddine Bencherchali (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_terminal_server_tampering.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: RDP Sensitive Settings Changed",
entity page, dataset version ref-3bfbfb883c52, updated 2025-11-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/3f6b7b62-61aa-45db-96bd-9c31b36b653c (accessed 2026-11-03).
Underlying source: SigmaHQ rule 3f6b7b62-61aa-45db-96bd-9c31b36b653c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.