Potential SSH Tunnel to AAD Connect Host
Description
'Azure AD Connect (AAD Connect) is a critical service that handles connections between on-premise Active Directory and Azure AD. Due to the critical nature of AAD Connect threat actors may attempt to compromise the service in order to access credentials. This query looks for SSH connections to host that appear to run AAD Connect. The results should be reviewed to determine if the SSH connection is legitimate.'
Query · kql
DeviceInfo | where LoggedOnUsers has "MSOL_" | summarize by DeviceName, PublicIP | join kind=inner (_Im_NetworkSession | where NetworkApplicationProtocol =~ "ssh") on $left.PublicIP == $right.DstIpAddr