A timeline is an argument in chronological order. Each event in it must carry a source, a timestamp in UTC, and a statement of how reliable that timestamp is, because different sources lie in different ways. Filesystem times can be altered, logs can be wiped, and clocks can drift. The value of a super-timeline is not that it is long, but that independent sources agree on the same sequence, which is what makes a hypothesis hard to dismiss. This skill covers building that timeline from forensic sources you are authorized to analyze, checking it for skew and tampering, and using it to confirm or reject a theory about what happened.
Quick Workflow
- Define the incident window and the hypothesis the timeline must test.
- Inventory every timestamped source: filesystem, Registry, Event Logs, browser history, network captures, application logs, and memory.
- Normalize all timestamps to UTC and record each source timezone and any offset applied.
- Merge events into one chronological list, keeping the source and the original timestamp with every event.
- Anchor the timeline with events seen in two or more independent sources, such as a logon that appears in both host and network logs.
- Hunt for gaps, clock jumps, and timestamps that contradict the surrounding sequence.
- Test the hypothesis against the ordered events, and note the events that contradict it as well as those that support it.
- Report the timeline with UTC times, sources, confidence notes, and the gaps stated explicitly.
1. Filesystem timeline as the backbone
# Build a bodyfile from the image, then a human-readable timeline
fls -r -m "/" -o 2048 /dev/loop0p2 > /evidence/case01/bodyfile.txt
mactime -b /evidence/case01/bodyfile.txt -d -y > /evidence/case01/fs_timeline.csv
head -40 /evidence/case01/fs_timeline.csv
# Narrow the filesystem timeline to the incident window
awk -F, '$1 >= "2026-10-20" && $1 <= "2026-10-21"' /evidence/case01/fs_timeline.csv | head -80
# Files modified in a suspicious burst, grouped by minute
cut -d, -f1-2 /evidence/case01/fs_timeline.csv | sort | uniq -c | sort -nr | head -20
The filesystem timeline is a backbone, not a verdict. A modified time shows when metadata changed, not necessarily when a human acted, and bulk operations such as updates, backups, and antivirus scans create bursts that look like attacker activity until they are checked against the surrounding events.
2. Normalizing and merging sources in Python
# Merge timestamped events from several CSV sources into one UTC timeline.
# Each input row must keep its source name and original timestamp so the
# merged timeline stays auditable back to the artifact it came from.
import csv
from datetime import datetime, timezone
def parse_time(value, fmt="%Y-%m-%d %H:%M:%S"):
dt = datetime.strptime(value, fmt)
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt.astimezone(timezone.utc)
events = []
for source, path, time_col in [
("filesystem", "/evidence/case01/fs_timeline.csv", 0),
("eventlog", "/evidence/case01/eventlog.csv", 0),
("network", "/evidence/case01/network.csv", 0),
]:
with open(path, newline="") as fh:
for row in csv.reader(fh):
if not row:
continue
try:
ts = parse_time(row[time_col])
except (ValueError, IndexError):
continue
events.append((ts, source, ",".join(row)))
events.sort(key=lambda item: item[0])
with open("/evidence/case01/super_timeline.csv", "w", newline="") as fh:
writer = csv.writer(fh)
writer.writerow(["utc_time", "source", "event"])
for ts, source, event in events:
writer.writerow([ts.isoformat(), source, event])
print("merged events", len(events))
print("first", events[0][0].isoformat(), "last", events[-1][0].isoformat())
# Check the merged timeline around a key event, such as a first beacon
grep -n "192.0.2.45" /evidence/case01/super_timeline.csv | head -20
grep -n "4624" /evidence/case01/super_timeline.csv | head -20
# Count events per source to spot a source that stops mid-incident
cut -d, -f2 /evidence/case01/super_timeline.csv | sort | uniq -c | sort -nr
If a source stops producing events in the middle of the incident window, that gap is itself evidence, and it may mean logs were cleared, the system was powered off, or collection failed. A merged timeline that hides the gap by simply continuing is misleading, so the report must name the gap and its time range.
3. Detecting clock skew and timestomping
# Compare the same logon event in host and network sources for skew
jq -r '[.utc_time, .source, .event] | @tsv' /evidence/case01/super_timeline.json | grep "logon" | head -20
# Files whose timestamps fall outside the image acquisition window
awk -F, '$1 > "2026-10-27"' /evidence/case01/fs_timeline.csv | head -20
# Timestamps that jump backwards in the merged timeline, which can mark
# a clock change or a timestomped entry inserted out of sequence
awk -F, 'NR>1 && $1 < prev {print "jump at line " NR ": " $0} {prev=$1}' /evidence/case01/super_timeline.csv | head -20
Timestomping changes filesystem times to blend in, so a file whose timestamps are all identical, or whose creation time postdates its modification time, deserves scrutiny. Cross-check the file against Prefetch, ShimCache, and Event Logs, which an attacker would also have to alter to make the forgery consistent, and note where the sources disagree.
4. Testing a hypothesis against the timeline
# Extract the sequence around a suspected intrusion start time
awk -F, '$1 >= "2026-10-20T14:00:00" && $1 <= "2026-10-20T15:00:00"' \
/evidence/case01/super_timeline.csv > /evidence/case01/intrusion_hour.csv
wc -l /evidence/case01/intrusion_hour.csv
cat /evidence/case01/intrusion_hour.csv
# Events per minute in that hour, to find the burst that marks the start
cut -d, -f1 /evidence/case01/intrusion_hour.csv | cut -c1-16 | sort | uniq -c | sort -nr | head -20
A good timeline test states what would falsify the hypothesis before looking at the answer. If the theory says exfiltration followed a download, then a download after the exfiltration breaks the theory, and the report must say so rather than reordering the story to fit. Timelines that only collect supporting events are advocacy, not analysis.
Edge cases
- Sources use local time without a timezone label. Infer the timezone from the system configuration, verify it against a known event, and record the assumption.
- Two systems disagree by a fixed offset. Apply the offset, document the anchor event used to measure it, and keep the original times.
- Daylight saving transitions create ambiguous or missing local times. UTC conversion resolves most of this, but events in the ambiguous hour need a second source to order them.
- Logs were cleared, so one source ends abruptly. Do not fill the gap with speculation, and use surviving sources such as network captures and Registry artifacts to bound what is unknown.
- A single clock jumped forward or backward mid-incident. Split the timeline at the jump, label each segment, and do not merge them as if the clock were continuous.
Key references
- NIST SP 800-86 (Guide to Integrating Forensic Techniques into Incident Response).
- RFC 3227 (Guidelines for Evidence Collection and Archiving).
- The Sleuth Kit documentation for fls bodyfiles and mactime timelines.
- Plaso documentation on super-timeline generation and timestamp normalization concepts.
