National Cyber Warfare Foundation (NCWF)login

VMkatz for extracting Windows credentials from VM snapshots and virtual disks


0 user ratings
2026-10-17 15:31:30
milo
Red Team (CNA)
"VMkatz

VMkatz is a single static Rust binary that parses VMware, VirtualBox, Hyper-V, QEMU and Veeam artifacts in place to recover NTLM hashes, Kerberos tickets and DPAPI keys, built for authorized red team and forensic work.








Toolnikaiw/VMkatz — Rust credential extractor for VM memory snapshots, virtual disks and Veeam backups
CategoryPost-exploitation / offline credential extraction
Primary UseIn-place parsing of .vmsn, .vmdk, .vhdx, .qcow2, .vbk and registry artifacts to recover NTLM hashes, Kerberos tickets and DPAPI keys without exfiltrating disks
Safe UseIntended for authorized red team engagements, penetration tests and forensic investigations on systems you own or have written permission to assess
Telemetry NoteReads files in place rather than copying them; defenders should monitor access to VM datastores, backup repositories and raw VMFS devices, plus unusual static binaries on hypervisor hosts

VMkatz solves a very specific operational problem: when an authorized operator has landed on storage holding terabytes of virtualization artifacts, exfiltrating even a single .vmdk over a slow link is impractical. The tool's core thesis, stated plainly in the README as "too big to steal", is that credentials should be read in place from the files that already contain them — memory snapshots, saved states, virtual disks and Veeam backups. Written in Rust and shipped as a roughly 3 MB static binary, it runs on Linux, Windows, macOS and ESXi. The MIT-licensed project has accumulated over 1,500 stars and carries CI badges for both release builds and clippy, which suggests active maintenance and a disciplined codebase.


The tool implements credential extraction across two broad artifact classes. From memory snapshots it reproduces all nine SSP credential providers that mimikatz implements: MSV1_0 for NT/LM hashes and SHA1, WDigest and TsPkg for plaintext passwords, Kerberos for AES/RC4/DES keys and tickets, DPAPI for decrypted master keys, SSP and LiveSSP for plaintext credentials, Credman for stored credentials, and CloudAP for Azure AD tokens. The README is refreshingly specific about the internals of each provider — for instance, Kerberos parsing uses an AVL tree walk plus ticket carving for freed sessions, and MSV1_0 falls back to a physical memory scan when linked-list entries have been paged out.


The offline disk side is equally deep. Pointed at a virtual disk, VMkatz extracts SAM hashes with account status flags, LSA secrets including service account passwords and machine account keys, DCC2 cached domain credentials, and hashcat-ready DPAPI master key hashes in the $DPAPImk$ format targeting modes 15300/15310/15900/15910. For domain controller disks there is a native ESE database parser for full NTDS.dit extraction, and memory analysis can recover the BitLocker FVEK via pool-tag scans for FVEc and Cngb tags, enabling transparent disk decryption. The acknowledgements section credits mimikatz, pypykatz, Impacket and the Vergilius Project as the reference implementations and offset sources, which tells you the author did the archaeology rather than reinventing LSASS internals blindly.


Input format coverage is unusually broad and each row in the support table is marked as tested. Memory artifacts include VMware .vmsn snapshots with or without an accompanying .vmem, VirtualBox .sav saved states, auto-detected QEMU/KVM savevm states and virsh dump .elf core dumps, and Hyper-V .vmrs saved states from 2016 onward. Disk formats span .vmdk in both sparse and flat layouts, .vdi, .qcow2, .vhdx and legacy .vhd. More distinctive are the low-level targets: VMFS-5/6 raw SCSI devices under /dev/disks/... on ESXi — which, as the README notes, bypasses file locks — and LVM block devices on Proxmox LVM-thin. Raw registry hives (SAM, SYSTEM, SECURITY), raw NTDS.dit, and LSASS minidumps from procdump or Task Manager round out the list, covering Windows Server 2003 through Windows Server 2025 and Windows 11 24H2 on both x86 PAE and x64.


Basic usage is deliberately minimal. Invoking ./vmkatz snapshot.vmsn parses a VMware snapshot, and adding --disk disk.vmdk enables pagefile resolution so paged-out credentials can be reconstructed. Beyond that, the flag surface covers the natural variations: --ntds for domain controller disks, --kirbi and --ccache for Kerberos ticket export, --bitlocker-fvek to export keys for dislocker, -r for recursive datastore scanning, and --veeam-list/--veeam-extract for inspecting .vbk archives. Output can be shaped as text, brief, ntlm pwdump format, raw hashcat hashes, or csv, which makes the tool fit cleanly into both human review and scripted post-processing in an authorized workflow.


The ESXi deployment story is the most operationally interesting part of the README. The binary cross-compiles for x86_64-unknown-linux-musl so it can be dropped directly onto an ESXi host, and when VIB protection — the execInstalledOnly setting that blocks unsigned executables — is enabled, the project ships a Python loader (tools/vmkatz_loader.py) that runs the binary without requiring the control to be disabled. The README points to docs/esxi.md for what it candidly calls VIB bypass details, VMFS raw device access and auto-discovery. For defenders, this is the section worth reading closest: it documents exactly the hypervisor-side behaviors that backup and virtualization monitoring should be tuned to catch.


Architecture is explicitly modular via Cargo feature flags, and the defaults reveal the project's priorities. vmware, vbox, qemu, hyperv, sam, ntds.dit, carve, dump and vmfs are enabled by default; the carve feature in particular handles degraded extraction from partial or truncated memory images, a pragmatic touch for real engagements where snapshots are captured mid-write. Opt-in modules include chrome for browser secrets and veeam for backup parsing. A minimal build is one line: cargo build --release --no-default-features --features "sam ntds.dit" produces a disk-only extractor, which is useful both for footprint control on operations and for defensive teams who only need the registry and NTDS.dit logic.


The experimental chrome module deserves its own mention because it addresses Chrome v20 App-Bound Encryption, the scheme introduced in Chrome ≥127 that frustrated older cookie-dumping techniques. It works in disk-only mode, hybrid memory-plus-disk mode, or both combined, and for domain users whose credentials never touch the local SAM it accepts --chrome-password with a known plaintext or --chrome-nthash with an NT hash to unlock the DPAPI-protected browser blobs. The references to ChromeKatz for cookie struct layouts and xaitax's App-Bound decryption work show the author is tracking current research rather than resting on the 2013-era os_crypt.encrypted_key approach alone.


From a defensive perspective, VMkatz is best understood as a catalog of where credential material genuinely lives in virtualized estates. Every input format in the support table is simultaneously an attack surface and a forensic evidence source: Veeam .vbk repositories are credential goldmines, ESXi datastores expose NTDS.dit contents of domain controllers without touching the guest, and raw VMFS device access sidesteps the file locking that operators might assume protects snapshots. Blue teams can use the same tool legitimately to audit their own snapshots and backups for stale credential exposure, then measure how much blast radius a compromised hypervisor or NAS actually grants.


The main caveats are scope and freshness sensitivity. CloudAP output is described as typically empty for local-only logon, LiveSSP requires the rare post-Win8 livessp.dll, and several structure walks depend on verified EPROCESS offsets — which is why the Vergilius Project is credited as the offset reference across builds from XP through Windows 11 24H2. The README directs readers to docs/tested.md for known limitations, docs/architecture.md for module layout and docs/examples.md for realistic output, which is the right way to evaluate whether the tool fits a specific authorized engagement before deploying it anywhere sensitive.


In sum, VMkatz is a serious, well-engineered addition to the offline credential-extraction lineage that runs from mimikatz through pypykatz, with its own niche: virtualization-layer artifacts read in place. The static Rust binary, the breadth of tested formats, the feature-gated build system and the unusually honest documentation of hypervisor-specific techniques like the VMFS raw path and the VIB loader make it equally valuable to authorized red teams planning realistic exercises and to defenders enumerating exactly which storage artifacts in their environment would leak credentials if an attacker reached them.



Official project repository for nikaiw/VMkatz.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/vmkatz-for-extracting-windows.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.