Timelines and reporting
Unit 5 of 5 in Digital forensics basics.
You will be able to build and read a timeline, correct for time zones, and write a report that separates facts from interpretation.
Lesson
A timeline puts events in order
Plaso describes itself as a Python-based engine used by several tools for automatic creation of timelines. By default it creates super timelines, though it can also create more targeted ones, and these timelines help investigators correlate the large amount of information found in logs and other files on an average computer. The idea is the same as in SP 800-86's analysis phase: identify people, places, items and events, relate them to each other and reach a conclusion, often by correlating several sources.
The Plaso lab runs log2timeline on a source you own, filters to a time window and exports a CSV with psort. It stresses that a super timeline is huge and noisy, so scoping by time window and artifact type is the skill, and that you should distrust any single timestamp.
Time zones and timestamps
RFC 3227 says to note the difference between the system clock and UTC and to say, for each timestamp, whether it is UTC or local. SP 800-86 describes the modification, access and creation times that file systems keep, and warns that creation time becomes the copy time when a file is copied to a new system, that clocks can be wrong, and that attackers can alter times. So a timestamp is a claim to be checked.
A common mistake is a time zone error that sends the investigation to the wrong hour. State every time in UTC in your working timeline, convert on the way in, and write what the user said next to what the timeline shows when they differ.
Working a timeline as a team
Timesketch describes itself as an open-source tool for collaborative forensic timeline analysis, where collaborators work together in sketches. The lab has you import a small hand-built intrusion timeline, search by field and date range, star, tag and comment on events so a teammate can follow your reasoning, save a search, write a story that tells the narrative and export the sketch as a case record. Every host and address in the data is fictional.
The habit that matters is marking why an event matters, not just that it does. A tag with a comment is evidence of your reasoning; a note you keep in your head is not.
Reporting: facts, alternatives and audience
SP 800-86 names the factors that shape a report. Alternative explanations: when information is incomplete there may be no definitive explanation, and if an event has two or more plausible explanations each should be considered, using a methodical attempt to prove or disprove each. Audience: an incident involving law enforcement needs highly detailed reports and may need copies of all evidentiary data, an administrator may want network traffic in detail, and senior management may want a high-level overview of how the attack occurred and what to do to prevent it. Actionable information: findings may point to new sources of data or to ways to prevent future events.
The guide also says analysts should identify problems to be fixed, such as policy shortcomings or procedural errors, and that teams often hold formal reviews after each large incident and then tell all members about the changes. A report that ends with a list of things that went wrong in the response, and who will fix them, is part of the job.
The report lab starts from a finished timeline CSV and has a script calculate time to detect, contain and recover so the numbers cannot drift from the evidence. It separates measured facts from interpretation, ends the root cause at a control, not a person, and writes actions that someone can check later. The practice is plain: facts first, interpretation labeled, limits stated, summary last.
Key points
- A timeline correlates many sources into one sequence; scope it by time and artifact so it stays readable.
- Put everything in UTC, and say which time each timestamp used; one timestamp is a claim, not proof.
- Tag and comment as you work so a teammate can follow the reasoning.
- Report alternative explanations, tailor to the audience, separate fact from interpretation and say what you could not tell.
- End with actions and a review of what the response itself got wrong.
Sources
- Plaso (log2timeline) documentation
- Timesketch: collaborative timeline analysis
- NIST SP 800-86: Guide to Integrating Forensic Techniques into Incident Response (2006)
- RFC 3227: Guidelines for Evidence Collection and Archiving (2002)
Practice in the labs
Build a timeline with Plaso on data you own, work a timeline together in Timesketch and write the report from a finished timeline. Plaso and Timesketch run in Docker on your own machine.
- Build a forensic super-timeline with Plaso (Part 1): You build a .plaso file from a source you own, filter it to a window and export a CSV, then read it for a created, executed, connected sequence.
- Work an intrusion timeline like a team: import, search, tag and tell the story in Timesketch: You import a fictional intrusion timeline, search it, mark evidence with stars, tags and comments and write a story and export the case.
- Write an after-action report from an incident timeline: facts, timeline, root cause, actions: A script calculates time to detect, contain and recover from the timeline, and you write facts, root cause, what worked and checkable actions.
Knowledge check
- You find a timestamp of 09:15 in one log and 14:15 in another for what looks like the same event. What is the first thing to check? Answer: Whether each uses UTC or local time, and how far the system clocks were off. RFC 3227 tells you to say, for every timestamp, whether it is UTC or local, and to record clock drift. A five-hour gap is the kind of difference a time zone mistake produces.
- SP 800-86 says an event has two plausible explanations. What should the report do? Answer: Give each due consideration and try methodically to prove or disprove each. The guide says that when an event has two or more plausible explanations each should be given due consideration, using a methodical approach to prove or disprove each.
- Why scope a Plaso super timeline by time window and artifact type? Answer: It contains a very large number of events, most of them unrelated noise. A super timeline is built to include everything it can parse, which is thousands of rows. Scoping makes the sequence readable, which the Plaso lab names as the real skill.
- Who is a good audience for a high-level overview of how an attack happened and how to prevent it, according to SP 800-86? Answer: Senior management. The guide says senior management might simply want a high-level overview and what to do to prevent similar incidents, while law enforcement needs highly detailed reports and a system administrator may want detailed network data.
Back to the syllabus or see all classes.