T1133 Sumo Logic CSE · Sumo

Detect External Remote Services in Sumo Logic CSE

Adversaries may leverage external-facing remote services to initially access and/or persist within a network. Remote services such as VPNs, Citrix, and other access mechanisms allow users to connect to internal enterprise network resources from external locations. Adversaries typically obtain valid credentials first via phishing, credential stuffing, or prior compromise, then authenticate to these services from external infrastructure. This technique covers VPN gateways (GlobalProtect, AnyConnect, Pulse Secure, SoftEther), Remote Desktop Protocol, Windows Remote Management, Citrix, VNC, SSH, and exposed container APIs (Docker daemon on TCP 2375/2376, Kubernetes API server on 6443, kubelet on 10250). Threat groups including LAPSUS$, Volt Typhoon, Ember Bear, OilRig, GALLIUM, Scattered Spider, APT41, and Sandworm Team have been observed abusing legitimate remote access mechanisms for initial access and persistent footholds. In containerized environments, adversaries may target exposed Docker APIs or Kubernetes management interfaces that accept anonymous or unauthenticated connections. Adversaries may also establish persistence through Tor hidden services using tools like ShadowLink, which may masquerade as legitimate Windows Defender components to forward inbound RDP connections over the Tor network.

MITRE ATT&CK

Tactic
Persistence Initial Access
Technique
T1133 External Remote Services
Canonical reference
https://attack.mitre.org/techniques/T1133/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=windows/security OR _sourceCategory=windows/events
| where EventCode = "4624"
| parse field=Message "Logon Type:*" as LogonType nodrop
| parse field=Message "Account Name:*" as AccountName nodrop
| parse field=Message "Source Network Address:*" as SourceIP nodrop
| parse field=Message "Source Port:*" as SourcePort nodrop
| where LogonType = "10" OR LogonType = "3"
| where SourceIP != "-" AND SourceIP != "" AND SourceIP != "127.0.0.1" AND SourceIP != "::1" AND SourceIP != "0.0.0.0"
| where !matches(SourceIP, "^(10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.|127\.|fe80|::1)")
| where !endsWith(AccountName, "$")
| eval ServiceType = if(LogonType = "10", "RDP_RemoteInteractive", "Network_WinRM_SMB")
| eval IsHighValue = if(LogonType = "10", "YES", "NO")
| table _time, _sourceHost, AccountName, SourceIP, ServiceType, IsHighValue, LogonType, SourcePort
| sort - IsHighValue, - _time
high severity high confidence

Detects T1133 - External Remote Services in Sumo Logic by parsing Windows Security Event 4624 fields from collected Windows event logs. Identifies RDP (LogonType 10) and Network/WinRM logons (LogonType 3) from public IP addresses, using RFC1918 regex exclusion. Machine accounts excluded via endsWith(). High-value RDP sessions flagged with IsHighValue=YES for priority analyst triage.

Data Sources

Sumo LogicWindows Security Event LogSumo Logic Installed Collector

Required Tables

windows/securitywindows/events

False Positives & Tuning

  • Legitimate remote employees connecting directly to corporate resources from home broadband connections without VPN IP masking at the endpoint level
  • IT support platforms such as remote management software that initiate network logons from their relay or proxy server public IP addresses rather than the end-user's IP
  • Cross-domain or cross-forest trust authentication where domain controllers record the authenticating DC's external IP address during inter-forest trust traversal
Download portable Sigma rule (.yml)

Other platforms for T1133


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Enable and Connect via RDP to Generate LogonType 10 Event (Windows)

    Expected signal: Windows Security EventID 4624 with LogonType=10 (RemoteInteractive) and IpAddress=127.0.0.1 in Security event log. Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational EventID 1149 recording the RDP connection with username and source address. Microsoft-Windows-TerminalServices-LocalSessionManager/Operational EventID 21 (session logon) and 22 (shell start) on successful session establishment.

  2. Test 2WinRM Network Logon to Generate LogonType 3 Event (Windows)

    Expected signal: Windows Security EventID 4624 with LogonType=3 (Network) and AuthenticationPackageName=NTLM or Kerberos. Sysmon EventID 3 (Network Connection) from wsmprovhost.exe (WinRM provider host). Sysmon EventID 1 (Process Create) for wsmprovhost.exe. PowerShell ScriptBlock Log EventID 4104 for executed commands. Windows Remote Management log in Microsoft-Windows-WinRM/Operational.

  3. Test 3Query Exposed Docker API to Simulate TeamTNT Initial Access (Linux)

    Expected signal: Docker daemon log (/var/log/docker.log or journalctl -u docker --since '5 minutes ago'): GET /version and GET /containers/json HTTP requests logged with source IP and timestamp. Network connection to TCP 2375 visible in ss -tnp or netstat output. Auditd syscall events for the accept() and read() syscalls if network auditing is enabled. Sysmon for Linux EventID 3 if deployed.

  4. Test 4SSH Repeated Failed Authentication Followed by Success (Linux)

    Expected signal: Linux auth log (/var/log/auth.log on Debian/Ubuntu or /var/log/secure on RHEL/CentOS): multiple 'Invalid user nonexistentuser_N from 127.0.0.1' and 'Failed none for invalid user' entries. Sysmon for Linux EventID 3 (Network Connection) from ssh client process to port 22. Auditd USER_AUTH records for each failed attempt with res=failed. fail2ban log entries if deployed.

Unlock Pro Content

Get the full detection package for T1133 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections