Finding Evil LDAP Queries
Have you ever wondered what LDAP queries were hitting your domain controllers? Even outside of fun investigations, it can be insightful to get a sampling of queries hitting your domain controller. The more services you have integrated with Active Directory, the more likely a vendor or sysadmin unwittingly configured their service to produce evil queries.
Mark Morowczynski from Microsoft wrote a great post on finding these expensive, inefficient, or long running queries - But something was missing. Screen shots of regedit? If you have more than a handful of domain controllers, enabling and disabling this logging is going to be quite a chore.
Here’s a quick bit on using PowerShell to enable and disable this logging quickly. Take a peek, you might find some misbehaving applications.
Related Articles
A Microsoft 365 Incident Should Not Start With Twelve Disconnected Scripts
A compromised Microsoft 365 account rarely stays inside one administrative surface. Sign-ins live in Microsoft Entra ID. …
Read moreFind What Wakes a Windows PC With Get-WinEvent
A PC that turns itself on at night leaves a record in the System log every time it does. Windows writes one event when the PC …
Read moreFind Free Azure CIDR Blocks with PowerShell
Suppose the network team assigns 10.172.0.0/16 to an Azure landing zone. You need to divide it into correctly aligned virtual …
Read more