Mimikatz
- Type
- Infostealer
- Capabilities
- Credential theftPost exploitationDefense evasion
- Delivery
- PhishingSpearphishing
- Platforms
- Windows
Mimikatz is a Windows credential-access and post-exploitation toolkit used in offensive security assessments, cyberespionage, and financially motivated intrusions. It extracts authentication material from Local Security Authority Subsystem Service (LSASS) memory, dumps local account password hashes from the Security Account Manager, and retrieves LSA secrets. These capabilities expose credentials that attackers can reuse to expand access within compromised environments.
Mimikatz can run as a standalone utility, through PowerShell-based Invoke-Mimikatz execution, or as an embedded component of other offensive frameworks. Modified versions have been deployed entirely in memory. Its kernel driver can read and modify kernel memory, bypass process protections, facilitate access to protected credential stores, and disable security callbacks.
Documented users include APT28 and TGR-STA-0049, while an in-memory variant has supported credential extraction in Operation ShadowCloud. Mimikatz functionality is also integrated into frameworks such as OpsAgent and Sentel Agent. It is generally deployed after attackers have obtained access rather than serving as an initial infection mechanism, and its use alone does not establish attribution to a particular actor.
Associated vulnerabilities
25 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
13 more CVEs associated with this family tracked in Mallory.
Associated threat actors
147 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The toolkit was unchanged: X-Agent for keylogging and screenshotting, X-Tunnel for exfiltration, Mimikatz for credential theft.
SharpDPAPI, Mimikatz and ProcDump executions; manual dumps of the SAM and SYSTEM hives
Mimikatz (via Meterpreter’s kiwi extension) dumped LSA secrets and exposed the password of a service account that was already in Domain Admins.
Параллельно злоумышленники собирают учетные данные с помощью mimikatz, кейлоггера и других инструментов, отключают защитные решения и очищают журналы событий.
+141 more in the app. View in Mallory
Techniques & procedures
117 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
Adversaries may buy, steal, or download software tools that can be used during targeting. Tools can be open or closed source, free or commercial.
Using the shells as a foothold, they uploaded a mixed toolkit and began post-exploitation activities...
Initial Access
3 techniques
Initial Access
Mimikatz recovered a service-account password from LSA secrets. That account was already a domain administrator.
The DragonForce ransomware group initially infiltrated the victim system network via a remote desktop server and attempted persistent logins using valid domain accounts (Domain Accounts, T1078.002).
“The use of an open source tool like Mimikatz combined with SQL injection attacks indicates a likely opportunistic adversary.”
Execution
16 techniques
Execution
wmic node:{ip address} process call create "cmd.exe /c c:\users\mpBD6D42.dat xxxasd -pass > c:\users\23.txt"
The overall leader, “Command and Scripting Interpreter,” which includes such things as PowerShell, Cmd, etc., was excluded from the list because its dominance overshadows and obscures other important techniques.
«Для T1059.001: Mimikatz, Run BloodHound from local disk, Run Bloodhound from Memory using Download Cradle — все через PowerShell на Windows.»
The service was observed being created using the following sequence of commands: cmd.exe /c start /b lld.exe xxx.txt ... cmd.exe /c sc create “windowsinspectionupdate”
Execute-assembly runs .NET executable within memory of sacrificial process by loading the CLR.
The current gadget triggers a call to Activator.CreateInstance() when deserialized using BinaryFormatter from jscript/vbscript/vba... Generates VBS/VBA and JS/HTA scripts
“OSEP teaches you about the Windows system APIs that many tools use behind the scenes. So rather than using Mimikatz to dump a credential database, you’ll be taught how Mimikatz does this and code it yourself.”
These threats demonstrate techniques T1127 (Trusted Developer Utilities) and T1500 (Compile After Delivery) of MITRE ATT&CK framework.
Talos researchers observed the UAT-7237 APT group using a customized Shellcode loader tracked as “SoundBill.” SoundBill can be employed to decode and load any shellcode, including Cobalt Strike.
Therefore, using these stolen certificates, threat actors gain the advantage of making their programs look like legitimate NVIDIA programs and allowing malicious drivers to be loaded by Windows.
Annotations ID Technique Tactic T1204.003 Malicious Image Execution Default Configuration
Bad Rabbitは作成したパスワードダンプツールと名前付きパイプによりプロセス間通信を行います。
Illegal service or process control. ... Directory: Unknown Description Illegal service or process control. ... Dataset_1 Path: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1569/logAllMimikatzModules.log ... Dataset_2 Path: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1569/logAllPowerSploitModulesWithOldNames.log
Многие RaaS-группы используют пересекающийся набор инструментов: Cobalt Strike (или аналоги) для C2, Mimikatz для credential dumping, PsExec для lateral movement.
This method uses .NET’s interop functionality to patch “amsi.dll”’s exported function “AmsiScanBuffer”... By modifying the function body by injecting our own assembly code, we can create a small stub which will always return a code indicating that a command is non-malicious.
the attackers used the DLL search order hijacking technique in order to load Mimikatz
Persistence
15 techniques
Persistence
Mimikatz recovered a service-account password from LSA secrets. That account was already a domain administrator.
The DragonForce ransomware group initially infiltrated the victim system network via a remote desktop server and attempted persistent logins using valid domain accounts (Domain Accounts, T1078.002).
Adversaries may manipulate accounts to maintain access to victim systems. Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups.
Using DSRM to Backdoor Active Directory What’s interesting about the DSRM password is that the DSRM account is actually “Administrator”. This means that once an attacker has the DSRM password for a Domain Controller (or DCs), it’s possible to use this account to logon to the Domain Controller over the network as a local administrator.
!light.bat modifies WDigest UseLogonCredential to 1, forcing Windows to retain plaintext credentials in memory.
using Mimikatz and secretsdump to compromise three accounts and create two new ones with a compromised “admin” account
The threat actors then executed Mimikatz on VDI-KMS to harvest credentials and created a rogue domain administrator account.
CreateProcessWithLogonW ... provides a native way to spawn a new process with different network-only credentials ... the built in Windows utility, runas, is a simple wrapper around CreateProcessWithLogonW and the /NETONLY flag provides a native way to spawn a new process with different network-only credentials.
Commands 1 sc.exe create mimidrv.sys binPath=C:\windows\temp\mimidrv.sys type=kernel && sc.exe start mimidrv.sys
This version of Mimikatz drops mimilib.dll to obtain credentials in plain text for any user that is accessing the compromised host and provides persistence across reboots.
misc::memssp To dump credentials through Security Support Provider (SSP)
Automated generation of attack data by exploiting CVE-2021-1675 ... Datasets ... /datasets/attack_techniques/T1547.012/printnightmare/ ... The following detections in our security content repository use this attack data for testing
Researchers have made improvements on exploit code, such as removing the requirement to reset passwords during exploitation... threat actors can... change computer passwords in Active Directory (AD).
Their observed Skeleton Key was able to bypass authentication on Active Directory (AD) systems implementing single-factor verification (T1556.001 Modify Authentication Process: Domain Controller Authentication).
MISC::MemSSP – Inject a malicious Windows SSP to log locally authenticated credentials by patching LSASS in memory with new SSP – no reboot required.
Privilege Escalation
19 techniques
Privilege Escalation
Defense Evasion Process injection to hide beacon Credential Access mimikatz sekurlsa::logonpasswords T1003, T1055, T1093 hashdump T1003, T1055, T1093
CreateRemoteThread into LSASS. Sysmon events Mimikatz (lsadump::lsa /inject) lsadump PWDump6 Windows Credential Editor (WCE)
The stager waits for an RC4-encrypted executable payload to be written to the named pipe and then injects the payload into a legitimate Windows executable randomly selected from a hard-coded list in the stager code.
Mimikatz, UAC Bypass, and Zerologon are a privilege escalation holy trinity with some help of NTDS dumps.
Mimikatz recovered a service-account password from LSA secrets. That account was already a domain administrator.
The DragonForce ransomware group initially infiltrated the victim system network via a remote desktop server and attempted persistent logins using valid domain accounts (Domain Accounts, T1078.002).
Adversaries may manipulate accounts to maintain access to victim systems. Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups.
Using DSRM to Backdoor Active Directory What’s interesting about the DSRM password is that the DSRM account is actually “Administrator”. This means that once an attacker has the DSRM password for a Domain Controller (or DCs), it’s possible to use this account to logon to the Domain Controller over the network as a local administrator.
It accomplishes this by using an embedded Mimikatz module to steal the user token from a process such as lsass.exe, winlogon.exe, or wininit.exe.
However, if you don’t want a command to run automatically, add the option /impersonate in the command. This will create a token in the current Mimikatz session that will impersonate the user.
Hunt Hypothesis Threat actor (TA) can perform privileged access to a trusting forest using SID history at will. MITRE ATT&CK Technique – T1134.005
An attacker can run the lsadump::dcshadow command to modify the value of primaryGroupID to 512. The following command can make domain standard users be a member of the domain admin group.
CreateProcessWithLogonW ... provides a native way to spawn a new process with different network-only credentials ... the built in Windows utility, runas, is a simple wrapper around CreateProcessWithLogonW and the /NETONLY flag provides a native way to spawn a new process with different network-only credentials.
Commands 1 sc.exe create mimidrv.sys binPath=C:\windows\temp\mimidrv.sys type=kernel && sc.exe start mimidrv.sys
This version of Mimikatz drops mimilib.dll to obtain credentials in plain text for any user that is accessing the compromised host and provides persistence across reboots.
misc::memssp To dump credentials through Security Support Provider (SSP)
Automated generation of attack data by exploiting CVE-2021-1675 ... Datasets ... /datasets/attack_techniques/T1547.012/printnightmare/ ... The following detections in our security content repository use this attack data for testing
In order for Mimikatz to work properly, you will need to run it with administrator rights or as system so that it can access sensitive credential information.
Mimikatz, UAC Bypass, and Zerologon are a privilege escalation holy trinity with some help of NTDS dumps.
Stealth
27 techniques
Stealth
Description Mimidrv is a signed Windows Driver Model WDM kernel mode software driver meant to be used with the standard Mimikatz executable.
«Запуск PowerShell (T1059.001) с обфусцированной командой (T1027)»
Sandworm Team used UPX to pack a copy of Mimikatz.
Resolve imports using LoadLibrary and GetProcAddress
"Real Mimikatz invocations are never that literal in the command line since attackers rename the binary, encode the command, or run it completely from memory using various methods."
exécution de Mimikatz (renommé sysmon64.exe )
Utilisation des répertoires « C:\Users\Public\Music\ » et « C:\Users\[user]\Downloads\ ».
Defense Evasion Process injection to hide beacon Credential Access mimikatz sekurlsa::logonpasswords T1003, T1055, T1093 hashdump T1003, T1055, T1093
CreateRemoteThread into LSASS. Sysmon events Mimikatz (lsadump::lsa /inject) lsadump PWDump6 Windows Credential Editor (WCE)
The stager waits for an RC4-encrypted executable payload to be written to the named pipe and then injects the payload into a legitimate Windows executable randomly selected from a hard-coded list in the stager code.
Now I’ll remove some properties with visual studio community edition... First the icon file. I’ve read some AV’s detect based on the image alone. I can remove it or put in a new image... When I look at the version information there are all kinds of detection opportunity strings in here... An attacker can modify these and put in a new file altogether.
The actor then issues a command that uses the “type” command to read the contents of the text file containing the passwords, followed by a command that uses “del” to delete the text file.
Mimikatz recovered a service-account password from LSA secrets. That account was already a domain administrator.
The DragonForce ransomware group initially infiltrated the victim system network via a remote desktop server and attempted persistent logins using valid domain accounts (Domain Accounts, T1078.002).
These threats demonstrate techniques T1127 (Trusted Developer Utilities) and T1500 (Compile After Delivery) of MITRE ATT&CK framework.
It accomplishes this by using an embedded Mimikatz module to steal the user token from a process such as lsass.exe, winlogon.exe, or wininit.exe.
However, if you don’t want a command to run automatically, add the option /impersonate in the command. This will create a token in the current Mimikatz session that will impersonate the user.
Hunt Hypothesis Threat actor (TA) can perform privileged access to a trusting forest using SID history at will. MITRE ATT&CK Technique – T1134.005
<local_path>\rar.exe e <local_path>\m.tmp <local_path>\ -p<password> Extract files [T1140]
The screenshot shows that cyserver.exe connected to the port and sent messages... Cortex neither prevented nor alerted anything without the user-mode component Cyserver. For example, Mimikatz could be launched and executed without modification.
By exploiting the CopyFile directive, the attacker can copy arbitrary files to the client’s system which are subsequently executed with SYSTEM privileges.
The following analytic detects instances where the Windows InstallUtil.exe binary loads vaultcli.dll and Samlib.dll. This activity is significant because it can indicate an attempt to execute code that bypasses application control and captures credentials using tools like Mimikatz.
`xcopy.exe` copies `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe` to `...\KatzNetAssembly.bat.exe`, after which `KatzNetAssembly.bat.exe` is executed even though it is actually PowerShell.
At the start of its execution, MSVCR100.dll DLL checks whether it was loaded by unpack200.exe and if not, it terminates itself. This is an effective way to avoid detection by sandboxes since running the DLL in the wrong context will not trigger any malicious activity.
This method uses .NET’s interop functionality to patch “amsi.dll”’s exported function “AmsiScanBuffer”... By modifying the function body by injecting our own assembly code, we can create a small stub which will always return a code indicating that a command is non-malicious.
the attackers used the DLL search order hijacking technique in order to load Mimikatz
"We’ll run it in memory without ever letting it touch disk" and "iwr ... Invoke-Mimikatz.ps1 | iex."
Defense Impairment
10 techniques
Defense Impairment
!light.bat modifies WDigest UseLogonCredential to 1, forcing Windows to retain plaintext credentials in memory.
DCShadowもDCSyncと同様にMS-DRSRを用いてレプリケーションを行うことで、Active Directoryの情報を改ざんすることが可能となります。... Figure 3はDCShadowで、ユーザ名「user01」の「説明」を「DCShadow Changed!!」に書き換えた様子です。... 特定ユーザの権限の書き換えやSID Historyの改ざんによるなりすましなどに悪用される可能性があります。
For every new process, we get a structure ... containing its command line... After analyzing the process info, we can set CreationStatus... STATUS_ACCESS_DENIED: This looks suspicious. Block the process from ever starting.
An attacker can run the lsadump::dcshadow command to modify the value of primaryGroupID to 512. The following command can make domain standard users be a member of the domain admin group.
Threat actors are using stolen NVIDIA code signing certificates to sign malware to appear trustworthy and allow malicious drivers to be loaded in Windows. | According to samples uploaded to the VirusTotal malware scanning service, the stolen certificates were used to sign various malware and hacking tools, such as Cobalt Strike beacons, Mimikatz, backdoors, and remote access trojans.
Researchers have made improvements on exploit code, such as removing the requirement to reset passwords during exploitation... threat actors can... change computer passwords in Active Directory (AD).
Their observed Skeleton Key was able to bypass authentication on Active Directory (AD) systems implementing single-factor verification (T1556.001 Modify Authentication Process: Domain Controller Authentication).
MISC::MemSSP – Inject a malicious Windows SSP to log locally authenticated credentials by patching LSASS in memory with new SSP – no reboot required.
Security Tool Bypass : Drivers like those used by Mimikatz (mimidrv.sys) to query and modify kernel memory to bypass process protections, read credentials from protected processes like LSASS, or disable security callbacks.
EVENT::Clear – Clear an event log... Run privilege::debug then event::drop to patch the event log. Then run Event::Clear to clear the event log without any log cleared event (1102) being logged.
Credential Access
28 techniques
Credential Access
Operator messages (Simplified Chinese, translated) say that token elevation, credential dumping (via Mimikatz), browser password theft and sensitive file search are not built into this implant and are offered through an "Extensions" plugin set Confirmed .
mimikatz and pass-the-hash run through named pipes T1003.001
Actors dumped sam.hiv to obtain information about users on the system.
Adversaries may attempt to access or create a copy of the Active Directory domain database in order to steal credential information, as well as obtain other information about domain members such as devices, users, and access rights.
Mimikatz (via Meterpreter’s kiwi extension) dumped LSA secrets and exposed the password of a service account that was already in Domain Admins.
APT15 uses widely accessible tools like Mimikatz and LaZagne (T1003.001, T1003.004, T1003.005).
Mimikatz is able to impersonate a Domain Controller and request password with domain replication.
the attackers installed tools including NirSoft and Mimikatz, which are used to steal credentials, cookies, live network traffic and more
This appears to use a combination of an included list of weak credentials and a version of mimikatz similar to that which was used in Nyetya.
Description Running Petitpotam, ntlmrealy, Rubeus and mimikatz to obtain a TGT as a domain controller and execute a DcSyn attack.
There are two workarounds that Benjamin describes. The dangerous one is to run vault::cred /patch to patch LSASS’ logic to null out the CRED_TYPE_DOMAIN_PASSWORD check.
“...can also use these keys to create new SSO cookies or modify existing ones... extract the PRT ... and use the PRT on a different device than it was issued to... create our own PRT cookies... modify and re-sign the PRT cookie.”
T1552 - Unsecured credentials Retrieves credentials using Mimikatz
“The TA accessed /etc/passwd, likely for credential harvesting.”
Adversaries may search for private key certificate files on compromised systems for insecurely stored credentials.
The actors used Mimikatz to harvest credentials.
When Mimikatz and LaZagne did not recover the Chrome material they wanted, they tried another project, fixed its handling of newer Chrome records, and continued.
Атакующие используют Mimikatz и утилиты NirSoft для извлечения паролей из Windows Credential Manager.
Researchers have made improvements on exploit code, such as removing the requirement to reset passwords during exploitation... threat actors can... change computer passwords in Active Directory (AD).
Their observed Skeleton Key was able to bypass authentication on Active Directory (AD) systems implementing single-factor verification (T1556.001 Modify Authentication Process: Domain Controller Authentication).
MISC::MemSSP – Inject a malicious Windows SSP to log locally authenticated credentials by patching LSASS in memory with new SSP – no reboot required.
Mimikatz — легендарный инструмент для извлечения паролей, хэшей и Kerberos-билетов из памяти компьютера. ... Rubeus — специализированный инструмент для атак на реализацию Kerberos в Windows.
DCSync et Golden Ticket via Mimikatz renommé
Silver Ticket - поддельный Ticket Granting Service (TGS), подписанный хэшем учётной записи конкретного сервиса. Техника T1558.002 в MITRE ATT&CK (Steal or Forge Kerberos Tickets: Silver Ticket, тактика Credential Access).
Adversaries possessing a valid Kerberos ticket-granting ticket (TGT) may request one or more Kerberos ticket-granting service (TGS) service tickets for any SPN from a domain controller (DC).
Besonders schön sind auch Angriffsvektoren wie AS-REP- und TGS-REP-Kerberoasting von User-Principals... Deaktivert man diese Pre-Authentication kann ein Angreifer über eine Anfrage an den DC (AS-REQ) ein Stück Daten abfragen (den EncryptedPart der AS-REP) was mit dem Passwort des Benutzers verschlüsselt ist. Mittels dieser Daten kann ein Angreifer über BruteForce eventuell das Passwort des Nutzers zu erraten
“golden SAML.” The vector enables an attacker to create a golden SAML, which is basically a forged SAML “authentication object,” and authenticate across every service that uses SAML 2.0 protocol as an SSO mechanism… if we have the key that signs the object… (…token-signing private key for golden SAML), we can then forge such an “authentication object”… and impersonate any user
Mimikatz ... a free tool capable of changing privileges, exporting security certificates, and recovering Windows passwords in plaintext
Discovery
9 techniques
Discovery
Actors dumped system.hiv and security.hiv to obtain information about the data used by the operating system.
The `hashdump` output enumerates local accounts, including Administrator, ballen, and jchambers.
the attackers installed tools including NirSoft and Mimikatz, which are used to steal credentials, cookies, live network traffic and more
Once inside the network, the threat actor will use publicly available penetration tool suites such as Cobalt Strike, Mandiant’s Commando, or PowerShell Empire preloaded with publicly available tools like Bloodhound and Mimikatz to map the network
In preparation for credential harvesting, threat actors retrieved the Local Security Authority Subsystem Service (LSASS) process identifier (PID) via tasklist.
In that case, the information that is gathered includes A.V., Firewall, and AntiSpy product information.
Windows Defender places malicious files in quarantine upon detection... The Windows Defender quarantine folder is valuable from the perspective of digital forensics and incident response (DFIR).
To perform the propagation, Threat Actors firstly sought to compromise network administrators accounts ... Discovery Account Discovery
At the start of its execution, MSVCR100.dll DLL checks whether it was loaded by unpack200.exe and if not, it terminates itself. This is an effective way to avoid detection by sandboxes since running the DLL in the wrong context will not trigger any malicious activity.
Lateral Movement
10 techniques
Lateral Movement
Lateral Movement ... Network shares T1021
captured RDP credentials opened the new Hyper-V domain.
The command in both examples use the psexec tool to run 'cmd.exe' on the remote system... The ‘PSEXEC’ portion of this tab allows the actor to install an embedded PSExec tool to the system and use it to connect to a remote system using supplied credentials.
if Invoke-Mimikatz is run with the appropriate rights and the target computer has PowerShell Remoting enabled, it can pull credentials from other systems, as well as execute the standard Mimikatz commands remotely, without files being dropped on the remote system.
Latest commit gentilkiwi [new] mimikatz lsadump::postzerologon, to reinit DC password both in …
Pass-the-Hash with Mimikatz | Attackers can use Mimikatz to dump hashes, tickets, or plain text passwords.
When a red teamer mentions "lateral movement via pass-the-hash," others immediately understand both the tactical goal (TA0008) and the specific technique (T1550.002), regardless of whether they use Mimikatz, Impacket, or custom tooling.
ARTEX agents attempt Pass-the-Ticket, Windows Remote Management (WinRM), Kerberos relay, and Pass-the-Hash toward domain controllers.
RDP hijacking is a technique of intercepting another user’s remote desktop session for lateral movement... the attacker can use the terminal service console (tscon.exe) for RDP hijacking, and Mimikatz also supports this with the “ts::remote” command.
Use of Dridex banking trojan, Pentest tool Powershell Empire, credentials viewer tool Mimikatz and administration tool PsExec have been reported. After taking over the network’s administrators accounts, Threat Actors use them to deploy the ransomware
Collection
5 techniques
Collection
Prerequistes Encrypted file(s) access on a Windows system ... Here I use a mapped partition on d:\ SystemCertificates , Crypto and Protect folders of the user
Threat actors also deploy tools like Mimikatz, CrackMapExec, and Rclone to harvest network secrets and stage bulk file exfiltration
“ReadFile(OVERLAPPED): copy SAM and SYSTEM hives to disk” and “Files at C:\Users\Public\.”
Four days after that, we found traces of a password-encrypted RAR archive... rar.exe a -hp1234QWER!@#$ -v5m c:\windows\help\1019.rar c:\windows\help\*.txt
Mapped by the advisory to credential dumpers such as Mimikatz.
Command and Control
2 techniques
Command and Control
12-13 septembre : reconnaissance de domaine, téléchargement de Mimikatz
Actors leveraged ConnectWise ScreenConnect to connect to the ServiceDesk system. Anydesk.exe was run on at least three different hosts.
Exfiltration
1 technique
Exfiltration
The threat actor conducted ... data exfiltration using Mimikatz. Annex B maps exfiltration to T1041, Exfiltration over C2 Channel.
Impact
2 techniques
Impact
The most direct approach was to terminate the process upon DLL load, effectively disabling the security software. ... For our proof of concept, we terminated the process every time our DLL was loaded by one of the security vendors’ processes.
...после обновления Defender пытается сохранить локальную копию Zone.Identifier независимо от размера потока... Затем [SMB-сервер] должен начать передавать огромный ADS (например, mimikatz.exe:Zone.Identifier).
Observables
153 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.