[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B6NFE1FDWM5A7HF0DZZYZ3":3,"skill-same:01M7B6NFE1FDWM5A7HF0DZZYZ3":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":13,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M7B6NFE1FDWM5A7HF0DZZYZ3","extracting-windows-event-logs-artifacts",null,"Extract, parse, and analyze Windows Event Logs (EVTX) using Chainsaw, Hayabusa, and EvtxECmd to detect lateral movement, persistence, and privilege escalation.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fextracting-windows-event-logs-artifacts\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fextracting-windows-event-logs-artifacts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: extracting-windows-event-logs-artifacts\ndescription: Extract, parse, and analyze Windows Event Logs (EVTX) using Chainsaw,\n  Hayabusa, and EvtxECmd to detect lateral movement, persistence, and privilege escalation.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- windows-event-logs\n- evtx\n- chainsaw\n- hayabusa\n- sigma-rules\n- incident-response\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- T1021\n---\n\n# Extracting Windows Event Logs Artifacts\n\n## When to Use\n- When investigating security incidents on Windows systems through event log analysis\n- For detecting lateral movement, privilege escalation, and persistence mechanisms\n- When performing threat hunting across Windows event log data\n- During compliance audits requiring review of authentication and access events\n- When building forensic timelines from Windows system activity\n\n## Prerequisites\n- Windows Event Log files (EVTX format) from forensic image or live system\n- Chainsaw, Hayabusa, or EvtxECmd for parsing and detection\n- Sigma rules for automated threat detection\n- Understanding of critical Windows Event IDs\n- Python with python-evtx or evtx library for custom parsing\n- PowerShell for live system analysis (if applicable)\n\n## Workflow\n\n### Step 1: Collect Windows Event Log Files\n\n```bash\n# Extract EVTX files from forensic image\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd \u002Fmnt\u002Fevidence\n\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fwinevt\u002FLogs\u002F*.evtx \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F\n\n# Key event logs to prioritize\n# Security.evtx - Authentication, authorization, audit events\n# System.evtx - System services, drivers, hardware events\n# Application.evtx - Application errors and events\n# Microsoft-Windows-Sysmon%4Operational.evtx - Detailed process\u002Fnetwork monitoring\n# Microsoft-Windows-PowerShell%4Operational.evtx - PowerShell activity\n# Microsoft-Windows-TerminalServices-LocalSessionManager%4Operational.evtx - RDP sessions\n# Microsoft-Windows-TaskScheduler%4Operational.evtx - Scheduled tasks\n# Microsoft-Windows-WinRM%4Operational.evtx - Windows Remote Management\n# Microsoft-Windows-Bits-Client%4Operational.evtx - BITS transfers\n# Microsoft-Windows-Windows Defender%4Operational.evtx - AV detections\n\n# List available log files and sizes\nls -lhS \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F | head -20\n\n# Hash for integrity\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F*.evtx > \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002Fevtx_hashes.txt\n```\n\n### Step 2: Run Chainsaw for Sigma-Based Detection\n\n```bash\n# Install Chainsaw\nwget https:\u002F\u002Fgithub.com\u002FWithSecureLabs\u002Fchainsaw\u002Freleases\u002Flatest\u002Fdownload\u002Fchainsaw_all_platforms+rules.zip\nunzip chainsaw_all_platforms+rules.zip -d \u002Fopt\u002Fchainsaw\n\n# Run Chainsaw with bundled Sigma rules\n\u002Fopt\u002Fchainsaw\u002Fchainsaw hunt \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \u002Fopt\u002Fchainsaw\u002Fsigma\u002Frules\u002F \\\n   --mapping \u002Fopt\u002Fchainsaw\u002Fmappings\u002Fsigma-event-logs-all.yml \\\n   --output \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fchainsaw_results.txt\n\n# Run with CSV output for easier analysis\n\u002Fopt\u002Fchainsaw\u002Fchainsaw hunt \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \u002Fopt\u002Fchainsaw\u002Fsigma\u002Frules\u002F \\\n   --mapping \u002Fopt\u002Fchainsaw\u002Fmappings\u002Fsigma-event-logs-all.yml \\\n   --csv \\\n   --output \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fchainsaw_results\u002F\n\n# Run with JSON output\n\u002Fopt\u002Fchainsaw\u002Fchainsaw hunt \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \u002Fopt\u002Fchainsaw\u002Fsigma\u002Frules\u002F \\\n   --mapping \u002Fopt\u002Fchainsaw\u002Fmappings\u002Fsigma-event-logs-all.yml \\\n   --json \\\n   --output \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fchainsaw_results.json\n\n# Search for specific keywords\n\u002Fopt\u002Fchainsaw\u002Fchainsaw search \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \"mimikatz\" --json\n\n# Search for specific event IDs\n\u002Fopt\u002Fchainsaw\u002Fchainsaw search \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -e 4688 --json | head -100\n```\n\n### Step 3: Run Hayabusa for Fast Timeline Generation\n\n```bash\n# Install Hayabusa\nwget https:\u002F\u002Fgithub.com\u002FYamato-Security\u002Fhayabusa\u002Freleases\u002Flatest\u002Fdownload\u002Fhayabusa-linux-x64-musl.zip\nunzip hayabusa-linux-x64-musl.zip -d \u002Fopt\u002Fhayabusa\n\n# Generate CSV timeline with all detection rules\n\u002Fopt\u002Fhayabusa\u002Fhayabusa csv-timeline \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_timeline.csv \\\n   -p verbose\n\n# Generate JSON timeline\n\u002Fopt\u002Fhayabusa\u002Fhayabusa json-timeline \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_timeline.json\n\n# Run with only critical and high severity detections\n\u002Fopt\u002Fhayabusa\u002Fhayabusa csv-timeline \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_critical.csv \\\n   -p verbose \\\n   --min-level critical\n\n# Generate detection summary (metrics)\n\u002Fopt\u002Fhayabusa\u002Fhayabusa metrics \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_metrics.csv\n\n# Logon summary\n\u002Fopt\u002Fhayabusa\u002Fhayabusa logon-summary \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flogon_summary.csv\n```\n\n### Step 4: Parse Specific Critical Event IDs\n\n```bash\n# Extract authentication events with python-evtx\npip install evtx\n\npython3 \u003C\u003C 'PYEOF'\nimport json\nfrom evtx import PyEvtxParser\n\nparser = PyEvtxParser(\"\u002Fcases\u002Fcase-2024-001\u002Fevtx\u002FSecurity.evtx\")\n\n# Critical Event IDs mapping\ncritical_events = {\n    '4624': 'Successful Logon',\n    '4625': 'Failed Logon',\n    '4634': 'Logoff',\n    '4648': 'Explicit Credential Logon',\n    '4672': 'Special Privileges Assigned',\n    '4688': 'Process Created',\n    '4689': 'Process Exited',\n    '4697': 'Service Installed',\n    '4698': 'Scheduled Task Created',\n    '4720': 'User Account Created',\n    '4724': 'Password Reset Attempted',\n    '4728': 'Member Added to Global Group',\n    '4732': 'Member Added to Local Group',\n    '4756': 'Member Added to Universal Group',\n    '1102': 'Audit Log Cleared',\n    '4688': 'New Process Created'\n}\n\nresults = {eid: [] for eid in critical_events}\n\nfor record in parser.records_json():\n    data = json.loads(record['data'])\n    event_id = str(data['Event']['System']['EventID'])\n\n    if event_id in critical_events:\n        event_data = data['Event'].get('EventData', {})\n        results[event_id].append({\n            'timestamp': data['Event']['System']['TimeCreated']['#attributes']['SystemTime'],\n            'event_id': event_id,\n            'description': critical_events[event_id],\n            'data': event_data\n        })\n\n# Print summary\nfor eid, events in results.items():\n    if events:\n        print(f\"\\n[{eid}] {critical_events[eid]}: {len(events)} events\")\n        for e in events[:3]:\n            print(f\"  {e['timestamp']}: {json.dumps(e['data'], default=str)[:200]}\")\n        if len(events) > 3:\n            print(f\"  ... and {len(events)-3} more\")\n\n# Save full results\nwith open('\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fcritical_events.json', 'w') as f:\n    json.dump(results, f, indent=2, default=str)\nPYEOF\n```\n\n### Step 5: Detect Specific Attack Patterns\n\n```bash\n# Detect Pass-the-Hash (Logon Type 9 with NTLM)\npython3 \u003C\u003C 'PYEOF'\nimport json\nfrom evtx import PyEvtxParser\n\nparser = PyEvtxParser(\"\u002Fcases\u002Fcase-2024-001\u002Fevtx\u002FSecurity.evtx\")\n\nprint(\"=== PASS-THE-HASH INDICATORS ===\")\nprint(\"Looking for: Event 4624, Logon Type 9, NTLM authentication\\n\")\n\nfor record in parser.records_json():\n    data = json.loads(record['data'])\n    event_id = str(data['Event']['System']['EventID'])\n\n    if event_id == '4624':\n        event_data = data['Event'].get('EventData', {})\n        logon_type = str(event_data.get('LogonType', ''))\n        auth_package = str(event_data.get('AuthenticationPackageName', ''))\n        logon_process = str(event_data.get('LogonProcessName', ''))\n\n        # Pass-the-Hash indicators\n        if logon_type == '9' and 'NTLM' in auth_package:\n            timestamp = data['Event']['System']['TimeCreated']['#attributes']['SystemTime']\n            target = event_data.get('TargetUserName', 'Unknown')\n            source_ip = event_data.get('IpAddress', 'N\u002FA')\n            print(f\"  [{timestamp}] PtH: User={target}, IP={source_ip}, Auth={auth_package}\")\n\n        # Network logon with NTLM (lateral movement)\n        if logon_type == '3' and 'NTLM' in auth_package:\n            timestamp = data['Event']['System']['TimeCreated']['#attributes']['SystemTime']\n            target = event_data.get('TargetUserName', 'Unknown')\n            source_ip = event_data.get('IpAddress', 'N\u002FA')\n            workstation = event_data.get('WorkstationName', 'N\u002FA')\n            print(f\"  [{timestamp}] Network NTLM: User={target}, IP={source_ip}, WS={workstation}\")\nPYEOF\n\n# Detect log clearing \u002F anti-forensics\npython3 \u003C\u003C 'PYEOF'\nimport json\nfrom evtx import PyEvtxParser\n\nfor log_file in ['Security.evtx', 'System.evtx']:\n    path = f\"\u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F{log_file}\"\n    try:\n        parser = PyEvtxParser(path)\n        for record in parser.records_json():\n            data = json.loads(record['data'])\n            event_id = str(data['Event']['System']['EventID'])\n            if event_id in ('1102', '104'):  # Security log cleared, System log cleared\n                timestamp = data['Event']['System']['TimeCreated']['#attributes']['SystemTime']\n                print(f\"LOG CLEARED: [{timestamp}] EventID {event_id} in {log_file}\")\n    except Exception as e:\n        print(f\"Error parsing {log_file}: {e}\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| EVTX format | Binary XML-based Windows Event Log format introduced in Vista\u002FServer 2008 |\n| Event ID | Numeric identifier for specific event types (e.g., 4624 = successful logon) |\n| Logon types | Classification of authentication methods (2=interactive, 3=network, 10=RDP) |\n| Sigma rules | Generic detection signatures that map to specific SIEM\u002Flog queries |\n| Sysmon | Microsoft system monitoring driver providing detailed process and network events |\n| Audit policy | GPO settings controlling which events Windows records |\n| Event forwarding (WEF) | Windows mechanism for centralized event log collection |\n| EVTX channels | Separate log files for different event categories and applications |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Chainsaw | Sigma-based EVTX analysis and threat hunting tool |\n| Hayabusa | Fast Windows Event Log forensic timeline generator |\n| EvtxECmd | Eric Zimmerman command-line EVTX parser with CSV\u002FJSON output |\n| python-evtx | Python library for EVTX file parsing |\n| LogParser | Microsoft SQL-like query engine for Windows logs |\n| Event Log Explorer | GUI tool for browsing and analyzing EVTX files |\n| KAPE | Automated triage collection including event logs |\n| Velociraptor | Endpoint agent with EVTX collection and hunting artifacts |\n\n## Common Scenarios\n\n**Scenario 1: Detecting Lateral Movement**\nFilter for Event 4624 with Logon Type 3 (network) and Type 10 (RDP), identify unusual source-destination pairs, check for Event 4648 (explicit credentials) indicating pass-the-hash, correlate with process creation events (4688) on target systems.\n\n**Scenario 2: Privilege Escalation Detection**\nSearch for Event 4672 (special privileges assigned) for unexpected users, check for Event 4728\u002F4732 (group membership changes) adding users to admin groups, look for Event 4697 (service installed) indicating new system-level access, correlate with 4720 (account creation).\n\n**Scenario 3: PowerShell Attack Detection**\nAnalyze PowerShell Operational log for Script Block Logging (Event 4104), search for encoded commands in Event 4688 (process creation with command line), detect AMSI bypass attempts, identify download cradles and invocation of known attack tools.\n\n**Scenario 4: Ransomware Incident Reconstruction**\nBuild timeline starting from initial access (4624 from external IP), trace privilege escalation through group membership changes, identify service installations for persistence, find process creation events for encryption executable, detect volume shadow copy deletion in System log.\n\n## Output Format\n\n```\nWindows Event Log Analysis Summary:\n  System: DC01.corp.local (Windows Server 2019)\n  Log Files Analyzed: 15 EVTX files\n  Total Events: 2,456,789\n  Analysis Period: 2024-01-10 to 2024-01-20\n\n  Chainsaw Detections:\n    Critical:  12 (Mimikatz usage, PsExec, log clearing)\n    High:      34 (Network NTLM logons, encoded PowerShell)\n    Medium:    89 (Unusual service installations, scheduled tasks)\n    Low:       234 (Informational)\n\n  Hayabusa Timeline:\n    Total Alerts: 369\n    Unique Rules Triggered: 45\n    Top Rules:\n      - Suspicious NTLM Authentication (34 hits)\n      - PowerShell Download Cradle (12 hits)\n      - Service Installation Suspicious Path (8 hits)\n\n  Critical Findings:\n    2024-01-15 14:32 - RDP brute force (234 failed, 1 success from 203.0.113.45)\n    2024-01-15 14:45 - Admin account created (svcbackup) - Event 4720\n    2024-01-16 02:30 - PsExec service installed on DC01 - Event 4697\n    2024-01-18 03:00 - Security log cleared - Event 1102\n\n  Reports:\n    Chainsaw: \u002Fanalysis\u002Fchainsaw_results\u002F\n    Hayabusa: \u002Fanalysis\u002Fhayabusa_timeline.csv\n    Critical Events: \u002Fanalysis\u002Fcritical_events.json\n```\n","# Extracting Windows Event Logs Artifacts\n\n## When to Use\n- When investigating security incidents on Windows systems through event log analysis\n- For detecting lateral movement, privilege escalation, and persistence mechanisms\n- When performing threat hunting across Windows event log data\n- During compliance audits requiring review of authentication and access events\n- When building forensic timelines from Windows system activity\n\n## Prerequisites\n- Windows Event Log files (EVTX format) from forensic image or live system\n- Chainsaw, Hayabusa, or EvtxECmd for parsing and detection\n- Sigma rules for automated threat detection\n- Understanding of critical Windows Event IDs\n- Python with python-evtx or evtx library for custom parsing\n- PowerShell for live system analysis (if applicable)\n\n## Workflow\n\n### Step 1: Collect Windows Event Log Files\n\n```bash\n# Extract EVTX files from forensic image\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd \u002Fmnt\u002Fevidence\n\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fwinevt\u002FLogs\u002F*.evtx \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F\n\n# Key event logs to prioritize\n# Security.evtx - Authentication, authorization, audit events\n# System.evtx - System services, drivers, hardware events\n# Application.evtx - Application errors and events\n# Microsoft-Windows-Sysmon%4Operational.evtx - Detailed process\u002Fnetwork monitoring\n# Microsoft-Windows-PowerShell%4Operational.evtx - PowerShell activity\n# Microsoft-Windows-TerminalServices-LocalSessionManager%4Operational.evtx - RDP sessions\n# Microsoft-Windows-TaskScheduler%4Operational.evtx - Scheduled tasks\n# Microsoft-Windows-WinRM%4Operational.evtx - Windows Remote Management\n# Microsoft-Windows-Bits-Client%4Operational.evtx - BITS transfers\n# Microsoft-Windows-Windows Defender%4Operational.evtx - AV detections\n\n# List available log files and sizes\nls -lhS \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F | head -20\n\n# Hash for integrity\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F*.evtx > \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002Fevtx_hashes.txt\n```\n\n### Step 2: Run Chainsaw for Sigma-Based Detection\n\n```bash\n# Install Chainsaw\nwget https:\u002F\u002Fgithub.com\u002FWithSecureLabs\u002Fchainsaw\u002Freleases\u002Flatest\u002Fdownload\u002Fchainsaw_all_platforms+rules.zip\nunzip chainsaw_all_platforms+rules.zip -d \u002Fopt\u002Fchainsaw\n\n# Run Chainsaw with bundled Sigma rules\n\u002Fopt\u002Fchainsaw\u002Fchainsaw hunt \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \u002Fopt\u002Fchainsaw\u002Fsigma\u002Frules\u002F \\\n   --mapping \u002Fopt\u002Fchainsaw\u002Fmappings\u002Fsigma-event-logs-all.yml \\\n   --output \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fchainsaw_results.txt\n\n# Run with CSV output for easier analysis\n\u002Fopt\u002Fchainsaw\u002Fchainsaw hunt \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \u002Fopt\u002Fchainsaw\u002Fsigma\u002Frules\u002F \\\n   --mapping \u002Fopt\u002Fchainsaw\u002Fmappings\u002Fsigma-event-logs-all.yml \\\n   --csv \\\n   --output \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fchainsaw_results\u002F\n\n# Run with JSON output\n\u002Fopt\u002Fchainsaw\u002Fchainsaw hunt \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \u002Fopt\u002Fchainsaw\u002Fsigma\u002Frules\u002F \\\n   --mapping \u002Fopt\u002Fchainsaw\u002Fmappings\u002Fsigma-event-logs-all.yml \\\n   --json \\\n   --output \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fchainsaw_results.json\n\n# Search for specific keywords\n\u002Fopt\u002Fchainsaw\u002Fchainsaw search \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -s \"mimikatz\" --json\n\n# Search for specific event IDs\n\u002Fopt\u002Fchainsaw\u002Fchainsaw search \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -e 4688 --json | head -100\n```\n\n### Step 3: Run Hayabusa for Fast Timeline Generation\n\n```bash\n# Install Hayabusa\nwget https:\u002F\u002Fgithub.com\u002FYamato-Security\u002Fhayabusa\u002Freleases\u002Flatest\u002Fdownload\u002Fhayabusa-linux-x64-musl.zip\nunzip hayabusa-linux-x64-musl.zip -d \u002Fopt\u002Fhayabusa\n\n# Generate CSV timeline with all detection rules\n\u002Fopt\u002Fhayabusa\u002Fhayabusa csv-timeline \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_timeline.csv \\\n   -p verbose\n\n# Generate JSON timeline\n\u002Fopt\u002Fhayabusa\u002Fhayabusa json-timeline \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_timeline.json\n\n# Run with only critical and high severity detections\n\u002Fopt\u002Fhayabusa\u002Fhayabusa csv-timeline \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_critical.csv \\\n   -p verbose \\\n   --min-level critical\n\n# Generate detection summary (metrics)\n\u002Fopt\u002Fhayabusa\u002Fhayabusa metrics \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhayabusa_metrics.csv\n\n# Logon summary\n\u002Fopt\u002Fhayabusa\u002Fhayabusa logon-summary \\\n   -d \u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flogon_summary.csv\n```\n\n### Step 4: Parse Specific Critical Event IDs\n\n```bash\n# Extract authentication events with python-evtx\npip install evtx\n\npython3 \u003C\u003C 'PYEOF'\nimport json\nfrom evtx import PyEvtxParser\n\nparser = PyEvtxParser(\"\u002Fcases\u002Fcase-2024-001\u002Fevtx\u002FSecurity.evtx\")\n\n# Critical Event IDs mapping\ncritical_events = {\n    '4624': 'Successful Logon',\n    '4625': 'Failed Logon',\n    '4634': 'Logoff',\n    '4648': 'Explicit Credential Logon',\n    '4672': 'Special Privileges Assigned',\n    '4688': 'Process Created',\n    '4689': 'Process Exited',\n    '4697': 'Service Installed',\n    '4698': 'Scheduled Task Created',\n    '4720': 'User Account Created',\n    '4724': 'Password Reset Attempted',\n    '4728': 'Member Added to Global Group',\n    '4732': 'Member Added to Local Group',\n    '4756': 'Member Added to Universal Group',\n    '1102': 'Audit Log Cleared',\n    '4688': 'New Process Created'\n}\n\nresults = {eid: [] for eid in critical_events}\n\nfor record in parser.records_json():\n    data = json.loads(record['data'])\n    event_id = str(data['Event']['System']['EventID'])\n\n    if event_id in critical_events:\n        event_data = data['Event'].get('EventData', {})\n        results[event_id].append({\n            'timestamp': data['Event']['System']['TimeCreated']['#attributes']['SystemTime'],\n            'event_id': event_id,\n            'description': critical_events[event_id],\n            'data': event_data\n        })\n\n# Print summary\nfor eid, events in results.items():\n    if events:\n        print(f\"\\n[{eid}] {critical_events[eid]}: {len(events)} events\")\n        for e in events[:3]:\n            print(f\"  {e['timestamp']}: {json.dumps(e['data'], default=str)[:200]}\")\n        if len(events) > 3:\n            print(f\"  ... and {len(events)-3} more\")\n\n# Save full results\nwith open('\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fcritical_events.json', 'w') as f:\n    json.dump(results, f, indent=2, default=str)\nPYEOF\n```\n\n### Step 5: Detect Specific Attack Patterns\n\n```bash\n# Detect Pass-the-Hash (Logon Type 9 with NTLM)\npython3 \u003C\u003C 'PYEOF'\nimport json\nfrom evtx import PyEvtxParser\n\nparser = PyEvtxParser(\"\u002Fcases\u002Fcase-2024-001\u002Fevtx\u002FSecurity.evtx\")\n\nprint(\"=== PASS-THE-HASH INDICATORS ===\")\nprint(\"Looking for: Event 4624, Logon Type 9, NTLM authentication\\n\")\n\nfor record in parser.records_json():\n    data = json.loads(record['data'])\n    event_id = str(data['Event']['System']['EventID'])\n\n    if event_id == '4624':\n        event_data = data['Event'].get('EventData', {})\n        logon_type = str(event_data.get('LogonType', ''))\n        auth_package = str(event_data.get('AuthenticationPackageName', ''))\n        logon_process = str(event_data.get('LogonProcessName', ''))\n\n        # Pass-the-Hash indicators\n        if logon_type == '9' and 'NTLM' in auth_package:\n            timestamp = data['Event']['System']['TimeCreated']['#attributes']['SystemTime']\n            target = event_data.get('TargetUserName', 'Unknown')\n            source_ip = event_data.get('IpAddress', 'N\u002FA')\n            print(f\"  [{timestamp}] PtH: User={target}, IP={source_ip}, Auth={auth_package}\")\n\n        # Network logon with NTLM (lateral movement)\n        if logon_type == '3' and 'NTLM' in auth_package:\n            timestamp = data['Event']['System']['TimeCreated']['#attributes']['SystemTime']\n            target = event_data.get('TargetUserName', 'Unknown')\n            source_ip = event_data.get('IpAddress', 'N\u002FA')\n            workstation = event_data.get('WorkstationName', 'N\u002FA')\n            print(f\"  [{timestamp}] Network NTLM: User={target}, IP={source_ip}, WS={workstation}\")\nPYEOF\n\n# Detect log clearing \u002F anti-forensics\npython3 \u003C\u003C 'PYEOF'\nimport json\nfrom evtx import PyEvtxParser\n\nfor log_file in ['Security.evtx', 'System.evtx']:\n    path = f\"\u002Fcases\u002Fcase-2024-001\u002Fevtx\u002F{log_file}\"\n    try:\n        parser = PyEvtxParser(path)\n        for record in parser.records_json():\n            data = json.loads(record['data'])\n            event_id = str(data['Event']['System']['EventID'])\n            if event_id in ('1102', '104'):  # Security log cleared, System log cleared\n                timestamp = data['Event']['System']['TimeCreated']['#attributes']['SystemTime']\n                print(f\"LOG CLEARED: [{timestamp}] EventID {event_id} in {log_file}\")\n    except Exception as e:\n        print(f\"Error parsing {log_file}: {e}\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| EVTX format | Binary XML-based Windows Event Log format introduced in Vista\u002FServer 2008 |\n| Event ID | Numeric identifier for specific event types (e.g., 4624 = successful logon) |\n| Logon types | Classification of authentication methods (2=interactive, 3=network, 10=RDP) |\n| Sigma rules | Generic detection signatures that map to specific SIEM\u002Flog queries |\n| Sysmon | Microsoft system monitoring driver providing detailed process and network events |\n| Audit policy | GPO settings controlling which events Windows records |\n| Event forwarding (WEF) | Windows mechanism for centralized event log collection |\n| EVTX channels | Separate log files for different event categories and applications |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Chainsaw | Sigma-based EVTX analysis and threat hunting tool |\n| Hayabusa | Fast Windows Event Log forensic timeline generator |\n| EvtxECmd | Eric Zimmerman command-line EVTX parser with CSV\u002FJSON output |\n| python-evtx | Python library for EVTX file parsing |\n| LogParser | Microsoft SQL-like query engine for Windows logs |\n| Event Log Explorer | GUI tool for browsing and analyzing EVTX files |\n| KAPE | Automated triage collection including event logs |\n| Velociraptor | Endpoint agent with EVTX collection and hunting artifacts |\n\n## Common Scenarios\n\n**Scenario 1: Detecting Lateral Movement**\nFilter for Event 4624 with Logon Type 3 (network) and Type 10 (RDP), identify unusual source-destination pairs, check for Event 4648 (explicit credentials) indicating pass-the-hash, correlate with process creation events (4688) on target systems.\n\n**Scenario 2: Privilege Escalation Detection**\nSearch for Event 4672 (special privileges assigned) for unexpected users, check for Event 4728\u002F4732 (group membership changes) adding users to admin groups, look for Event 4697 (service installed) indicating new system-level access, correlate with 4720 (account creation).\n\n**Scenario 3: PowerShell Attack Detection**\nAnalyze PowerShell Operational log for Script Block Logging (Event 4104), search for encoded commands in Event 4688 (process creation with command line), detect AMSI bypass attempts, identify download cradles and invocation of known attack tools.\n\n**Scenario 4: Ransomware Incident Reconstruction**\nBuild timeline starting from initial access (4624 from external IP), trace privilege escalation through group membership changes, identify service installations for persistence, find process creation events for encryption executable, detect volume shadow copy deletion in System log.\n\n## Output Format\n\n```\nWindows Event Log Analysis Summary:\n  System: DC01.corp.local (Windows Server 2019)\n  Log Files Analyzed: 15 EVTX files\n  Total Events: 2,456,789\n  Analysis Period: 2024-01-10 to 2024-01-20\n\n  Chainsaw Detections:\n    Critical:  12 (Mimikatz usage, PsExec, log clearing)\n    High:      34 (Network NTLM logons, encoded PowerShell)\n    Medium:    89 (Unusual service installations, scheduled tasks)\n    Low:       234 (Informational)\n\n  Hayabusa Timeline:\n    Total Alerts: 369\n    Unique Rules Triggered: 45\n    Top Rules:\n      - Suspicious NTLM Authentication (34 hits)\n      - PowerShell Download Cradle (12 hits)\n      - Service Installation Suspicious Path (8 hits)\n\n  Critical Findings:\n    2024-01-15 14:32 - RDP brute force (234 failed, 1 success from 203.0.113.45)\n    2024-01-15 14:45 - Admin account created (svcbackup) - Event 4720\n    2024-01-16 02:30 - PsExec service installed on DC01 - Event 4697\n    2024-01-18 03:00 - Security log cleared - Event 1102\n\n  Reports:\n    Chainsaw: \u002Fanalysis\u002Fchainsaw_results\u002F\n    Hayabusa: \u002Fanalysis\u002Fhayabusa_timeline.csv\n    Critical Events: \u002Fanalysis\u002Fcritical_events.json\n```\n",{"name":5,"tags":24,"author":32,"domain":33,"license":14,"version":34,"nist_csf":35,"subdomain":39,"description":7,"mitre_attack":40},[25,26,27,28,29,30,31],"forensics","windows-event-logs","evtx","chainsaw","hayabusa","sigma-rules","incident-response","mahipal","cybersecurity","1.0",[36,37,38],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[41,42,43,44,45],"T1005","T1074","T1119","T1070","T1021","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fextracting-windows-event-logs-artifacts","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill extracting-windows-event-logs-artifacts",{"tool":58,"command":59},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill extracting-windows-event-logs-artifacts",{"tool":61,"command":62},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill extracting-windows-event-logs-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fextracting-windows-event-logs-artifacts\u002FSKILL.md",true,[66,70,76],{"path":67,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fapi-reference.md","REFERENCE","参考文档",2817,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fextracting-windows-event-logs-artifacts\u002Freferences\u002Fapi-reference.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fagent.py","SCRIPT","脚本",11178,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fextracting-windows-event-logs-artifacts\u002Fscripts\u002Fagent.py",[83,91,98,105,112,119],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]