Sigma rule: Potential Tampering With RDP Related Registry Keys Via Reg.EXE

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

Rule

Title
Potential Tampering With RDP Related Registry Keys Via Reg.EXE
Status
test
Level
high
Author
pH-T (Nextron Systems), @Kostastsale, TheDFIRReport
Date
2022-02-12
Modified
2025-11-22
File
rules/windows/process_creation/proc_creation_win_reg_rdp_keys_tamper.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of "reg.exe" for enabling/disabling the RDP service on the host by tampering with the 'CurrentControlSet\Control\Terminal Server' values

Log source

product
windows
category
process_creation

Detection

selection_main_img:
    - Image|endswith: '\reg.exe'
    - OriginalFileName: 'reg.exe'
selection_main_cli:
    CommandLine|contains|all:
        - ' add '
        - '\CurrentControlSet\Control\Terminal Server'
        - 'REG_DWORD'
        - ' /f'
selection_values_1:
    CommandLine|contains|all:
        - 'Licensing Core'
        - 'EnableConcurrentSessions'
selection_values_2:
    CommandLine|contains:
        - 'AllowTSConnections'
        - 'fDenyTSConnections'
        - 'fEnableWinStation'
        - 'fSingleSessionPerUser'
        - 'IdleWinStationPoolCount'
        - 'MaxInstanceCount'
        - 'SecurityLayer'
        - 'TSAdvertise'
        - 'TSAppCompat'
        - 'TSEnabled'
        - 'TSUserEnabled'
        - 'WinStations\RDP-Tcp'
filter_main_values_tls:
    CommandLine|contains|all:
        - 'SecurityLayer'
        - '02'  # TLS Enabled
condition: all of selection_main_* and 1 of selection_values_* and not 1 of filter_main_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.persistence
  • attack.lateral-movement
  • attack.defense-impairment
  • attack.t1021.001
  • attack.t1112

MITRE ATT&CK ids this rule names

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/process_creation/proc_creation_win_reg_rdp_keys_tamper.yml

Sources and licences

  • SigmaHQ

    "Potential Tampering With RDP Related Registry Keys Via Reg.EXE" by pH-T (Nextron Systems), @Kostastsale, TheDFIRReport (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_reg_rdp_keys_tamper.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: Potential Tampering With RDP Related Registry Keys Via Reg.EXE",
entity page, dataset version ref-22e4a085dc88, updated 2025-11-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0d5675be-bc88-4172-86d3-1e96a4476536 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0d5675be-bc88-4172-86d3-1e96a4476536, 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.