How to detect password attacks (brute force, password spraying) on an Active Directory domain?
I want to be alerted when a computer or an attacker tries many passwords against the accounts of my Active Directory domain, whether on a single account (brute force) or on many accounts at once (password spraying).
Can IDEAL Administration detect this type of attack?
Yes, starting with version 27.0, thanks to the Windows event audits of the Real Time Audits. Authentication failures are counted on all your domain controllers, per account or per origin (computer or IP address).
1. Enable failure auditing on the domain controllers
In the group policy applied to the domain controllers (for example Default Domain Controllers Policy): Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies:
- Account Logon: Audit Credential Validation (ID 4776) and Audit Kerberos Authentication Service (ID 4771), Failure;
- Logon/Logoff: Audit Logon (ID 4625), Failure;
- Account Management: Audit User Account Management (ID 4740, account locked out), Success.
2. Create the audits from the templates
Active Directory Network tab, Real Time Audits sub-tab, Action > Configure, then Action > Add a Windows event audit... and choose the template:
| Template | What it detects | Recommended alert |
|---|---|---|
| Logon failures per account | Brute force: many failures on the same account | >= 5 in 10 min, Warning |
| Attack on several accounts from the same origin | Password spraying: the same computer or IP tries many different accounts | >= 10 accounts in 10 min, Security / Urgent |
| Logon failures from the same origin | A computer or IP piling up failures, all accounts together | >= 20 in 10 min, Critical |
| Locked-out accounts | Account lockouts | >= 1 in 60 min, Warning |
Per-origin counting is the most useful against password spraying: the attacker stays below each account's lockout threshold, but a single computer targets a large number of accounts.
In Excluded accounts, add accounts that often fail harmlessly, for example svc_*;*$ (service accounts and computer accounts).
Click Test to check that the domain controllers answer, confirm, then set the alert with Action > Alert (value >= recommended threshold). Enable email notification to be warned immediately.
Reading the alert
The alert and the email show the most affected accounts or origins on the Details line: you know right away which computer or IP address to investigate.

