New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Generating Forensic Timelines

Free

Transform Windows event logs into actionable forensic timelines.

Get this skill

Free · Opens the source repo

What Generating Forensic Timelines does

The Generating Forensic Timelines skill utilizes Hayabusa to streamline the analysis of Windows event logs, specifically .evtx files. By applying Sigma detection rules, it generates a prioritized and chronological timeline of significant events, complete with severity levels and MITRE ATT&CK mappings. This tool is designed for digital forensics and incident response (DFIR) professionals who need to quickly distill large volumes of log data into actionable insights without the overhead of a Security Information and Event Management (SIEM) system.

Hayabusa operates by parsing collected event logs and applying a comprehensive library of detection rules to identify high-signal events. The output is a CSV or JSON timeline that can be readily analyzed or visualized using tools like Timesketch or Timeline Explorer. This functionality is particularly useful during incident-response triage, where time is critical, and analysts need to sift through potentially thousands of log entries to identify malicious activity or anomalies.

The skill also allows for the generation of metrics related to the events, such as counts per host or Event ID, which can aid in identifying patterns of suspicious behavior across multiple systems. By filtering timelines based on severity levels, users can focus their investigations on the most critical alerts. This capability enhances the efficiency of threat-hunting efforts, enabling analysts to quickly pinpoint areas of concern in their environment.

In summary, this skill is a valuable addition for any cybersecurity professional engaged in DFIR, providing a robust solution for transforming raw event logs into structured, analyzable timelines that facilitate rapid incident response and investigation.

When to use it

Use this skill during incident response to quickly generate timelines from collected `.evtx` files, especially when a SIEM is not available.

When not to use it

This skill may not be suitable for environments that require real-time log analysis or integration with existing SIEM solutions.

What you can build with it

Incident Response Triage

Quickly generate a prioritized timeline from collected `.evtx` files to identify critical security events during an incident.

Collaborative Analysis

Export the generated timeline to Timesketch or Timeline Explorer for team-based investigation and analysis.

Metrics Generation

Produce metrics on event occurrences per host or Event ID to identify patterns of suspicious activity across your environment.

How to install Generating Forensic Timelines

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/generating-forensic-timelines-with-hayabusa --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Generating Forensic Timelines with Hayabusa

Overview

Hayabusa (隼, Japanese for "peregrine falcon") is a Sigma-based threat-hunting and fast-forensics timeline generator for Windows event logs, developed by Yamato Security in Rust. It parses .evtx files (offline or via live analysis of a local host), applies a large built-in library of Sigma detection rules plus Hayabusa-specific rules, and produces a single, readable, chronological timeline of high-signal events with severity levels, MITRE ATT&CK tactics, and rule references. This collapses thousands of raw event-log records into a prioritized incident timeline that an analyst can review quickly.

Hayabusa is purpose-built for DFIR triage. Instead of loading EVTX into a SIEM, an investigator runs a single binary against a directory of collected logs and gets a CSV or JSON timeline plus metrics (events per computer, per Event ID, per channel). Because detections are Sigma-based, coverage tracks the open detection-engineering community, and rules can be updated on demand with update-rules. The tool's output integrates with downstream analysis: CSV opens in Timeline Explorer, JSONL feeds into jq, and timesketch-* profiles export directly into Timesketch.

A frequent finding in Hayabusa timelines is malicious PowerShell — MITRE ATT&CK T1059.001 (Command and Scripting Interpreter: PowerShell) — surfaced via Sigma rules over Event ID 4104 (script-block logging), 4103, and Sysmon process creation. This skill maps to NIST CSF RS.AN-03 (analysis is performed to establish what has taken place during an incident).

When to Use

  • During incident-response triage, to turn a pile of collected .evtx files into a prioritized timeline.
  • When you need fast, SIEM-free detection over Windows event logs with community Sigma coverage.
  • To enumerate suspicious activity (PowerShell, account changes, lateral movement) across many hosts' logs.
  • To produce metrics (events per computer/Event ID/channel) and pivot keywords for deeper hunting.
  • To export an incident timeline into Timesketch or Timeline Explorer for collaborative analysis.

Prerequisites

  • Hayabusa binary. Download a pre-compiled release (Windows/Linux/macOS) from GitHub:
    # Linux example
    curl -LO https://github.com/Yamato-Security/hayabusa/releases/latest/download/hayabusa-3.0.0-lin-x64-gnu.zip
    unzip hayabusa-*.zip && cd hayabusa-*
    ./hayabusa-3.0.0-lin-x64-gnu --version
    
    Or build from source (rules are a submodule):
    git clone https://github.com/Yamato-Security/hayabusa.git --recursive
    cd hayabusa && cargo build --release
    
  • Collected Windows .evtx files (or run with --live-analysis on the host, as Administrator).
  • Updated detection rules:
    ./hayabusa update-rules
    
  • Optional: Timeline Explorer (Windows) or Timesketch for visualizing output; jq for JSONL.

Objectives

  • Build a CSV or JSON forensic timeline from a directory of .evtx files.
  • Update and tune the Sigma rule set used for detection.
  • Select an output profile appropriate to the investigation (minimal vs. verbose vs. timesketch).
  • Generate metrics (computer, Event ID, log) and pivot keywords for hunting leads.
  • Filter the timeline by minimum severity to focus triage.
  • Search logs for specific IOCs by keyword or regex.

MITRE ATT&CK Mapping

Technique IDOfficial NameWhy Hayabusa Detects It
T1059.001Command and Scripting Interpreter: PowerShellSigma rules over Event IDs 4104/4103 and Sysmon flag malicious PowerShell
T1059.003Command and Scripting Interpreter: Windows Command ShellRules over process-creation events surface suspicious cmd usage
T1078Valid AccountsLogon events (4624/4625/4672) reveal anomalous authentication
T1547.001Boot or Logon Autostart Execution: Registry Run Keys / Startup FolderRules over registry-modification events flag persistence
T1053.005Scheduled Task/Job: Scheduled TaskEvent ID 4698/106 rules surface task creation
T1003OS Credential DumpingRules flag LSASS access and credential-dumping patterns

Workflow

1. Update the rule set

Pull the latest Sigma and Hayabusa rules before every investigation.

./hayabusa update-rules

2. Build a CSV timeline from collected logs

Point Hayabusa at a directory of .evtx files and write a CSV timeline. -w skips the interactive wizard for scripted runs.

./hayabusa csv-timeline -d ./collected_evtx -o timeline.csv -w
# UTC timestamps for cross-host correlation
./hayabusa csv-timeline -d ./collected_evtx -o timeline_utc.csv -U -w

3. Choose an output profile

Profiles control detail. Use verbose to include MITRE ATT&CK tactics, tags, and the source rule/EVTX file; all-field-info to retain every original field.

# Verbose: adds MITRE tactics, tags, rule file, evtx file
./hayabusa csv-timeline -d ./collected_evtx -o timeline_verbose.csv -p verbose -w
# Preserve all original event fields
./hayabusa csv-timeline -d ./collected_evtx -o timeline_full.csv -p all-field-info -w

Available profiles: minimal, standard (default), verbose, all-field-info, all-field-info-verbose, super-verbose, timesketch-minimal, timesketch-verbose.

4. Filter by minimum severity

Focus triage on the highest-confidence detections with -m/--min-level.

./hayabusa csv-timeline -d ./collected_evtx -o critical.csv -m high -w

Levels: informational, low, medium, high, critical.

5. Produce a JSON/JSONL timeline for tooling

JSONL feeds cleanly into jq and downstream pipelines.

./hayabusa json-timeline -d ./collected_evtx -L -o timeline.jsonl -w
# Example: top rule titles
jq -r '.RuleTitle' timeline.jsonl | sort | uniq -c | sort -rn | head

6. Generate metrics and pivot keywords

Summaries reveal which hosts and Event IDs dominate, and pivot keywords give hunting leads.

./hayabusa computer-metrics -d ./collected_evtx -o computers.csv
./hayabusa eid-metrics -d ./collected_evtx -o eid.csv
./hayabusa log-metrics -d ./collected_evtx -o logs.csv
./hayabusa pivot-keywords-list -d ./collected_evtx -m medium -o pivots

7. Search logs for specific IOCs

Use the search command for keyword or regex hunting independent of detection rules.

# Keyword search (case-insensitive) for a suspicious binary
./hayabusa search -d ./collected_evtx -k "powershell" -i
# Regex search for base64-looking PowerShell encoded commands
./hayabusa search -d ./collected_evtx -r "-[Ee]nc(odedCommand)?\s+[A-Za-z0-9+/=]{20,}"

8. Live triage on a running host

On the affected machine (Administrator), analyze local logs without exporting first.

./hayabusa csv-timeline -l -o live_timeline.csv -m high -w

Tools and Resources

ToolPurposeSource
HayabusaSigma-based EVTX timeline/threat huntinghttps://github.com/Yamato-Security/hayabusa
hayabusa-rulesSigma + Hayabusa detection ruleshttps://github.com/Yamato-Security/hayabusa-rules
TakajōHayabusa results analyzerhttps://github.com/Yamato-Security/takajo
Timeline ExplorerReview CSV timelineshttps://ericzimmerman.github.io/
TimesketchCollaborative timeline analysishttps://timesketch.org/
SigmaGeneric detection rule formathttps://github.com/SigmaHQ/sigma

Validation Criteria

  • Hayabusa binary installed and --version confirmed.
  • Rules updated with update-rules before analysis.
  • CSV timeline generated from the collected .evtx directory.
  • Appropriate output profile selected for the investigation goal.
  • Timeline filtered by minimum severity for triage focus.
  • JSON/JSONL timeline produced for downstream tooling where needed.
  • Computer/EID/log metrics generated.
  • Pivot keywords list produced for hunting leads.
  • Targeted IOC searches run with keyword/regex.
  • Findings (e.g., PowerShell T1059.001 detections) documented in the incident timeline.

Frequently asked questions about Generating Forensic Timelines

Similar skills