Windows records thousands of event types. A small set of them catches most of what attackers do. Here is the short list.
Windows logs are noisy, but they are also one of the best sources of evidence you have. The trick is knowing which events to watch. These are the ones that show up again and again in real investigations.
Sign-ins
- 4624: a successful sign-in. Useful for building a picture of who signed in where.
- 4625: a failed sign-in. Many in a short time point to password guessing.
- 4740: an account was locked out. Often the visible end of a guessing attack.
- 4672: special privileges were assigned to a new sign-in. In practice, an admin signed in.
Accounts and groups
- 4720: a user account was created.
- 4728, 4732, 4756: a member was added to a security group. Watch admin groups such as Domain Admins closely.
- 4724: an attempt was made to reset an account's password.
Persistence
- 7045: a new service was installed. Attackers often install services to keep access.
- 4698: a scheduled task was created. Another common way to keep access.
Covering tracks
- 1102: the security log was cleared. There is rarely a good reason for this on a server. Treat it as serious.
Make sure they are being recorded
Several of these events only appear when the right audit policy is turned on. Check that your domain controllers and servers record sign-ins, account management, security group changes and system events. A quick test is to create a test user and confirm that event 4720 reaches your SIEM within a minute.
Where HexaLogs fits
HexaLogs SIEM collects these events from every Windows device, raises clear alerts for the risky ones, such as admin group changes, cleared logs and new services, and links each detection to MITRE ATT&CK.