LDAP Search followed by Kerberos Connection
Description
Identifies Ldap search followed by a network connections to the standard Kerberos port from an unusual process. On Windows, the only native system process that normally performs Kerberos traffic from a domain joined host is lsass.exe.
Query · eql
sequence by process.entity_id with maxspan=1m
[api where process.Ext.api.name == "ldap_search" and
not (user.id == "S-1-5-18" and process.executable : "?:\\Windows\\System32\\lsass.exe") and
not (process.executable : "C:\\Program Files\\*\\Server\\bin\\ws_TomcatService.exe" and
process.code_signature.subject_name in ("VMware, Inc.", "Omnissa, LLC") and process.code_signature.trusted == true) and
not (process.executable : "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" and
process.parent.executable : "C:\\Windows\\System32\\svchost.exe" and process.Ext.api.parameters.search_filter in ("(cn=rid manager$)", "(cn=krbtgt)")) and
not (process.executable : "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE" and process.Ext.api.parameters.search_filter like "(|(mail=*)(proxyAddresses=smtp:*))")
]
[network where destination.port == 88 and source.port >= 49152 and network.direction == "egress" and
network.transport == "tcp" and not destination.address : ("127.*", "::1")]