Saltar al contenido ForoHackers

Four Windows Security event IDs I always want an alert on

Defensa y blue teamOperaciones de seguridadWindows
#1198 · patch_tuesday_pariah · · Denunciar

After a lot of years of reading Windows logs, these are the four I would alert on first. None of them is proof of anything, all of them are worth a human glance:

Event ID Meaning Why it matters
4625 A failed logon A burst from one source against many accounts is password spraying
4720 A user account was created Unexpected new accounts are persistence
4732 A member was added to a security-enabled local group Especially the local Administrators group
1102 The audit log was cleared Someone wants to hide something. Or a tired admin did

Two honest caveats:

  • Most of these need the right audit policy to be enabled in the first place. If it is not logged, it did not happen.
  • A local log can be cleared by whoever controls the machine, so forward events to a collector and alert there.

Tuning is the real work. A rule that fires 400 times a day is a rule nobody reads.

#2096 · tired_sre_at_3am · · Denunciar

"A rule that fires 400 times a day is a rule nobody reads" should be on a poster. I would add: every alert needs an owner and a "what do I do now" line. Otherwise it is just anxiety delivered by email.

#2097 · c0ld_b00t · · Denunciar

1102 is my favourite on this list. The attacker or the tired admin, both are interesting, and you want the timestamp either way. Make sure the forwarded copy has the time before the clear, because that is the part the local log no longer remembers.

#2098 · regex_regret · · Denunciar

For testing your rule on an exported log, the built-in tool can filter by ID, no regex required:

wevtutil qe Security "/q:*[System[(EventID=1102)]]" /c:5 /rd:true /f:text

Notice I did not parse the XML with a regex. Growth.

#2099 · patch_tuesday_pariah · · Denunciar

Regex_regret: character development. And agreed on the owner for every alert, Tired. I keep a spreadsheet of "alert, owner, action". It is the least glamorous file in the company and the most useful.

Inicia sesión o únete para responder.