Chainsaw triages Windows event logs, the MFT and SRUM from one Rust binary with Sigma rules
Rapidly Search and Hunt through Windows Forensic Artefacts
At a glance
- What is it?
- WithSecureOpenSource/chainsaw is a GPL-3.0 command-line tool from WithSecure for first-response work on Windows forensic artefacts. It hunts through event logs with Sigma and its own rules, and also reads Shimcache, SRUM, the MFT and registry hives. It has nothing to do with chainsaws, games or anime.
- Who is it for?
- Use Chainsaw when you hold copied Windows artefacts from a host that had no EDR and you need a first pass without standing up ELK or Splunk. Do not use it as a continuous detection pipeline or as a replacement for full forensic suites, since it is built for triage on files you already collected.
- Can I use it commercially?
- Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
- Is it still maintained?
- Yes. The repository last received commits 10 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- WithSecureOpenSource/chainsaw3,737 ★ · +54
| Repository | 2026-10-09 | 2026-11-25 |
|---|---|---|
| WithSecureOpenSource/chainsaw | 3.7k | 3.7k |
54 Stars in the last 47 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Chainsaw was written for estates where the EDR agent was never installed
The README explains where the tool comes from. WithSecure Countercept ingests endpoint telemetry through its EDR agent for a managed detection and response service. Some investigations involve artefacts the EDR never captured, and the example given is an incident response job on an estate where the agent was not installed when the compromise happened. Chainsaw gave their threat hunters and incident response consultants a way to triage those artefacts quickly.
The project is not a search engine for chainsaws, a game item or a manga. Search results for the name are full of those, and none of it relates to this repository. What is here is a Rust program, licensed GPL-3.0, whose description reads Rapidly Search and Hunt through Windows Forensic Artefacts. The default branch is master, the repository is not archived, and the last push was 2026-10-14.
The stated starting point is event logs and the MFT file. The README calls the result a first-response capability: it points you at the suspicious part of the evidence, and the deeper work happens elsewhere.
The pitch is hunting without an ELK stack or Splunk instance
The README argues that processing Windows event logs is slow, and that in most cases you need surrounding infrastructure such as an ELK stack or a Splunk instance to hunt through the data and apply detection logic. That overhead, it says, often stops blue teams from triaging event logs quickly enough to steer an investigation.
It also claims there were few open-source standalone tools that could triage event logs, identify interesting elements and apply a rule format such as Sigma. Its authors write that the tools that did exist struggled with large volumes of logs. That is the vendor's own account of the market at the time, not a benchmark you can reproduce, and the retrieved text gives no timings.
The design follows from that claim. Chainsaw wraps the evtx parser library by Omer Benamram for log reading, which the README credits for speed, and it uses the TAU Engine library from WithSecureLabs for document tagging, meaning detection logic matching. In Cargo.toml these appear as the evtx crate at version 0.12 with default features off, and tau-engine at 1.0 with the core, json and sync features. Output can be an ASCII table, CSV or JSON.
Sigma matching needs both the --sigma and --mapping parameters
Hunting with Sigma takes two parameters. With `--sigma` you point at a directory holding a subset of Sigma detection rules, or the entire Sigma git repository, and Chainsaw loads, converts and runs them against the event logs you supply. With `--mapping` you supply the mapping file, which tells Chainsaw which fields in the event logs to use for rule matching. A rule whose fields are absent from the mapping has nothing to match against.
By default Chainsaw handles a defined set of event types. Sysmon process creation (event ID 1), network connections (3), image loads (7), file creation (11) and registry events (13) are covered, along with PowerShell script blocks (4104), process creation (4688), scheduled task creation (4698) and service creation (7045). The README says the support includes but is not limited to this table, and that the mapping file holds the full list of fields and can be extended.
The practical consequence is that Sigma coverage is only as good as the mapping. Rules aimed at log sources outside the shipped mapping will not fire until you extend it yourself, and a silent non-match looks identical to a clean log.
Chainsaw's own rule format ships with detections for AV alerts, log clearing and lateral movement
Besides Sigma, Chainsaw reads a custom rule format. The repository has a rules directory with Chainsaw rules in five areas. They extract and parse alerts from Windows Defender, F-Secure, Sophos and Kaspersky. They detect key event logs being cleared or the event log service being stopped. They flag users being created or added to sensitive groups. They surface remote logins of the service, RDP and network kinds, which the README says helps hunters find sources of lateral movement. And they catch brute-force attempts against local user accounts.
These rules matter for the same reason the Sigma mapping does: they are what turns a pile of event logs into a short list of findings. Five categories is a narrow starter set. Anything outside them, such as a technique specific to your estate, means writing a rule of your own in one of the two formats.
The feature list also covers plain searching. You can search and extract forensic artefacts by string matching and regex patterns, which works without any rule at all. That is the route when you know the account name, hostname or command line you are looking for and no detection logic applies.
Shimcache, Amcache, SRUM and raw dumps extend it past event logs
The analysis section covers three jobs. Shimcache analysis creates execution timelines and enriches them with Amcache data. SRUM analysis reads the System Resource Usage Monitor database and gives insight into it. Gaps is described in the table of contents as event log gap detection, which helps when an attacker removed entries and you want to see where the record stops.
Dumping is the lowest-level mode. It outputs the raw content of forensic artefacts: the MFT, registry hives and ESE databases. The Cargo.toml dependencies match those targets. The mft crate handles the master file table, notatin handles registry hives and libesedb handles ESE databases such as SRUM.
The tool works on files, so you must collect the artefacts first. Chainsaw can run on macOS, Linux and Windows, which means you can analyse a copied evidence set on an analyst laptop without touching the original machine. The README states these as capabilities and gives no numbers for speed or supported file sizes in the part retrieved.
Three forked git dependencies keep the build alive, and builds must use --release
Chainsaw v2 stopped including the Sigma rules and EVTX-Attack-Samples repositories as submodules. The README recommends cloning them separately for the latest versions. If you want an all-in-one package with the binary, Sigma rules and example event logs, the releases page has one, along with binary-only builds for various platforms and architectures.
To compile it yourself:
git clone https://github.com/WithSecureLabs/chainsaw.git
cargo build --releaseThe compiled binary lands in the target/release folder. The README stresses the --release flag because it gives significantly faster execution, so a plain debug build is the wrong choice for large log sets. The package uses Rust edition 2024. The README also has a section on installing or building with Nix, and the repository carries flake.nix and flake.lock.
The maintenance footnote is in Cargo.toml. Under the comment Handling abandoned upstreams, it patches crates.io for libesedb, mft and notatin to point at forks under github.com/alexkornitzer. If those forks move or vanish, the build breaks, and any fix to the original crates does not reach Chainsaw until the patch is removed.
Antivirus and EDR products may flag the binary, and releases follow the Rust crate version
The table of contents includes a section titled EDR and AV Warnings, which signals that security products can react to the binary or to the rules and samples that come with the release bundle. The retrieved README is cut off before that section, so check it before deploying on a monitored machine, and expect to ask for an exclusion if the host runs endpoint protection.
The release history shows steady maintenance. v2.17.1 was published on 2026-10-14, v2.16.5 on 2026-08-25 and v2.16.4 on 2026-08-19, and Cargo.toml carries version 2.17.1. Two authors are named, James Dorgan and Alex Kornitzer, and the license field reads GPL3. Because the tool is GPL-3.0, redistributing a modified build means releasing your changes under the same license.
The repository root also holds analysis/, mappings/, rules/, src/ and tests/ directories. Extended documentation lives in the project Wiki rather than the README. Anything beyond the examples in the README, including full command options, is therefore a Wiki lookup.
Editorial conclusion
Use Chainsaw when you hold copied Windows artefacts from a host that had no EDR and you need a first pass without standing up ELK or Splunk. Do not use it as a continuous detection pipeline or as a replacement for full forensic suites, since it is built for triage on files you already collected. Before trusting a hunt, confirm your Sigma rules and the mapping file cover the event IDs in your logs, and build with cargo build --release.
Frequently asked questions
How to use Chainsaw to search Windows event logs?
Build it with cargo build --release, then run it with a Sigma rules directory in --sigma and a mapping file in --mapping. Chainsaw loads and converts the rules and runs them against the event logs you give it.
What artefacts can Chainsaw read besides event logs?
It analyses Shimcache with Amcache enrichment and the SRUM database, and it can dump raw MFT files, registry hives and ESE databases. It also searches artefacts by string match and regex.
Does Chainsaw run on Linux and macOS as well as Windows?
Yes. The feature list says Chainsaw can run on macOS, Linux and Windows, and the releases page has pre-compiled binary-only builds for various platforms and architectures.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/withsecureopensource-chainsaw)Star history chart for your README
[](https://hysenlabs.com/projects/withsecureopensource-chainsaw)Was this useful?