Detectionhightest

External Remote SMB Logon from Public IP

Detects successful logon from public IP address via SMB. This can indicate a publicly-exposed SMB port.

Open in Detection LabConvert ruleBuild Package
Micah Babinski, Zach MathisCreated 2023-01-19Updated 2026-11-0378d5cab4-557e-454f-9fb9-a222bd0d5edcwindows
Log Source
Windowssecurity
ProductWindows← raw: windows
Servicesecurity← raw: security
Detection Logic
Detection Logic4 selectors
detection:
    selection:
        EventID: 4624
        LogonType: 3
    filter_main_local_ranges:
        IpAddress|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'
            - 'fc00::/7'  # IPv6 private addresses
            - 'fe80::/10'  # IPv6 link-local addresses
    filter_main_null:
        IpAddress: null
    filter_main_empty:
        IpAddress:
            - '-'
            - ''
    condition: selection and not 1 of filter_main_*
False Positives

Legitimate or intentional inbound connections from public IP addresses on the SMB port.

Rule Metadata
Rule ID
78d5cab4-557e-454f-9fb9-a222bd0d5edc
Status
test
Level
high
Type
Detection
Created
2023-01-19
Modified
2026-11-03
Path
rules/windows/builtin/security/account_management/win_security_successful_external_remote_smb_login.yml
Raw Tags
attack.privilege-escalationattack.persistenceattack.initial-accessattack.credential-accessattack.stealthattack.t1133attack.t1078attack.t1110
View on GitHub