VeriKQL by Kaushik Saha

T1133 External Remote Services

Initial AccessPersistenceon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0354 Behavior-chain detection for T1133 External Remote Services across Windows, Linux, macOS, Containers

AN1004 Windows

Unusual or unauthorized external remote access attempts (e.g., RDP, VPN, Citrix) → repeated failed logins followed by a successful session from uncommon geolocations or outside business hours → subsequent internal lateral movement or data exfiltration activities.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4776, 4625
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4776, 4625)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4776, 4625)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4776, 4625)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:ApplicationVPN, Citrix, or remote access gateway logs showing external IP addresses
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Application")
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Application")
WinEventLog:SysmonEventCode=3, 22
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (3, 22)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (3, 22)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN1005 Linux

Repeated SSH, VPN, or RDP gateway authentication attempts from external IPs → subsequent successful logon → remote shell or lateral movement activity (e.g., scp/sftp).

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLssh logins or execve of remote commandsNot mapped to Sentinel yet.
NSM:ConnectionsFailed password or accepted password for SSH usersNot mapped to Sentinel yet.
NSM:Flowconnection: Inbound connections to SSH or VPN portsNot mapped to Sentinel yet.

AN1006 macOS

Unexpected inbound or outbound VNC/SSH/Screen Sharing connections from external sources → repeated failed logins followed by success → remote interactive sessions or abnormal file transfers.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogRemote login (ssh) or screen sharing authentication attemptsNot mapped to Sentinel yet.
macos:unifiedlogInbound connections to VNC/SSH portsNot mapped to Sentinel yet.
PF:LogsExternal traffic to remote access servicesNot mapped to Sentinel yet.

AN1007 Containers

Connections to exposed container services (e.g., Docker API, Kubernetes API server) from unauthorized external IPs → abnormal container creation/start → lateral activity within cluster nodes.

MITRE log sourceIn Microsoft Sentinel
ApplicationLog:APIDocker/Kubernetes API access from external sourcesNot mapped to Sentinel yet.
kubernetes:auditUnauthorized container creation or kubelet exec logsNot mapped to Sentinel yet.
NSM:FlowExternal access to container ports (2375, 6443)Not mapped to Sentinel yet.

Content Hub rules tagged with it (217)

Showing 25 of 217.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1133 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

20 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.