[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EQB2FATACKMMTXMW93YCY7":3,"skill-same:01M7EQB2FATACKMMTXMW93YCY7":73},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7EQB2FATACKMMTXMW93YCY7","performing-timeline-reconstruction-with-plaso",null,"Builds comprehensive forensic super-timelines using Plaso (log2timeline and psort) to correlate events across file system metadata, event logs, browser history, and registry artifacts into a unified chronological view. Use during complex forensic investigations that need cross-source event correlation, or when standard log analysis is insufficient to establish the sequence of activities for reporting findings.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fperforming-timeline-reconstruction-with-plaso\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-timeline-reconstruction-with-plaso\ndescription: >-\n  Builds comprehensive forensic super-timelines using Plaso (log2timeline and\n  psort) to correlate events across file system metadata, event logs, browser\n  history, and registry artifacts into a unified chronological view. Use\n  during complex forensic investigations that need cross-source event\n  correlation, or when standard log analysis is insufficient to establish the\n  sequence of activities for reporting findings.\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-03\n- DE.AE-02\n- RS.MA-01\nmitre_attack:\n- T1005\n- T1074\n- T1119\n- T1070\n- T1059\n---\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":24,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":38,"description":7,"mitre_attack":39},[25,26,27,28,29,30],"forensics","timeline-analysis","plaso","log2timeline","super-timeline","event-correlation","mahipal","cybersecurity","1.0",[35,36,37],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[40,41,42,43,44],"T1005","T1074","T1119","T1070","T1059","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fperforming-timeline-reconstruction-with-plaso",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill performing-timeline-reconstruction-with-plaso",{"tool":59,"command":60},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill performing-timeline-reconstruction-with-plaso",{"tool":62,"command":63},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill performing-timeline-reconstruction-with-plaso","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fperforming-timeline-reconstruction-with-plaso\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",2575,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fperforming-timeline-reconstruction-with-plaso\u002Freferences\u002Fapi-reference.md",[74,83,88,95,102,109],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":84,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":82},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":82},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":82},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":82},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":82},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]