Skip to content
Pwnversity
DFIR-TIMELINEadvanced · 9 min · upd. 2026-11

Timeline analysis

PlasoSleuth KitT1070.006

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.

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.

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.

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.

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:

Ventana de terminal
fls -r -m / image.raw > bodyfile # bodyfile with each entry's timestamps
mactime -b bodyfile -d -y > timeline.csv # -d CSV, -y ISO 8601 dates in UTC
Date,Size,Type,Mode,UID,GID,Meta,File Name
2026-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.

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):

Ventana de terminal
# 1. Extract events from an image, a triage collection or a directory
log2timeline --storage-file case.plaso image.raw
# 2. Export the whole timeline to CSV
psort -o dynamic -w timeline.csv case.plaso
# 3. Only the incident window
psort -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.csv
datetime,timestamp_desc,source,source_long,message,parser,display_name,tag
2026-03-01T08:00:00.000000+00:00,Content Modification Time,FILE,File stat,EXT:/var/www/html/img.php ...
  • --parsers restricts the parsers (for example --parsers "win7,!filestat") when the volume is unmanageable.
  • The dynamic and l2tcsv formats suit spreadsheets and Timeline Explorer; json_line or opensearch for loading into other platforms.
  • Timesketch imports .plaso files or CSVs and lets a team search, tag, annotate and work on the same timeline.
  1. 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.
  2. Anchor on a known fact: the alert, the first confirmed IOC, the time of the malicious email.
  3. Bound the window around the anchor and widen it in both directions as new facts appear.
  4. 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.
  5. Filter the noise: updates, antivirus and legitimate scheduled tasks generate thousands of events; exclude them deliberately and document what was excluded.
  6. Rebuild the chain: initial access → execution → persistence → escalation → lateral movement → objective, mapped to MITRE ATT&CK.
  7. 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
  • Timestomping: tools that rewrite $STANDARD_INFORMATION (or touch on Linux). Indicators: $SI earlier than $FN, zeroed fractions of a second, ctime or crtime later than mtime, or a $UsnJrnl entry 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.
  • 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.
  • 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: $SI vs $FN, ctime/crtime vs mtime, $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