r/PowerShell • u/Funny_Abalone5015 • Jan 26 '26
Does PrincipalContext.ValidateCredentials Method generate logs ?
As mentionned in the title, I wanted to know if this method does generate logs, and if so where ?
I read that the method creates an LDAP bind connection and I've ran a password spraying script on my domain using it to test detections. The EDR did not trigger any alert and I couldn't find any logs on the DC. Perhaps they are logged locally ?
It would help me to know the answer because this could mean someone could potentially validate credentials without being detected, which I highly doubt is the case.
1
Upvotes
View all comments
Show parent comment
1
u/Funny_Abalone5015 Jan 30 '26
I doubt this would be the problem I checked right after. Logs are ingested in the SIEM so event if the DC does delete them, they are stored on the SIEM infrastructure