Practice: ordered behaviour
15 min · 2 ejercicio(s)
Cheat sheet
sequence by host.name with maxspan=5m
[file where file.name == "updater.exe"]
[process where process.name == "updater.exe"]| Part | Meaning |
|---|---|
sequence |
Events must occur in this order |
by host.name |
Join key shared by all events (can be several: by host.name, user.name) |
[…] by field |
Join key per event, when names differ between events |
with maxspan=5m |
Whole sequence must fit into 5 minutes |
![…] |
Missing event: the sequence only matches if this event does not occur |
until […] |
Abort the sequence when this event occurs |
Good join keys
host.namefor "on the same machine"process.entity_idfor "the same process" (pids are reused, entity ids are not)user.namefor "the same account"source.ipfor logon sequences
Keep maxspan tight
A sequence without maxspan can link events that are days apart and produces noise. Think about how fast the real attack step happens (a dropper runs its payload within seconds) and add a safety margin.