[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HNJ7QQ9R07FA4TDX2CC1SQ":3,"skill-same:01M6HNJ7QQ9R07FA4TDX2CC1SQ":99},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6HNJ7QQ9R07FA4TDX2CC1SQ","performing-timeline-reconstruction-with-plaso",null,"Build comprehensive forensic super-timelines using Plaso (log2timeline) to correlate events across file systems, logs, and artifacts into a unified chronological view.","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-timeline-reconstruction-with-plaso\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"timeline","performing","with","performing timeline reconstruction with plaso","plaso","timeline-analysis","log2timeline","super-timeline","event-correlation","t1059","cybersecurity","analysis","logs","view","build","across","de","event","file","artifacts","2026-11-10 10:12:30",false,"---\nname: performing-timeline-reconstruction-with-plaso\ndescription: Build comprehensive forensic super-timelines using Plaso (log2timeline) to correlate events across file systems, logs, and artifacts into a unified chronological view.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- timeline-analysis\n- plaso\n- log2timeline\n- super-timeline\n- event-correlation\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.AN-01\n- RS.AN-03\n- DE.AE-02\n- RS.MA-01\nmitre_attack:\n- T1005\n- T1074\n- T1119\n- T1070\n- T1059\ncategory: performing-timeline-reconstruction-with-plaso\n---\n# Performing Timeline Reconstruction with Plaso\n\n## When to Use\n- When building a comprehensive forensic timeline from multiple evidence sources\n- For correlating events across file system metadata, event logs, browser history, and registry\n- During complex investigations requiring chronological reconstruction of activities\n- When standard log analysis is insufficient to establish the sequence of events\n- For presenting investigation findings in a visual, chronological format\n\n## Prerequisites\n- Plaso (log2timeline\u002Fpsort) installed on forensic workstation\n- Forensic disk image(s) in raw (dd), E01, or VMDK format\n- Sufficient storage for Plaso output (can be 10x+ the image size)\n- Minimum 8GB RAM (16GB+ recommended for large images)\n- Timeline Explorer (Eric Zimmerman) or Timesketch for visualization\n- Understanding of timestamp types (MACB: Modified, Accessed, Changed, Born)\n\n## Workflow\n\n### Step 1: Install Plaso and Prepare the Environment\n\n```bash\n# Install Plaso on Ubuntu\u002FDebian\nsudo add-apt-repository ppa:gift\u002Fstable\nsudo apt-get update\nsudo apt-get install plaso-tools\n\n# Or install via pip\npip install plaso\n\n# Or use Docker (recommended for dependency isolation)\ndocker pull log2timeline\u002Fplaso\n\n# Verify installation\nlog2timeline.py --version\npsort.py --version\n\n# Create output directory\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002F\n\n# Verify the forensic image\nimg_stat \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n```\n\n### Step 2: Generate the Plaso Storage File with log2timeline\n\n```bash\n# Basic processing of a disk image (all parsers)\nlog2timeline.py \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Process with specific parsers for faster targeted analysis\nlog2timeline.py \\\n   --parsers \"winevtx,prefetch,mft,usnjrnl,lnk,recycle_bin,chrome_history,firefox_history,winreg\" \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Process with a filter file to focus on specific paths\ncat \u003C\u003C 'EOF' > \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ffilter.txt\n\u002FWindows\u002FSystem32\u002Fwinevt\u002FLogs\n\u002FWindows\u002FPrefetch\n\u002FUsers\u002F*\u002FNTUSER.DAT\n\u002FUsers\u002F*\u002FAppData\u002FLocal\u002FGoogle\u002FChrome\n\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMozilla\u002FFirefox\n\u002F$MFT\n\u002F$UsnJrnl:$J\n\u002FWindows\u002FSystem32\u002Fconfig\nEOF\n\nlog2timeline.py \\\n   --filter-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ffilter.txt \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Using Docker\ndocker run --rm -v \u002Fcases:\u002Fcases log2timeline\u002Fplaso log2timeline \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Process multiple evidence sources into one timeline\nlog2timeline.py \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fcombined.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fworkstation.dd\n\nlog2timeline.py \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fcombined.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fserver.dd\n```\n\n### Step 3: Filter and Export Timeline with psort\n\n```bash\n# Export full timeline to CSV (super-timeline format)\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ffull_timeline.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n\n# Export with date range filter (focus on incident window)\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fincident_window.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \"date > '2024-01-15 00:00:00' AND date \u003C '2024-01-20 23:59:59'\"\n\n# Export in JSON Lines format (for ingestion into SIEM\u002FTimesketch)\npsort.py \\\n   -o json_line \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ftimeline.jsonl \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n\n# Export with specific source type filters\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fregistry_events.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \"source_short == 'REG'\"\n\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevtx_events.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \"source_short == 'EVT'\"\n\n# Export for Timeline Explorer (dynamic CSV)\npsort.py \\\n   -o dynamic \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ftimeline_explorer.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n```\n\n### Step 4: Analyze Timeline with Timesketch\n\n```bash\n# Install Timesketch (Docker deployment)\ngit clone https:\u002F\u002Fgithub.com\u002Fgoogle\u002Ftimesketch.git\ncd timesketch\ndocker compose up -d\n\n# Import Plaso file into Timesketch via CLI\ntimesketch_importer \\\n   --host http:\u002F\u002Flocalhost:5000 \\\n   --username analyst \\\n   --password password \\\n   --sketch_id 1 \\\n   --timeline_name \"Case 2024-001 Workstation\" \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n\n# Alternatively, import JSONL\ntimesketch_importer \\\n   --host http:\u002F\u002Flocalhost:5000 \\\n   --username analyst \\\n   --sketch_id 1 \\\n   --timeline_name \"Case 2024-001\" \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ftimeline.jsonl\n\n# In Timesketch web UI:\n# 1. Search for events: \"data_type:windows:evtx:record AND event_identifier:4624\"\n# 2. Apply Sigma analyzers for automated detection\n# 3. Star\u002Ftag important events\n# 4. Create stories documenting the investigation narrative\n# 5. Share with team members\n```\n\n### Step 5: Perform Targeted Timeline Analysis\n\n```bash\n# Analyze specific time periods around known events\npython3 \u003C\u003C 'PYEOF'\nimport csv\nfrom collections import defaultdict\nfrom datetime import datetime\n\n# Load incident window timeline\nevents_by_hour = defaultdict(list)\nsource_counts = defaultdict(int)\n\nwith open('\u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fincident_window.csv', 'r', errors='ignore') as f:\n    reader = csv.DictReader(f)\n    total = 0\n    for row in reader:\n        total += 1\n        timestamp = row.get('datetime', row.get('date', ''))\n        source = row.get('source_short', row.get('source', 'Unknown'))\n        description = row.get('message', row.get('desc', ''))\n\n        source_counts[source] += 1\n\n        # Group by hour for activity patterns\n        try:\n            dt = datetime.strptime(timestamp[:19], '%Y-%m-%dT%H:%M:%S')\n            hour_key = dt.strftime('%Y-%m-%d %H:00')\n            events_by_hour[hour_key].append({\n                'time': timestamp,\n                'source': source,\n                'description': description[:200]\n            })\n        except (ValueError, TypeError):\n            pass\n\nprint(f\"Total events in incident window: {total}\\n\")\n\nprint(\"=== EVENTS BY SOURCE TYPE ===\")\nfor source, count in sorted(source_counts.items(), key=lambda x: x[1], reverse=True):\n    print(f\"  {source}: {count}\")\n\nprint(\"\\n=== ACTIVITY BY HOUR ===\")\nfor hour in sorted(events_by_hour.keys()):\n    count = len(events_by_hour[hour])\n    bar = '#' * min(count \u002F\u002F 10, 50)\n    print(f\"  {hour}: {count:>6} events {bar}\")\n\n# Find hours with unusual activity spikes\navg = total \u002F max(len(events_by_hour), 1)\nprint(f\"\\n=== ANOMALOUS HOURS (>{avg*3:.0f} events) ===\")\nfor hour in sorted(events_by_hour.keys()):\n    if len(events_by_hour[hour]) > avg * 3:\n        print(f\"  {hour}: {len(events_by_hour[hour])} events (SPIKE)\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Super-timeline | Unified chronological view combining all artifact timestamps from multiple sources |\n| MACB timestamps | Modified, Accessed, Changed (metadata), Born (created) - four key file timestamp types |\n| Plaso storage file | SQLite-based intermediate format storing parsed events before export |\n| L2T CSV | Log2timeline CSV format with standardized columns for timeline events |\n| Parser | Plaso module extracting timestamps from a specific artifact type (e.g., winevtx, prefetch) |\n| Psort | Plaso sorting and filtering tool for post-processing storage files |\n| Timesketch | Google open-source collaborative timeline analysis platform |\n| Pivot points | Known timestamps (e.g., malware execution) used to focus investigation scope |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| log2timeline (Plaso) | Primary timeline generation engine parsing 100+ artifact types |\n| psort | Plaso output filtering, sorting, and export utility |\n| Timesketch | Web-based collaborative forensic timeline analysis platform |\n| Timeline Explorer | Eric Zimmerman's Windows GUI for CSV timeline analysis |\n| KAPE | Automated triage collection feeding into Plaso processing |\n| mactime (TSK) | Simpler timeline generation from Sleuth Kit bodyfiles |\n| Excel\u002FSheets | Manual timeline review for small filtered datasets |\n| Elastic\u002FKibana | Alternative visualization platform for JSONL timeline data |\n\n## Common Scenarios\n\n**Scenario 1: Ransomware Attack Reconstruction**\nProcess the full disk image with Plaso, filter to the week before encryption was discovered, identify the initial access vector from browser history and event logs, trace privilege escalation through registry and Prefetch, map lateral movement from network logon events, pinpoint encryption start from MFT timestamps showing mass file modifications.\n\n**Scenario 2: Data Theft Investigation**\nCreate super-timeline from suspect's workstation, filter for USB device connection events, file access timestamps, and cloud storage browser activity, build a narrative showing data staging, compression, and exfiltration, present timeline to legal team with tagged evidence points.\n\n**Scenario 3: Multi-System Breach Analysis**\nProcess disk images from all affected systems into a single Plaso storage file, import into Timesketch for collaborative analysis, search for lateral movement patterns across system timelines, identify the patient-zero system and initial compromise vector, map the full attack chain across the environment.\n\n**Scenario 4: Insider Threat After-Hours Activity**\nFilter timeline to non-business hours only, identify file access patterns outside normal working times, correlate with authentication events (badge access, VPN logon), search for data access to sensitive directories during these periods, build evidence package for HR\u002Flegal.\n\n## Output Format\n\n```\nTimeline Reconstruction Summary:\n  Evidence Sources:\n    Disk Image: evidence.dd (500 GB, NTFS)\n    Plaso Storage: evidence.plaso (2.3 GB)\n\n  Processing Statistics:\n    Total events extracted: 4,567,890\n    Parsers used: 45 (winevtx, prefetch, mft, usnjrnl, lnk, chrome, firefox, winreg, ...)\n    Processing time: 3h 45m\n\n  Incident Window (2024-01-15 to 2024-01-20):\n    Events in window: 234,567\n    Event Sources:\n      MFT:          89,234\n      Event Logs:   45,678\n      USN Journal:  56,789\n      Registry:     23,456\n      Prefetch:     1,234\n      Browser:      5,678\n      LNK Files:    2,345\n      Other:        10,153\n\n  Key Timeline Events:\n    2024-01-15 14:32 - Phishing email opened (browser)\n    2024-01-15 14:33 - Malicious document downloaded\n    2024-01-15 14:35 - PowerShell executed (Prefetch + Event Log)\n    2024-01-15 14:36 - C2 connection established (Registry + Event Log)\n    2024-01-16 02:30 - Mimikatz execution (Prefetch)\n    2024-01-16 02:45 - Lateral movement to DC (Event Log)\n    2024-01-17 03:00 - Data exfiltration (MFT + USN Journal)\n    2024-01-18 03:00 - Log clearing (Event Log)\n\n  Exported Files:\n    Full Timeline:     \u002Ftimeline\u002Ffull_timeline.csv (4.5M rows)\n    Incident Window:   \u002Ftimeline\u002Fincident_window.csv (234K rows)\n    Timesketch Import: \u002Ftimeline\u002Ftimeline.jsonl\n```\n","# Performing Timeline Reconstruction with Plaso\n\n## When to Use\n- When building a comprehensive forensic timeline from multiple evidence sources\n- For correlating events across file system metadata, event logs, browser history, and registry\n- During complex investigations requiring chronological reconstruction of activities\n- When standard log analysis is insufficient to establish the sequence of events\n- For presenting investigation findings in a visual, chronological format\n\n## Prerequisites\n- Plaso (log2timeline\u002Fpsort) installed on forensic workstation\n- Forensic disk image(s) in raw (dd), E01, or VMDK format\n- Sufficient storage for Plaso output (can be 10x+ the image size)\n- Minimum 8GB RAM (16GB+ recommended for large images)\n- Timeline Explorer (Eric Zimmerman) or Timesketch for visualization\n- Understanding of timestamp types (MACB: Modified, Accessed, Changed, Born)\n\n## Workflow\n\n### Step 1: Install Plaso and Prepare the Environment\n\n```bash\n# Install Plaso on Ubuntu\u002FDebian\nsudo add-apt-repository ppa:gift\u002Fstable\nsudo apt-get update\nsudo apt-get install plaso-tools\n\n# Or install via pip\npip install plaso\n\n# Or use Docker (recommended for dependency isolation)\ndocker pull log2timeline\u002Fplaso\n\n# Verify installation\nlog2timeline.py --version\npsort.py --version\n\n# Create output directory\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002F\n\n# Verify the forensic image\nimg_stat \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n```\n\n### Step 2: Generate the Plaso Storage File with log2timeline\n\n```bash\n# Basic processing of a disk image (all parsers)\nlog2timeline.py \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Process with specific parsers for faster targeted analysis\nlog2timeline.py \\\n   --parsers \"winevtx,prefetch,mft,usnjrnl,lnk,recycle_bin,chrome_history,firefox_history,winreg\" \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Process with a filter file to focus on specific paths\ncat \u003C\u003C 'EOF' > \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ffilter.txt\n\u002FWindows\u002FSystem32\u002Fwinevt\u002FLogs\n\u002FWindows\u002FPrefetch\n\u002FUsers\u002F*\u002FNTUSER.DAT\n\u002FUsers\u002F*\u002FAppData\u002FLocal\u002FGoogle\u002FChrome\n\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMozilla\u002FFirefox\n\u002F$MFT\n\u002F$UsnJrnl:$J\n\u002FWindows\u002FSystem32\u002Fconfig\nEOF\n\nlog2timeline.py \\\n   --filter-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ffilter.txt \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Using Docker\ndocker run --rm -v \u002Fcases:\u002Fcases log2timeline\u002Fplaso log2timeline \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd\n\n# Process multiple evidence sources into one timeline\nlog2timeline.py \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fcombined.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fworkstation.dd\n\nlog2timeline.py \\\n   --storage-file \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fcombined.plaso \\\n   \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fserver.dd\n```\n\n### Step 3: Filter and Export Timeline with psort\n\n```bash\n# Export full timeline to CSV (super-timeline format)\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ffull_timeline.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n\n# Export with date range filter (focus on incident window)\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fincident_window.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \"date > '2024-01-15 00:00:00' AND date \u003C '2024-01-20 23:59:59'\"\n\n# Export in JSON Lines format (for ingestion into SIEM\u002FTimesketch)\npsort.py \\\n   -o json_line \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ftimeline.jsonl \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n\n# Export with specific source type filters\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fregistry_events.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \"source_short == 'REG'\"\n\npsort.py \\\n   -o l2tcsv \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevtx_events.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso \\\n   \"source_short == 'EVT'\"\n\n# Export for Timeline Explorer (dynamic CSV)\npsort.py \\\n   -o dynamic \\\n   -w \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ftimeline_explorer.csv \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n```\n\n### Step 4: Analyze Timeline with Timesketch\n\n```bash\n# Install Timesketch (Docker deployment)\ngit clone https:\u002F\u002Fgithub.com\u002Fgoogle\u002Ftimesketch.git\ncd timesketch\ndocker compose up -d\n\n# Import Plaso file into Timesketch via CLI\ntimesketch_importer \\\n   --host http:\u002F\u002Flocalhost:5000 \\\n   --username analyst \\\n   --password password \\\n   --sketch_id 1 \\\n   --timeline_name \"Case 2024-001 Workstation\" \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fevidence.plaso\n\n# Alternatively, import JSONL\ntimesketch_importer \\\n   --host http:\u002F\u002Flocalhost:5000 \\\n   --username analyst \\\n   --sketch_id 1 \\\n   --timeline_name \"Case 2024-001\" \\\n   \u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Ftimeline.jsonl\n\n# In Timesketch web UI:\n# 1. Search for events: \"data_type:windows:evtx:record AND event_identifier:4624\"\n# 2. Apply Sigma analyzers for automated detection\n# 3. Star\u002Ftag important events\n# 4. Create stories documenting the investigation narrative\n# 5. Share with team members\n```\n\n### Step 5: Perform Targeted Timeline Analysis\n\n```bash\n# Analyze specific time periods around known events\npython3 \u003C\u003C 'PYEOF'\nimport csv\nfrom collections import defaultdict\nfrom datetime import datetime\n\n# Load incident window timeline\nevents_by_hour = defaultdict(list)\nsource_counts = defaultdict(int)\n\nwith open('\u002Fcases\u002Fcase-2024-001\u002Ftimeline\u002Fincident_window.csv', 'r', errors='ignore') as f:\n    reader = csv.DictReader(f)\n    total = 0\n    for row in reader:\n        total += 1\n        timestamp = row.get('datetime', row.get('date', ''))\n        source = row.get('source_short', row.get('source', 'Unknown'))\n        description = row.get('message', row.get('desc', ''))\n\n        source_counts[source] += 1\n\n        # Group by hour for activity patterns\n        try:\n            dt = datetime.strptime(timestamp[:19], '%Y-%m-%dT%H:%M:%S')\n            hour_key = dt.strftime('%Y-%m-%d %H:00')\n            events_by_hour[hour_key].append({\n                'time': timestamp,\n                'source': source,\n                'description': description[:200]\n            })\n        except (ValueError, TypeError):\n            pass\n\nprint(f\"Total events in incident window: {total}\\n\")\n\nprint(\"=== EVENTS BY SOURCE TYPE ===\")\nfor source, count in sorted(source_counts.items(), key=lambda x: x[1], reverse=True):\n    print(f\"  {source}: {count}\")\n\nprint(\"\\n=== ACTIVITY BY HOUR ===\")\nfor hour in sorted(events_by_hour.keys()):\n    count = len(events_by_hour[hour])\n    bar = '#' * min(count \u002F\u002F 10, 50)\n    print(f\"  {hour}: {count:>6} events {bar}\")\n\n# Find hours with unusual activity spikes\navg = total \u002F max(len(events_by_hour), 1)\nprint(f\"\\n=== ANOMALOUS HOURS (>{avg*3:.0f} events) ===\")\nfor hour in sorted(events_by_hour.keys()):\n    if len(events_by_hour[hour]) > avg * 3:\n        print(f\"  {hour}: {len(events_by_hour[hour])} events (SPIKE)\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Super-timeline | Unified chronological view combining all artifact timestamps from multiple sources |\n| MACB timestamps | Modified, Accessed, Changed (metadata), Born (created) - four key file timestamp types |\n| Plaso storage file | SQLite-based intermediate format storing parsed events before export |\n| L2T CSV | Log2timeline CSV format with standardized columns for timeline events |\n| Parser | Plaso module extracting timestamps from a specific artifact type (e.g., winevtx, prefetch) |\n| Psort | Plaso sorting and filtering tool for post-processing storage files |\n| Timesketch | Google open-source collaborative timeline analysis platform |\n| Pivot points | Known timestamps (e.g., malware execution) used to focus investigation scope |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| log2timeline (Plaso) | Primary timeline generation engine parsing 100+ artifact types |\n| psort | Plaso output filtering, sorting, and export utility |\n| Timesketch | Web-based collaborative forensic timeline analysis platform |\n| Timeline Explorer | Eric Zimmerman's Windows GUI for CSV timeline analysis |\n| KAPE | Automated triage collection feeding into Plaso processing |\n| mactime (TSK) | Simpler timeline generation from Sleuth Kit bodyfiles |\n| Excel\u002FSheets | Manual timeline review for small filtered datasets |\n| Elastic\u002FKibana | Alternative visualization platform for JSONL timeline data |\n\n## Common Scenarios\n\n**Scenario 1: Ransomware Attack Reconstruction**\nProcess the full disk image with Plaso, filter to the week before encryption was discovered, identify the initial access vector from browser history and event logs, trace privilege escalation through registry and Prefetch, map lateral movement from network logon events, pinpoint encryption start from MFT timestamps showing mass file modifications.\n\n**Scenario 2: Data Theft Investigation**\nCreate super-timeline from suspect's workstation, filter for USB device connection events, file access timestamps, and cloud storage browser activity, build a narrative showing data staging, compression, and exfiltration, present timeline to legal team with tagged evidence points.\n\n**Scenario 3: Multi-System Breach Analysis**\nProcess disk images from all affected systems into a single Plaso storage file, import into Timesketch for collaborative analysis, search for lateral movement patterns across system timelines, identify the patient-zero system and initial compromise vector, map the full attack chain across the environment.\n\n**Scenario 4: Insider Threat After-Hours Activity**\nFilter timeline to non-business hours only, identify file access patterns outside normal working times, correlate with authentication events (badge access, VPN logon), search for data access to sensitive directories during these periods, build evidence package for HR\u002Flegal.\n\n## Output Format\n\n```\nTimeline Reconstruction Summary:\n  Evidence Sources:\n    Disk Image: evidence.dd (500 GB, NTFS)\n    Plaso Storage: evidence.plaso (2.3 GB)\n\n  Processing Statistics:\n    Total events extracted: 4,567,890\n    Parsers used: 45 (winevtx, prefetch, mft, usnjrnl, lnk, chrome, firefox, winreg, ...)\n    Processing time: 3h 45m\n\n  Incident Window (2024-01-15 to 2024-01-20):\n    Events in window: 234,567\n    Event Sources:\n      MFT:          89,234\n      Event Logs:   45,678\n      USN Journal:  56,789\n      Registry:     23,456\n      Prefetch:     1,234\n      Browser:      5,678\n      LNK Files:    2,345\n      Other:        10,153\n\n  Key Timeline Events:\n    2024-01-15 14:32 - Phishing email opened (browser)\n    2024-01-15 14:33 - Malicious document downloaded\n    2024-01-15 14:35 - PowerShell executed (Prefetch + Event Log)\n    2024-01-15 14:36 - C2 connection established (Registry + Event Log)\n    2024-01-16 02:30 - Mimikatz execution (Prefetch)\n    2024-01-16 02:45 - Lateral movement to DC (Event Log)\n    2024-01-17 03:00 - Data exfiltration (MFT + USN Journal)\n    2024-01-18 03:00 - Log clearing (Event Log)\n\n  Exported Files:\n    Full Timeline:     \u002Ftimeline\u002Ffull_timeline.csv (4.5M rows)\n    Incident Window:   \u002Ftimeline\u002Fincident_window.csv (234K rows)\n    Timesketch Import: \u002Ftimeline\u002Ftimeline.jsonl\n```\n",{"name":5,"tags":44,"author":46,"domain":29,"license":15,"version":47,"category":5,"nist_csf":48,"subdomain":53,"description":7,"mitre_attack":54},[45,24,23,25,26,27],"forensics","mahipal","1.0",[49,50,51,52],"RS.AN-01","RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[55,56,57,58,59],"T1005","T1074","T1119","T1070","T1059","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fperforming-timeline-reconstruction-with-plaso",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill performing-timeline-reconstruction-with-plaso",{"tool":74,"command":75},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill performing-timeline-reconstruction-with-plaso",{"tool":77,"command":78},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill performing-timeline-reconstruction-with-plaso","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-timeline-reconstruction-with-plaso\u002FSKILL.md",true,[82,87,93],{"path":83,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-timeline-reconstruction-with-plaso\u002FLICENSE",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fapi-reference.md","REFERENCE","参考文档",2575,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-timeline-reconstruction-with-plaso\u002Freferences\u002Fapi-reference.md",{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fagent.py","SCRIPT","脚本",6872,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-timeline-reconstruction-with-plaso\u002Fscripts\u002Fagent.py",[100,126,151,173,189,209],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[],[107,108,109,110,111,112,29,113,114,115,116,117,118,119,120,121,122,123,124,125],"integrity","backup","recovery","validating backup integrity for recovery","for","testing","validate","verification","hash-verification","incident-response","ransomware","detection","t1078","t1490","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[133,134,135,136,21,29,137,138,139,140,141,142,143,144,145,146,147,148,149,150],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[158,159,123,29,160,161,162,119,120,30,163,164,165,166,167,168,169,170,171,172],"security","triaging security incident","actions","soc","NIST","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[158,180,181,159,123,21,29,182,161,116,183,184,119,120,185,163,146,186,187,188],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[158,196,197,198,199,200,29,201,202,203,161,204,119,205,206,207,166,208,123,35],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review","cm",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[216,217,218,219,29,220,221,222,223,224,225,205,226,227,208,228,35,229,230,231],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]