Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

1.9 KB
Raw Blame
id: sigmahq-sigma-4b8f6d3a-9c5e-4f2a-a7d8-6b9c3e5f2a8d
name: RDP Enable or Disable via Win32_TerminalServiceSetting WMI Class
description: 'Detects enabling or disabling of Remote Desktop Protocol (RDP) using
  alternate methods such as WMIC or PowerShell.

  In PowerShell one-liner commands, the "SetAllowTSConnections" method of the "Win32_TerminalServiceSetting"
  class may be used to enable or disable RDP.

  In WMIC, the "rdtoggle" alias or "Win32_TerminalServiceSetting" class may be used
  for the same purpose.'
severity: medium
enabled: false
tags:
  mitre:
  - T1021.001
  - T1047
  categories:
  - endpoint
references:
- https://www.trendmicro.com/en_gb/research/22/e/uncovering-a-kingminer-botnet-attack-using-trend-micro-managed-x.html
- https://github.com/HackTricks-wiki/hacktricks/blob/72f20a3fa26775b932bd819f1824c6377802a768/src/windows-hardening/basic-cmd-for-pentesters.md#firewall
- https://github.com/Lifailon/RSA/blob/rsa/Sources/RSA-1.4.1.ps1#L1468
logsource:
  category: process_creation
  product: windows
detection:
  selection_img:
  - Image|endswith:
    - \wmic.exe
    - \powershell.exe
    - \pwsh.exe
  - OriginalFileName:
    - wmic.exe
    - PowerShell.EXE
    - pwsh.dll
  selection_cli_method:
    CommandLine|contains:
    - rdtoggle
    - Win32_TerminalServiceSetting
  selection_cli_property:
    CommandLine|contains: SetAllowTSConnections
  condition: all of selection_*
provenance:
  source: SigmaHQ/sigma
  source_id: 4b8f6d3a-9c5e-4f2a-a7d8-6b9c3e5f2a8d
  source_commit: df5c6a6
  license: DRL-1.1
  license_url: https://github.com/SigmaHQ/Detection-Rule-License
  imported_at: '2026-05-04'
  imported_by: sigma_importer
  upstream_path: rules/windows/process_creation/proc_creation_win_rdp_enable_or_disable_via_win32_terminalservicesetting_wmi_class.yml
falsepositives:
- Legitimate system administrators enabling RDP for remote support
- System configuration scripts during deployment
notes:
  quarantine_reason: 'upstream status: experimental'