Hayabusa and Chainsaw are free, fast, open-source tools that scan Windows event logs (.evtx files) with thousands of Sigma detection rules and produce a timeline of suspicious activity. They let an incident responder go from “we think this server was compromised” to a sorted list of logons, new services, cleared logs and PowerShell abuse in minutes, without a SIEM. This guide shows how to collect logs, run both tools, read the output, and which Windows audit settings you must enable beforehand so there is something to find.
During an incident, the evidence you need is usually already on the affected machines, in the Windows event logs. The problem is volume: a domain controller can write millions of events a day. Hayabusa (by Yamato Security) and Chainsaw (by WithSecure) solve that by applying community detection rules to raw .evtx files and showing only what matters. Both are free, run on a laptop, and need no agent or server.
Before an incident: turn on the logging
These tools can only find what Windows recorded. Default audit settings miss a lot. Make sure these are enabled through Group Policy (Advanced Audit Policy Configuration):
- Logon/Logoff: Logon, Logoff, Special Logon (Success and Failure)
- Account Logon: Kerberos Authentication Service, Kerberos Service Ticket Operations, Credential Validation
- Account Management: User, Security Group and Computer Account Management
- Detailed Tracking: Process Creation, with Include command line in process creation events enabled
- DS Access: Directory Service Changes (on domain controllers)
- Object Access: Other Object Access Events (scheduled tasks)
- PowerShell: Module Logging and Script Block Logging
Also increase the Security log size (1–4 GB on servers is reasonable) so logs are not overwritten within hours, and install Sysmon with a well-maintained configuration if you can. Both tools understand Sysmon events.
Collecting the logs
Copy the event log folder from the affected machine to your analysis workstation. Logs live in C:WindowsSystem32winevtLogs. On a live system, an administrator can export them with:
wevtutil epl Security C:IRSecurity.evtx
wevtutil epl System C:IRSystem.evtx
wevtutil epl "Microsoft-Windows-PowerShell/Operational" C:IRPowerShell-Operational.evtx
wevtutil epl "Microsoft-Windows-Sysmon/Operational" C:IRSysmon.evtx
Or collect the whole folder with a forensic triage tool such as KAPE or Velociraptor. Record hashes of what you collect and work on copies.
Hayabusa: build a timeline
Download the latest release for your OS from Yamato Security’s GitHub page. It ships as a single executable and pulls the latest rules with:
hayabusa update-rules
Create a CSV timeline of everything suspicious in a folder of logs:
hayabusa csv-timeline -d C:IRlogs -o C:IRtimeline.csv
Hayabusa asks which rule set to use (core rules are a good start, add more for deeper hunts) and then prints a summary: counts of alerts by severity (critical, high, medium, low, informational), the busiest hosts, and the first and last detection times.
Open the CSV in Eric Zimmerman’s Timeline Explorer or any spreadsheet. Each row has a timestamp, computer, rule title, severity, and the key event fields. Start with:
- Filter Level = crit / high and read every row.
- Sort by time and look for clusters: a burst of alerts within a few minutes usually marks the attacker’s hands-on activity.
- Pivot on the account name and source IP from the first suspicious event, then remove the severity filter to see everything that account did.
Hayabusa also has a useful logon-summary command (successful and failed logons per user and source) and can produce an HTML summary report with -H report.html.
Chainsaw: hunt and search
Chainsaw is similar in purpose and excellent for quick searches. Download the release package, which includes Sigma rules and mapping files. To hunt with Sigma rules plus Chainsaw’s built-in rules:
chainsaw hunt C:IRlogs -s sigma/ --mapping mappings/sigma-event-logs-all.yml -r rules/
Results are grouped by detection type in a readable table; add --csv --output results to save them.
Chainsaw’s search mode is great when you already know an indicator, such as an IP address, a username or a malicious file name:
chainsaw search "203.0.113.45" -i C:IRlogs
chainsaw search -t "Event.System.EventID: =4624" C:IRlogs
What typically turns up
| Finding | Key events | Why it matters |
|---|---|---|
| Security log cleared | 1102, 104 | Almost always an attacker covering tracks |
| New service installed | 7045, 4697 | Common for remote execution and persistence |
| Scheduled task created | 4698 | Persistence |
| Logon from unusual host or type 10 (RDP) | 4624, 4625 | Lateral movement, password spraying |
| Encoded or download-cradle PowerShell | 4104, 4688 | Malware execution |
| User added to admin groups | 4728, 4732, 4756 | Privilege escalation |
| Many Kerberos service ticket requests with RC4 | 4769 | Possible Kerberoasting |
| Defender disabled or exclusions added | 5001, 5007 | Defence evasion before ransomware |
Tips from real investigations
- Check the clock first. Both tools output UTC by default; convert to IST (UTC+5:30) consistently in your report.
- Absence is evidence. A gap in a log that normally fills continuously can mean the log was cleared or the service was stopped.
- Expect false positives. Admin tools, backup software and RMM agents trigger many rules. Note them once and filter them out.
- Run both tools. Their rule sets and output overlap but are not identical; each sometimes finds what the other misses.
- Practise on sample data. Public repositories of attack
.evtxsamples let your team learn what common techniques look like before a real incident.
For Indian organisations
CERT-In’s 2022 directions require organisations to keep ICT system logs for 180 days within India and provide them during an incident. Retained logs are only useful if the right audit categories were switched on. Hayabusa and Chainsaw give small IT teams a free way to make use of those logs in the first hours of an incident, while waiting for specialist help.
RingSafe’s incident response team can help you set up audit policies now and investigate quickly when something happens. Contact us.
Get a free attack-surface review
We check what an attacker would see about your business — leaked credentials, exposed services, dark-web mentions. 30 minutes, no obligation.