Performing Timeline Reconstruction with Plaso
When to Use
- When building a comprehensive forensic timeline from multiple evidence sources
- For correlating events across file system metadata, event logs, browser history, and registry
- During complex investigations requiring chronological reconstruction of activities
- When standard log analysis is insufficient to establish the sequence of events
- For presenting investigation findings in a visual, chronological format
Prerequisites
- Plaso (log2timeline/psort) installed on forensic workstation
- Forensic disk image(s) in raw (dd), E01, or VMDK format
- Sufficient storage for Plaso output (can be 10x+ the image size)
- Minimum 8GB RAM (16GB+ recommended for large images)
- Timeline Explorer (Eric Zimmerman) or Timesketch for visualization
- Understanding of timestamp types (MACB: Modified, Accessed, Changed, Born)
Workflow
Step 1: Install Plaso and Prepare the Environment
# Install Plaso on Ubuntu/Debian
sudo add-apt-repository ppa:gift/stable
sudo apt-get update
sudo apt-get install plaso-tools
# Or install via pip
pip install plaso
# Or use Docker (recommended for dependency isolation)
docker pull log2timeline/plaso
# Verify installation
log2timeline.py --version
psort.py --version
# Create output directory
mkdir -p /cases/case-2024-001/timeline/
# Verify the forensic image
img_stat /cases/case-2024-001/images/evidence.dd
Step 2: Generate the Plaso Storage File with log2timeline
# Basic processing of a disk image (all parsers)
log2timeline.py \
--storage-file /cases/case-2024-001/timeline/evidence.plaso \
/cases/case-2024-001/images/evidence.dd
# Process with specific parsers for faster targeted analysis
log2timeline.py \
--parsers "winevtx,prefetch,mft,usnjrnl,lnk,recycle_bin,chrome_history,firefox_history,winreg" \
--storage-file /cases/case-2024-001/timeline/evidence.plaso \
/cases/case-2024-001/images/evidence.dd
# Process with a filter file to focus on specific paths
cat << 'EOF' > /cases/case-2024-001/timeline/filter.txt
/Windows/System32/winevt/Logs
/Windows/Prefetch
/Users/*/NTUSER.DAT
/Users/*/AppData/Local/Google/Chrome
/Users/*/AppData/Roaming/Mozilla/Firefox
/$MFT
/$UsnJrnl:$J
/Windows/System32/config
EOF
log2timeline.py \
--filter-file /cases/case-2024-001/timeline/filter.txt \
--storage-file /cases/case-2024-001/timeline/evidence.plaso \
/cases/case-2024-001/images/evidence.dd
# Using Docker
docker run --rm -v /cases:/cases log2timeline/plaso log2timeline \
--storage-file /cases/case-2024-001/timeline/evidence.plaso \
/cases/case-2024-001/images/evidence.dd
# Process multiple evidence sources into one timeline
log2timeline.py \
--storage-file /cases/case-2024-001/timeline/combined.plaso \
/cases/case-2024-001/images/workstation.dd
log2timeline.py \
--storage-file /cases/case-2024-001/timeline/combined.plaso \
/cases/case-2024-001/images/server.dd
Step 3: Filter and Export Timeline with psort
# Export full timeline to CSV (super-timeline format)
psort.py \
-o l2tcsv \
-w /cases/case-2024-001/timeline/full_timeline.csv \
/cases/case-2024-001/timeline/evidence.plaso
# Export with date range filter (focus on incident window)
psort.py \
-o l2tcsv \
-w /cases/case-2024-001/timeline/incident_window.csv \
/cases/case-2024-001/timeline/evidence.plaso \
"date > '2024-01-15 00:00:00' AND date < '2024-01-20 23:59:59'"
# Export in JSON Lines format (for ingestion into SIEM/Timesketch)
psort.py \
-o json_line \
-w /cases/case-2024-001/timeline/timeline.jsonl \
/cases/case-2024-001/timeline/evidence.plaso
> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.
1---2name: performing-timeline-reconstruction-with-plaso3description: "Performs timeline reconstruction with Plaso. Signals: asset mapping, fingerprinting, technology stack identification."4zh-signals: "Performing Timeline Reconstruction with Plaso 信号:资产测绘,指纹识别,技术栈识别。"5when-to-use: >-6 Builds comprehensive forensic super-timelines using Plaso (log2timeline and7 psort) to correlate events across file system metadata, event logs, browser8 history, and registry artifacts into a unified chronological view. Use9 during complex forensic investigations that need cross-source event10 correlation, or when standard log analysis is insufficient to establish the11 sequence of activities for reporting findings.12domain: cybersecurity13subdomain: digital-forensics14tags:15- forensics16- timeline-analysis17- plaso18- log2timeline19- super-timeline20- event-correlation21version: '1.0'22author: mahipal23license: Apache-2.024nist_csf:25- RS.AN-0326- DE.AE-0227- RS.MA-0128mitre_attack:29- T100530- T107431- T111932- T107033- T105934metadata:35 source: https://skillmd.com/skills/dangeroussong/performing-timeline-reconstruction-with-plaso36---3738# Performing Timeline Reconstruction with Plaso3940## When to Use41- When building a comprehensive forensic timeline from multiple evidence sources42- For correlating events across file system metadata, event logs, browser history, and registry43- During complex investigations requiring chronological reconstruction of activities44- When standard log analysis is insufficient to establish the sequence of events45- For presenting investigation findings in a visual, chronological format4647## Prerequisites48- Plaso (log2timeline/psort) installed on forensic workstation49- Forensic disk image(s) in raw (dd), E01, or VMDK format50- Sufficient storage for Plaso output (can be 10x+ the image size)51- Minimum 8GB RAM (16GB+ recommended for large images)52- Timeline Explorer (Eric Zimmerman) or Timesketch for visualization53- Understanding of timestamp types (MACB: Modified, Accessed, Changed, Born)5455## Workflow5657### Step 1: Install Plaso and Prepare the Environment5859```bash60# Install Plaso on Ubuntu/Debian61sudo add-apt-repository ppa:gift/stable62sudo apt-get update63sudo apt-get install plaso-tools6465# Or install via pip66pip install plaso6768# Or use Docker (recommended for dependency isolation)69docker pull log2timeline/plaso7071# Verify installation72log2timeline.py --version73psort.py --version7475# Create output directory76mkdir -p /cases/case-2024-001/timeline/7778# Verify the forensic image79img_stat /cases/case-2024-001/images/evidence.dd80```8182### Step 2: Generate the Plaso Storage File with log2timeline8384```bash85# Basic processing of a disk image (all parsers)86log2timeline.py \87 --storage-file /cases/case-2024-001/timeline/evidence.plaso \88 /cases/case-2024-001/images/evidence.dd8990# Process with specific parsers for faster targeted analysis91log2timeline.py \92 --parsers "winevtx,prefetch,mft,usnjrnl,lnk,recycle_bin,chrome_history,firefox_history,winreg" \93 --storage-file /cases/case-2024-001/timeline/evidence.plaso \94 /cases/case-2024-001/images/evidence.dd9596# Process with a filter file to focus on specific paths97cat << 'EOF' > /cases/case-2024-001/timeline/filter.txt98/Windows/System32/winevt/Logs99/Windows/Prefetch100/Users/*/NTUSER.DAT101/Users/*/AppData/Local/Google/Chrome102/Users/*/AppData/Roaming/Mozilla/Firefox103/$MFT104/$UsnJrnl:$J105/Windows/System32/config106EOF107108log2timeline.py \109 --filter-file /cases/case-2024-001/timeline/filter.txt \110 --storage-file /cases/case-2024-001/timeline/evidence.plaso \111 /cases/case-2024-001/images/evidence.dd112113# Using Docker114docker run --rm -v /cases:/cases log2timeline/plaso log2timeline \115 --storage-file /cases/case-2024-001/timeline/evidence.plaso \116 /cases/case-2024-001/images/evidence.dd117118# Process multiple evidence sources into one timeline119log2timeline.py \120 --storage-file /cases/case-2024-001/timeline/combined.plaso \121 /cases/case-2024-001/images/workstation.dd122123log2timeline.py \124 --storage-file /cases/case-2024-001/timeline/combined.plaso \125 /cases/case-2024-001/images/server.dd126```127128### Step 3: Filter and Export Timeline with psort129130```bash131# Export full timeline to CSV (super-timeline format)132psort.py \133 -o l2tcsv \134 -w /cases/case-2024-001/timeline/full_timeline.csv \135 /cases/case-2024-001/timeline/evidence.plaso136137# Export with date range filter (focus on incident window)138psort.py \139 -o l2tcsv \140 -w /cases/case-2024-001/timeline/incident_window.csv \141 /cases/case-2024-001/timeline/evidence.plaso \142 "date > '2024-01-15 00:00:00' AND date < '2024-01-20 23:59:59'"143144# Export in JSON Lines format (for ingestion into SIEM/Timesketch)145psort.py \146 -o json_line \147 -w /cases/case-2024-001/timeline/timeline.jsonl \148 /cases/case-2024-001/timeline/evidence.plaso149150> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.