Elastic medium stable eql
Potential Enumeration via Active Directory Web Service
Identifies processes loading Active Directory related modules followed by a network connection to the ADWS dedicated TCP port. Adversaries may abuse the ADWS Windows service that allows Active Directory to be queried via this web service.
Detection Logic
sequence by process.entity_id with maxspan=3m
[library where host.os.type == "windows" and
dll.name : ("System.DirectoryServices*.dll", "System.IdentityModel*.dll") and
not user.id in ("S-1-5-18", "S-1-5-19", "S-1-5-20") and
not process.executable :
("?:\\windows\\system32\\dsac.exe",
"?:\\program files\\powershell\\?\\pwsh.exe",
"?:\\windows\\system32\\windowspowershell\\*.exe",
"?:\\windows\\syswow64\\windowspowershell\\*.exe",
"?:\\program files\\microsoft monitoring agent\\*.exe",
"?:\\windows\\adws\\microsoft.activedirectory.webservices.exe")]
[network where host.os.type == "windows" and destination.port == 9389 and source.port >= 49152 and
network.direction == "egress" and network.transport == "tcp" and not cidrmatch(destination.ip, "127.0.0.0/8", "::1/128")] Field Validations
Loading…
Comments (0)
Loading comments...