Read NTDS.dit offline. Every hash, Kerberos key, LAPS and gMSA password, plus secretsdump-identical pwdump output.
Installation • Quick start • CLI reference • Output formats • Documentation
NTDSWolf parses an offline Active Directory NTDS.dit and decrypts the credential material it holds: NT/LM hashes and history, Kerberos keys, WDigest, cleartext passwords, trust keys, LAPS, and gMSA/dMSA managed passwords. It dumps every object with its full attribute set as NDJSON, JSON, or CSV, and writes cracking files: hashcat username:hash lists and pwdump files byte-identical to secretsdump's. It is pure Python, with no impacket and no .NET dependency, and runs on Linux, macOS, and Windows.
Decrypt an offline ntds.dit with its SYSTEM hive and write secretsdump's file set:
$ ntdswolf ntds.dit --system SYSTEM --format pwdump -q -o ./output/
$ grep '^Administrator:' output/hashes.ntds
Administrator:500:aad3b435b51404eeaad3b435b51404ee:7facdc498ed1680c4fd1448319a8c04f:::- Dumps everything: every object carries an
_unmappedfield with all remaining stored and linked LDAP attributes, so nothing in the database is silently dropped. - secretsdump parity: the
pwdumpformat writes byte-for-byte whatimpacket-secretsdump -outputfilewrites:hashes.ntds(with password history),hashes.ntds.kerberos, andhashes.ntds.cleartext. - Full Kerberos key sets: current, previous-password, and service keys, including the Server 2025 AES-SHA2 key types; the decoded
supplementalCredentialsblob is kept verbatim. - LAPS and managed passwords: LAPS v1 and v2 (cleartext and encrypted), and gMSA/dMSA passwords derived offline and self-verified against the account's NT hash.
- Five output formats: NDJSON (default), JSON, and CSV with one file per object class;
hashcatusername:hashfiles split by class, hash type, and age; andpwdump. - Parses modern NTDS.dit: Windows Server 2008 through 2025, in both the RC4 and AES PEK eras (compatibility).
- Parallel extraction:
--workersspreads extraction across processes and produces output identical to the single-threaded path. - Typed and tested: full type hints, strict linting, and a test suite covering the decryption and output paths.
Install from PyPI:
uv tool install ntdswolf # recommended
pip install ntdswolf # or with pipOr install from source:
uv tool install git+https://github.com/StrongWind1/NTDSWolfThe runtime dependencies and what each one does are listed in the installation guide.
# Basic extraction with auto-detected SYSTEM hive
ntdswolf ntds.dit
# Specify SYSTEM hive explicitly
ntdswolf ntds.dit --system SYSTEM
# Provide boot key directly
ntdswolf ntds.dit --bootkey aabbccdd11223344aabbccdd11223344
# Extract only password hashes in hashcat format
ntdswolf ntds.dit --system SYSTEM --format hashcat
# Extract only users and groups as JSON
ntdswolf ntds.dit --system SYSTEM --format json --extract users,groups
# Full extraction with pwdump output
ntdswolf ntds.dit --system SYSTEM --format pwdump -o ./output/Every flag is in the CLI reference, file names and sample lines for each format in Output formats, and exit codes in Windows Server compatibility.
Supported types are extracted and verified against real NTDS databases. Wired (unverified) decoders run in the pipeline but have not yet been confirmed against real data.
| Type | Source attribute | Status |
|---|---|---|
| NT (NTLM) hashes | unicodePwd |
Supported |
| LM hashes | dBCSPwd |
Supported |
| NT hash history | ntPwdHistory |
Supported |
| LM hash history | lmPwdHistory |
Supported |
| Kerberos keys (AES256, AES128, RC4, DES) | supplementalCredentials |
Supported |
| Kerberos Server 2025 keys (AES256-SHA384, AES128-SHA256) | supplementalCredentials |
Supported |
| WDigest hashes | supplementalCredentials |
Supported |
| Cleartext passwords | supplementalCredentials |
Supported |
| NTLM-Strong-NTOWF | supplementalCredentials |
Supported |
| Kerberos previous-password / service keys | supplementalCredentials |
Supported |
| Trust keys (RC4 + AES, both directions) | trustAuthIncoming/Outgoing |
Supported |
| LAPS v1 passwords | ms-Mcs-AdmPwd |
Supported |
| LAPS v2 cleartext / encrypted passwords | msLAPS-Password / msLAPS-EncryptedPassword |
Supported |
| gMSA / dMSA managed passwords | msDS-ManagedPasswordId |
Supported |
| Key credentials (WHfB/FIDO2) | msDS-KeyCredentialLink |
Supported |
| DPAPI backup keys (PVK + PEM) | secret objects |
Wired (unverified) |
| BitLocker recovery keys | msFVE-RecoveryInformation |
Wired (unverified) |
The class-specific fields decoded for users, computers, groups, trusts, managed service accounts, and domains, and how the Kerberos key sets map to output fields, are in Credential types.
git clone https://github.com/StrongWind1/NTDSWolf.git && cd NTDSWolf
uv sync # install dev dependencies
make check # lint, typecheck, tests, strict docs buildSource layout under src/ntdswolf/: cli/ (typer CLI), core/ (pipeline orchestration, database wrapper, caches, worker pool), crypto/ (boot key, PEK, and NT/LM hash decryption; trust, DPAPI, LAPS, and key-credential parsers), decoders/ (per-class object decoders and the decoder registry), output/ (format writers), models/ (enums and flag definitions), constants.py (spec-derived constants). The three-phase pipeline is described in the Guide.
Built on the dissect framework by Fox-IT, with dpapi-ng for offline MS-GKDI / DPAPI-NG decryption. The pwdump output is byte-compatible with impacket's secretsdump.
- CredWolf: Validate AD passwords, hashes, keys, and tickets over NTLM and Kerberos
- KerbWolf: Kerberos roasting and TGT attack toolkit for Active Directory
- PassWolf: Spec-compliant AD password change, reset, and policy read over SAMR, Netlogon, LSA, Kerberos, LDAP
- AD-SecretGen: Derive every password-derived AD secret (NT/LM, Kerberos keys, WDigest) from a password
- ntcompress: Pure-Python ESE record compression and ntdll RtlCompressBuffer/RtlDecompressBuffer formats
- Kerberos: Protocol internals, security configuration, and attack techniques for Kerberos in Active Directory
All tools: strongwind.dev
NTDSWolf is for authorized security testing, research, and education. Use it only against systems and data you own or have written permission to test. You are responsible for how you use it.