
The problem
An attacker has compromised your network. They’ve moved laterally across Windows servers, Linux machines, and cloud infrastructure. Your evidence is scattered: EVTX files from 50 machines, Linux auth logs from a dozen servers, network data from your EDR. You need to reconstruct the attacker’s path — every hop, every credential used, every failed attempt — and you need it now.
Masstin parses all these sources and merges them into a single chronological timeline where a Windows RDP logon, a Linux SSH brute-force, and an EDR network connection appear side by side, in the same format, ready for analysis or graph visualization.
- Repository: github.com/jupyterj0nes/masstin
- License: AGPL-3.0
- Platforms: Windows, Linux and macOS — zero dependencies, single binary
Key Features
This table is reference material: it lists everything masstin does, with technical detail you do not need to get started. If this is your first time, skip to Install and come back when you are looking for something specific.
| Feature | Description | Article |
|---|---|---|
| Unified cross-OS image parsing | A single parse command auto-detects the OS of every partition — NTFS gets Windows parsing (EVTX + UAL + VSS), ext4 gets Linux parsing (auth.log, wtmp, audit.log, systemd-journald binary logs, etc.) — all merged into one timeline. Point at a folder of mixed images and get a single CSV. Zero manual steps. |
Forensic images |
| graph-hunt: statistical detection | Every connection after the cutoff is measured against the network’s own baseline: p-values, the false discovery rate as the only parameter, Hopper classes, chain reconstruction from a seed, an analyst report. Runs straight from the CSV, no database or plugin needed | graph-hunt |
| Multi-directory incident analysis | Analyze dozens of machines at once with multiple -d flags, critical for ransomware investigations |
Parse evidence |
| Cross-platform timeline | Windows EVTX + Linux SSH + EDR data in one timeline — parse merges across OS boundaries |
Windows / Linux / Cortex |
| 37 Event IDs from 12 EVTX channels + Scheduled Tasks XML | Security.evtx, Terminal Services, SMBServer, SMBClient, RdpCoreTS, WinRM, WMI-Activity, Sysmon (Event 3 network connections) + remote task detection — covering RDP, SMB, Kerberos, NTLM, share access, PowerShell Remoting, WMI and Scheduled Tasks | Security.evtx / RDP / SMB |
| Event classification | Every event classified as SUCCESSFUL_LOGON, FAILED_LOGON, LOGOFF or CONNECT |
CSV Format — event_type |
| Recursive decompression | Auto-extracts ZIP/triage packages recursively (KAPE, Velociraptor, UAC, Cortex; tar / tar.gz streamed, nested in each other), handles archived logs with duplicate filenames, auto-detects common forensic passwords | Linux artifacts — triage support |
| Linux smart inference | Auto-detects hostname, infers year from dpkg.log, supports Debian (auth.log) and RHEL (secure), RFC3164 and RFC5424 formats |
Linux artifacts — inference |
| systemd-journald binary logs | Pure-Rust reader for /var/log/journal/*.journal[~] — compact mode + zstd decompression. Essential on Ubuntu 22 / RHEL 8+ with SSSD + Active Directory, where /var/log/auth.log is empty because PAM routes auth through the journal. Walks sshd events and applies the same Accepted/Failed password regexes as text logs. Works on Windows analyst hosts without libsystemd. |
Linux artifacts — systemd-journald |
| Graph visualization with noise reduction | Direct upload to Neo4j or Memgraph with connection grouping (earliest date + count) and automatic IP-to-hostname resolution | Neo4j / Memgraph |
| Temporal path reconstruction | Cypher query to find the chronologically coherent attacker route between two nodes | Neo4j — temporal path / Memgraph — temporal path |
| Session correlation | logon_id field enables matching logon/logoff events to determine session duration |
CSV Format — logon_id |
| Silent mode | --silent flag suppresses all output for integration with Velociraptor, SOAR platforms and automation pipelines |
Actions table |
| Bulk evidence processing | Point -d at an evidence folder — masstin recursively finds all E01/VMDK/dd images, auto-detects OS per partition, extracts all artifacts from live + VSS, per-image artifact grouping in summary. One command for an entire incident |
Forensic images |
| BitLocker detection | Detects BitLocker-encrypted partitions (-FVE-FS- signature) and warns the analyst — no wasted time on unreadable data |
Forensic images |
| streamOptimized VMDK | Full support for compressed VMDKs (OVA exports, cloud templates). Also handles incomplete SFTP uploads (.filepart fallback) |
Forensic images |
| VSS snapshot recovery | Detect and extract EVTX from Volume Shadow Copies — recover event logs deleted by attackers | VSS recovery |
| Mounted volume support | Point -d D: at a mounted volume or use --all-volumes — live EVTX + VSS recovery from connected disks, no imaging needed |
Forensic images |
| UAL parsing | Auto-detect User Access Logging ESE databases — 3-year server logon history surviving event log clearing | UAL |
| MountPoints2 registry | Extract NTUSER.DAT from each user profile and parse MountPoints2 — reveals user→server share connections with timestamps, survives log clearing. Dirty hive + transaction log support | MountPoints2 |
| EVTX carving | parse --carve scans raw disk for EVTX chunks in unallocated space — recovers events after logs AND VSS are deleted. Implements Tier 1 (full 64 KB chunks) + Tier 2 (orphan record detection); Tier 3 (template matching) is planned. Builds synthetic EVTX files grouped by provider and parses them through the full pipeline. Three upstream parser bugs (infinite loops and multi-GB OOMs on corrupt BinXML) were reported and fixed in evtx 0.11.2; masstin keeps thread isolation + catch_unwind + --skip-offsets as a belt-and-suspenders safety net |
EVTX carving |
| Transparent reporting | CLI shows artifact discovery, processing progress, hostname/year inferences and per-artifact event counts | Parse evidence |
Install
Download pre-built binary (recommended)
No Rust toolchain needed. Just download and run.
| Platform | Download |
|---|---|
| Windows | masstin-windows.exe |
| Linux | masstin-linux |
| macOS (Apple Silicon) | masstin-macos-arm64 |
| macOS (Intel) | masstin-macos-x86_64 |
Go to Releases and download the binary for your platform. That’s it.
The binary is a console program: it has no installer and it does not open with a double click. To use it:
- Open a terminal (PowerShell on Windows) in the folder where you downloaded it.
- On Linux and macOS, mark it as executable first (
chmod +xon the file). - The examples on this page type plain
masstin. You can rename the downloaded file tomasstin(masstin.exeon Windows) or type the name it has. If the folder is not in yourPATH, call it with.\masstin.exeon Windows and./masstinon Linux and macOS.
Build from source (alternative)
git clone https://github.com/jupyterj0nes/masstin.git
cd masstin && cargo build --release
First steps
With the binary ready, this is the usage guide, in the order the work usually goes: parse the evidence, look at the graph, follow the trail and hunt.
Parse evidence
# The whole case folder: images, triages, loose EVTX, Linux logs, in one timeline
masstin -a parse -d /evidence/case/ -o timeline.csv
# Files and folders together: two images and a Linux triage
masstin -a parse -f DC01.e01 -f ubuntu-server.vmdk -d /evidence/linux-triage/ -o timeline.csv
# Also the EVTX records of cleared or overwritten logs, carved from the images
masstin -a parse -d /evidence/case/ --carve -o timeline.csv
Visualize in a graph database
# Load into Memgraph (no auth needed)
masstin -a load-memgraph -f full-timeline.csv --database localhost:7687
# Load into Neo4j
masstin -a load-neo4j -f full-timeline.csv --database localhost:7687 --user neo4j
A masstin timeline in Memgraph Lab: every login of the hour the attacker came in, then one query from the catalogue returns the chronologically valid path from the attacker’s IP to the workstation. DFIR Madness “Szechuan sauce” case.
Reconstruct the attacker’s path
The temporal path query finds the chronologically coherent route between two nodes. As written it is for Memgraph: localDateTime() is one of its functions. The Neo4j version is in the Neo4j article.
MATCH path = (start:host {name:'10.10.1.50'})-[*]->(end:host {name:'SRV-BACKUP'})
WHERE ALL(i IN range(0, size(relationships(path))-2)
WHERE localDateTime(relationships(path)[i].time) < localDateTime(relationships(path)[i+1].time))
RETURN path ORDER BY length(path) LIMIT 5

Follow the trail: where it came from and how far it got
The above needs a graph database. If you just want to look right now, masstin has a window of its own that reads the CSV directly:
masstin -a view -f timeline.csv
The graph shows you who talked to whom. The next question is usually a different one: if someone got in through this machine, how far could they get? And the other way round: this server is compromised, so where did they come in?
Tools › Paths answers both. Pick an origin and a destination and you get the chains of logins that join them, shortest first. Or pick only the origin and press Everything from the origin: you get a tree of everything reachable from there, branch by branch, with the account and the time of every hop. Everything into the destination does the same thing backwards.
You do not need to know where to start, either. Leave the origin box empty, type an account, and the tree starts at every machine where that account begins to move. Tick the same account all along and each chain is one single account from start to finish.
Hops can be chained in two ways:
- By time. A hop leaves a machine after the one that came into it, within a margin (24 hours by default). This is “what could have happened”. It finds a lot, and you have to read it with care.
- By session (logon ID). The hop has to be tied to the session the previous one opened. Either of two proofs will do: the machine itself wrote down that this session made the connection (a 4648 on Windows, an auditd
connecton Linux), or the hop leaves while the session is still open, between its logon and its logoff.
In the list, a hop the machine recorded as made by that session is drawn =(account time)=>. The rest, -(account time)->. In a report that difference matters: “it could have been” is one thing, “it was that session” is another.
Three things worth knowing before you use it:
- The search works on whatever the filters let through. With “Findings” on, only the hunt’s findings count. There is a button to search the whole timeline.
- A machine that shows up by name in some rows and by IP in others is two nodes, and the path breaks there. Tools › Hosts and addresses tells you whose each address is, with the evidence, and joins them when you press the button. It joins nothing by itself.
- When there is no path, the window tells you why: the origin has no login of the kind that counts, nothing comes into the destination, or what you can reach from one and what arrives at the other never meet.
All of this comes with masstin 1.5.0.
Hunt without knowing what to look for
Once the timeline exists, graph-hunt-csv asks the question an analyst brings to the first day: of everything that happened after the compromise, what is new for this network? No database, no plugin: every window connection is measured against the baseline, the only number you choose is the false discovery rate, and the report explains each finding in words.
Three terms, in plain words:
- Baseline: what the network was doing before the cutoff date (
--investigation-from). It is taken as normal. - p-value: the probability of seeing something this unusual if it were normal activity. The smaller it is, the more unusual the connection.
- False discovery rate: the share of findings you accept may be false alarms. At 5 %, out of every 100 flagged connections about 5 are expected to be nothing.
No hint needed: on the public Los Alamos set (21 million logins, 749 labelled red-team events) the red-team machine comes out at rank 1 and 204 connections survive the 5 % false discovery rate. The 22-minute run is cut in the recording.
masstin -a graph-hunt-csv -f timeline.csv --investigation-from "2026-03-15 00:00:00" \
--report hunt.md -o hunt.csv
How it decides, and what it found on the public LANL set, is in the graph-hunt post.
Available Actions
| Action | Description |
|---|---|
parse |
The one to use. Reads any mix of evidence from -d folders and -f files (EVTX, triages, disk images, Linux, macOS, Winlogbeat) into one timeline. --carve adds the carved EVTX records, --rules your custom parsers. See One action: parse |
parse-cortex |
Reads a Cortex XDR tenant’s lateral movement through its API. --cortex-sources chooses what: network connections, the event logs the agents send and the forensic collections |
parse-cortex-evtx-forensics |
Only the logs collected by Cortex XDR’s forensics add-on |
view |
Opens masstin’s own window on one or more timelines |
merge |
Combine multiple CSVs into a single chronological timeline |
load-neo4j |
Upload timeline to Neo4j for graph visualization |
load-memgraph |
Upload timeline to Memgraph for in-memory graph visualization |
merge-neo4j-nodes |
Fuse two :host graph nodes after loading (e.g., when an IP and a hostname were not auto-unified). No APOC required |
merge-memgraph-nodes |
Same as above, for Memgraph. No MAGE required |
graph-hunt-csv |
Statistical lateral movement hunt straight from the timeline CSV. Every connection after --investigation-from is measured against the baseline; Benjamini-Hochberg at --alpha decides; --seed reconstructs chains, --report writes the analyst report. No database. See graph-hunt post |
graph-hunt |
Same hunt on a graph loaded into Memgraph with --ungrouped. Everything is computed in memory; no MAGE needed |
graph-hunt-neo4j |
Same hunt on Neo4j (--db <name> for named databases). No GDS plugin needed |
One action: parse
You don’t have to pick a parser. -a parse takes whatever you give it, -d for a folder (walked whole) and -f for a single file, says in one line what it found and reads it all in one pass:
Found: 1 disk image, 4 triage packages (KAPE), 19 EVTX files, 2 Linux triages (26 files in 6 folders, 1.5 s)
- EVTX files and ZIPs full of them, UAL databases, KAPE / Velociraptor / UAC / Cortex XDR triages, disk images (E01, VMDK, VHD/VHDX, dd) with their shadow copies, Linux logs and triages, archives inside archives.
- macOS logs (
.logarchiveor thelog showJSON) and Winlogbeat JSON, each read by its own parser in the same run. - masstin timelines you pass with
-fare merged in. The ones sitting inside the folders (an earlier run, another case) are left out, and the console tells you so.
Two things it can’t guess, so you ask for them: --carve adds the EVTX records carved from the disk images (only the ones the live logs don’t already hold), and --rules reads the VPN, firewall or proxy logs masstin doesn’t know with your custom-parser rules. Everything ends up in the same CSV.
Whatever the evidence, any EVTX whose Provider.Name matches a channel masstin knows is parsed — regardless of filename. Archived logs (Security-YYYY-MM-DD-HH-MM-SS.evtx produced by the “Archive the log when full” retention policy), operator-renamed copies, and extracts from third-party tooling all route correctly. See Archived EVTX post for the full story.
Documentation
Artifacts
| Artifact | Article |
|---|---|
| Security.evtx (14 Event IDs) | Security.evtx and lateral movement |
| Terminal Services EVTX | Terminal Services EVTX |
| SMB EVTX | SMB EVTX events |
| WinRM, WMI-Activity + Scheduled Tasks — PowerShell Remoting (Event 6), remote WMI (Event 5858) and remotely created tasks (Author field) | WinRM, WMI & Tasks |
| MountPoints2 (NTUSER.DAT) — Remote share connections from registry — user→server with timestamps, survives log clearing | MountPoints2 |
| Linux logs | Linux forensic artifacts |
| Winlogbeat JSON | Winlogbeat artifacts |
| Cortex XDR | Cortex XDR artifacts |
| Custom parsers (BYO logs) | VPN, firewall, proxy, web app — define your own log format with a YAML rule file and parse it like any other source. masstin custom parsers |
Output Format and Advanced Features
| Topic | Article |
|---|---|
| CSV columns, event_type, Event ID mapping, logon_id, detail | CSV Format and Event Classification |
| Forensic image analysis and VSS recovery | Recovering deleted logs from VSS |
| User Access Logging (UAL) | Server access history from ESE databases |
| vshadow-rs — pure Rust VSS parser | vshadow-rs |
Triage detection (KAPE / Velociraptor / Cortex) — automatic recognition of triage packages inside parse |
Triage detection in masstin |
| graph-hunt — statistical lateral movement detection: p-values against the network’s own baseline, false discovery rate, Hopper classes, seed chains, analyst report; from the CSV, Memgraph or Neo4j, no plugins | graph-hunt in masstin |
Graph Databases
| Database | Article |
|---|---|
| Neo4j | Neo4j and Cypher: visualization and queries |
| Memgraph | Memgraph: in-memory visualization |
$ comments