
Password spraying is a common authentication attack method where an attacker tries a small set of passwords across a large number of accounts at a low frequency.
Unlike traditional brute-force attacks, which use many passwords against a single account, password spraying targets many user accounts using a limited number of commonly used weak passwords. This approach helps attackers avoid account lockout policies based on failed attempts, while exploiting users’ tendency to choose weak passwords to gain access to systems.
Currently, password spraying is the most common attack method in internal network penetration. Compared to traditional brute-force attacks, it is more covert and has a higher success rate in environments with a large user base.
Such attacks typically occur over extended timeframes, with few failed attempts per account but broad coverage across many accounts, posing a significant threat to organizational account security. Timely detection of these attacks helps prevent credential theft and subsequent privilege escalation risks.
Write a detection rule to identify password spraying attacks in logs where the attacker successfully cracked a password. Focus on identifying authentication attempts from the same source IP address targeting multiple different user accounts within a short period, resulting in at least one successful login.
When writing detection queries, ensure the
IpAddressfield is included in the output for further validation.
Data source: Windows Security; sample data:
{ "AuthenticationPackageName": "NTLM", "Channel": "Security", "Computer": "DESKTOP-PBEA012", "EventId": 4625, "FailureReason": "%%2313", "IpAddress": "172.26.81.196", "IpPort": "53023", "KeyLength": "0", "LmPackageName": "-", "LogonProcessName": "NtLmSsp ", "LogonType": "3", "ProcessId": "0x0", "ProcessName": "-", "Status": "0xc000006d", "SubStatus": "0xc0000064", "SubjectDomainName": "-", "SubjectLogonId": "0x0", "SubjectUserName": "-", "SubjectUserSid": "S-1-0-0", "SystemTime": "2025-07-10T10:27:27.0280905Z", "TargetDomainName": null, "TargetUserName": "CRUZ", "TargetUserSid": "S-1-0-0", "TransmittedServices": "-", "WorkstationName": "\\\\172.26.81.196"}
No fields found