Timeline analysis
A timeline puts a system’s events (files, logs, registry, executions, network) in chronological order to reconstruct the attack sequence: when they got in, what they did and in what order. It is the technique that ties all the DFIR evidence into a defensible narrative and the backbone of the final report.
What it solves
Section titled “What it solves”Each artifact tells a fragment: a logon here, a file there, a network connection. The timeline merges them in order and reveals causality: the email at 10:03, Word’s child process at 10:04, persistence at 10:06, lateral movement at 10:30. It answers the central question of any incident (what was the exact sequence) and two that matter to the business and the regulator: since when the attacker was inside and what data they could touch in that period.
MACB timestamps
Section titled “MACB timestamps”| Letter | Meaning | NTFS | ext4 |
|---|---|---|---|
| M | Content modification | Yes | mtime |
| A | Last access | Yes, but updates are usually disabled or deferred | atime (with relatime, only updated in some cases) |
| C | Metadata change | MFT entry change | ctime |
| B | Creation (birth) | Yes | crtime |
On NTFS every file has two sets of timestamps: $STANDARD_INFORMATION (what Explorer shows and what APIs let you change) and $FILE_NAME (updated by the system on operations such as create or move). Comparing the two is the classic way to detect timestomping.
Two kinds of timeline
Section titled “Two kinds of timeline”flowchart LR
I["Image or triage<br/>collection"] --> F["fls -m · bodyfile"]
F --> M["mactime"]
M --> T1["File system<br/>timeline (fast)"]
I --> L["log2timeline<br/>(hundreds of parsers)"]
L --> S[".plaso storage"]
S --> P["psort + window<br/>filter"]
P --> T2["Super timeline<br/>(complete)"]
T2 --> TS["Timesketch<br/>(collaborative analysis)"]
- File system timeline: only the MACB times of files and directories. Built in minutes and ideal for a first pass.
- Super timeline: files plus event logs, Windows registry, browsers, Prefetch, Linux logs and dozens of other sources. Much more context and much more volume.
File system timeline with The Sleuth Kit
Section titled “File system timeline with The Sleuth Kit”The following outputs come from a lab ext4 image in which a webshell (img.php) was created with its modification time copied from index.html using touch -r:
fls -r -m / image.raw > bodyfile # bodyfile with each entry's timestampsmactime -b bodyfile -d -y > timeline.csv # -d CSV, -y ISO 8601 dates in UTCDate,Size,Type,Mode,UID,GID,Meta,File Name2026-03-01T08:00:00Z,29,ma..,r/rrw-r--r--,0,0,16,"/var/www/html/img.php"2026-03-01T08:00:00Z,6,ma..,r/rrw-r--r--,0,0,17,"/var/www/html/index.html"2026-11-20T12:45:54Z,29,..cb,r/rrw-r--r--,0,0,16,"/var/www/html/img.php"2026-11-20T12:45:54Z,6,..cb,r/rrw-r--r--,0,0,17,"/var/www/html/index.html"The Type column shows which timestamps match that row: ma.. is modification and access; ..cb, metadata change and creation. The webshell shows up in March by its mtime, but its crtime and ctime place it months later. istat on the inode gives all four timestamps for a single file.
Super timeline with Plaso
Section titled “Super timeline with Plaso”Plaso (log2timeline) extracts events with hundreds of parsers and stores them in a .plaso file; psort sorts, filters and exports them. Test run with Plaso 20261027 installed with pip (in that install the commands are named log2timeline, psort and psteal; the Docker image and older guides use .py):
# 1. Extract events from an image, a triage collection or a directorylog2timeline --storage-file case.plaso image.raw
# 2. Export the whole timeline to CSVpsort -o dynamic -w timeline.csv case.plaso
# 3. Only the incident windowpsort -o dynamic -w window.csv case.plaso \ "date > DATETIME('2026-02-28T00:00:00') AND date < DATETIME('2026-03-02T00:00:00')"
# All in one step (extract + export)psteal --source image.raw -o dynamic -w timeline.csvdatetime,timestamp_desc,source,source_long,message,parser,display_name,tag2026-03-01T08:00:00.000000+00:00,Content Modification Time,FILE,File stat,EXT:/var/www/html/img.php ...--parsersrestricts the parsers (for example--parsers "win7,!filestat") when the volume is unmanageable.- The
dynamicandl2tcsvformats suit spreadsheets and Timeline Explorer;json_lineoropensearchfor loading into other platforms. - Timesketch imports
.plasofiles or CSVs and lets a team search, tag, annotate and work on the same timeline.
Analysis method
Section titled “Analysis method”- Normalize time: everything in UTC; record each host’s time zone and check for clock skew (NTP) against reference events, such as a logon recorded both on the host and on the domain controller.
- Anchor on a known fact: the alert, the first confirmed IOC, the time of the malicious email.
- Bound the window around the anchor and widen it in both directions as new facts appear.
- Pivot: every finding gives a time, a user, a file or an IP; look for what else happened in that second, with that user or that file.
- Filter the noise: updates, antivirus and legitimate scheduled tasks generate thousands of events; exclude them deliberately and document what was excluded.
- Rebuild the chain: initial access → execution → persistence → escalation → lateral movement → objective, mapped to MITRE ATT&CK.
- Correlate across sources and hosts: the same action should appear in several places (4624 on the target, 4648 on the source, the connection in network traffic, the process in memory).
| Source | What it adds to the timeline |
|---|---|
$MFT, $UsnJrnl, inodes |
File creation, change and deletion (disk forensics) |
EVTX, journal, auth.log |
Logons, services, execution (Windows, Linux) |
| Prefetch, Amcache, BAM | Execution times on Windows |
| Browser and email | Downloads, links, attachments |
Memory (timeliner) |
Process creation and connections at dump time |
| Network, proxy, DNS, EDR, cloud | Context outside the host, beyond the attacker’s reach |
Anti-forensics
Section titled “Anti-forensics”- Timestomping: tools that rewrite
$STANDARD_INFORMATION(ortouchon Linux). Indicators:$SIearlier than$FN, zeroed fractions of a second,ctimeorcrtimelater thanmtime, or a$UsnJrnlentry contradicting the “official” date. - Log clearing to open gaps; the gap and the clearing event itself (1102, 104) are evidence.
- System clock tampering so events fall outside the window under investigation; detected through time change events (4616 on Windows) and comparison with external sources.
- Time zone offsets that confuse correlation: the defense is normalizing everything to UTC from the start.
Real-world cases
Section titled “Real-world cases”- Volt Typhoon (joint advisory AA24-038A, February 2024): the authoring agencies saw indications that the actor had kept access in some victims for at least five years. A timeline can only reach as far back as the retained data allows: if logs rotate within weeks, there is no way to date the initial access or know what was touched over the years. Lesson: centralized log retention is decided before the incident, and the timeline must state explicitly how far back the data goes and which period is not covered.
Checklist
Section titled “Checklist”- Each source’s time zone documented and everything normalized to UTC
- Clock skew checked against reference events
- File system timeline (
fls+mactime) for the first pass - Plaso super timeline over the relevant images or collections
- Incident window bounded from an anchor and widened while pivoting
- Timestomping checked:
$SIvs$FN,ctime/crtimevsmtime,$UsnJrnl - Noise excluded deliberately and documented
- Attack chain rebuilt, correlated across hosts and mapped to ATT&CK
- Data limits (retention, gaps) stated in the report
References
Section titled “References”- Plaso (log2timeline): https://github.com/log2timeline/plaso and https://plaso.readthedocs.io/
- Plaso, event filter syntax: https://plaso.readthedocs.io/en/latest/sources/user/Event-filters.html
- Timesketch: https://timesketch.org/
- The Sleuth Kit (
fls,mactime,istat): https://www.sleuthkit.org/sleuthkit/ - CISA and partners, AA24-038A: https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-038a
- NIST SP 800-86, Guide to Integrating Forensic Techniques into Incident Response: https://csrc.nist.gov/pubs/sp/800/86/final