Fake computer account authentication attempt
Description
'This query detects authentication attempt from a fake computer account(username ends with $). Computer accounts are normally not authenticating via interactive logon or remote desktop neither they are unlocking the systems.'
Query · kql
SecurityEvent | where TargetUserName endswith "$" and EventID in (4624,4625) and LogonTypeName in (2,7,10) | summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, TargetUserName, TargetLogonId, LogonTypeName, IpAddress