Build the Timeline Across Five Clocks
- Intermediate
- 30 min
- Blue Team
- Forensics
- Timeline
- awk
- Kestrel
Overview
The morning of 4 November. Customers have been getting SMS messages that use their names and phone numbers. Harpreet Kaur calls it in at 07:15; Simran Gill rolls back the release that went out at 22:47 the night before and, before anything rotates, copies the server's logs to /srv/evidence/var/log (start with cat /srv/evidence/README.md). This machine is that server, kestrel-api-1, exactly as the attacker left it.
Every log in /srv/evidence tells part of the story, and each tells time its own way: auth.log says Nov 4 01:26:26 (no year, IST), nginx says [04/Nov/2026:01:26:26 +0530], the API and PostgreSQL say 2026-11-04 01:26:26, and the audit log says msg=audit(1793736056.000:18229) — seconds since 1970, UTC. Before anyone can say what happened first, the times have to mean the same thing.
You will rewrite auth.log in ISO 8601, convert an audit record to IST, and assemble the six events the incident report hangs on.
What you will learn
- Rewrite a year-less syslog timestamp as ISO 8601 with awk, without mangling the line
- Convert epoch seconds to a time zone with
date -d @…andTZ= - Correlate one attacker across web, SSH and audit logs
- Write a sorted timeline of the incident
Before you start
- Comfortable in a Linux shell:
grep, pipes and redirecting with> sudofor files another account owns — you have it here- The earlier labs in this track help: this one uses what they found
Tasks
- 01Give auth.log a year
- 02The audit log's clock
- 03Six events, in order