09

Track 9 of 12

Defence and monitoring

Know what normal looks like, then notice what does not.

Intermediate 5 lessons Prerequisite: Logs and detection from the security track, and cron from the shell track.

The defender's half of the course, done on a phone. You write down what normal is, watch the files that matter for a change, read logs as a story rather than line by line, make the device tell you when something moves, and walk the six phases of responding to a small incident calmly. Two ideas run through all of it: perfect security does not exist, and detection without a response achieves nothing.

By the end, you can baseline a device, notice a change, build a timeline from logs, and work an incident in order.

  1. 01 Baselines: writing down what normal is You cannot notice a change if you never wrote down what normal was. Defence · Intermediate
  2. 02 File integrity: noticing a change A hash turns a whole file into one short line, and that line is enough to tell you it changed. Defence · Intermediate
  3. 03 Reading logs for a story A log is a list of events, and a list of events is a story once you put it in order. Defence · Intermediate
  4. 04 Alerting on your own device Detection you have to remember to perform is detection you will forget, so make the phone tell you. Defence · Intermediate
  5. 05 Incident response, in six steps When something looks wrong, a calm order of steps beats a rush, and the last step is the one most people skip. Defence · Intermediate

Next up

10 Utilities you build yourself Six small tools, each built twice.