Detection rules › Sigma

Publicly Accessible RDP Service

Status
test
Severity
high
Log source
product zeek, service rdp
Author
Josh Brower @DefensiveDepth
Source
github.com/SigmaHQ/sigma

Detects connections from routable IPs to an RDP listener. Which is indicative of a publicly-accessible RDP service.

MITRE ATT&CK coverage

Rule body yaml

title: Publicly Accessible RDP Service
id: 1fc0809e-06bf-4de3-ad52-25e5263b7623
status: test
description: |
    Detects connections from routable IPs to an RDP listener. Which is indicative of a publicly-accessible RDP service.
author: Josh Brower @DefensiveDepth
date: 2020-08-22
modified: 2024-03-13
tags:
    - attack.lateral-movement
    - attack.t1021.001
logsource:
    product: zeek
    service: rdp
detection:
    selection:
        id.orig_h|cidr:
            - '::1/128'  # IPv6 loopback
            - '10.0.0.0/8'
            - '127.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '169.254.0.0/16'
            - '2620:83:8000::/48'
            - 'fc00::/7'  # IPv6 private addresses
            - 'fe80::/10'  # IPv6 link-local addresses
    # approved_rdp:
      # dst_ip:
        # - x.x.x.x
    condition: not selection # and not approved_rdp
falsepositives:
    - Although it is recommended to NOT have RDP exposed to the internet, verify that this is a) allowed b) the server has not already been compromised via some brute force or remote exploit since it has been exposed to the internet. Work to secure the server if you are unable to remove it from being exposed to the internet.
level: high

Stages and Predicates

Stage 0: condition

not selection # and not approved_rdp

Stage 1: not selection

selection:
    id.orig_h|cidr:
        - '::1/128'
        - '10.0.0.0/8'
        - '127.0.0.0/8'
        - '172.16.0.0/12'
        - '192.168.0.0/16'
        - '169.254.0.0/16'
        - '2620:83:8000::/48'
        - 'fc00::/7'
        - 'fe80::/10'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
id.orig_hcidr_match10.0.0.0/8
id.orig_hcidr_match127.0.0.0/8
id.orig_hcidr_match169.254.0.0/16
id.orig_hcidr_match172.16.0.0/12
id.orig_hcidr_match192.168.0.0/16
id.orig_hcidr_match2620:83:8000::/48
id.orig_hcidr_match::1/128
id.orig_hcidr_matchfc00::/7
id.orig_hcidr_matchfe80::/10