CrackMapExec
- Type
- Loader
- Capabilities
- Credential theftLateral movementPost exploitationReconnaissanceScanningBrute force
- Platforms
- Windows
CrackMapExec is an open-source network penetration-testing and post-exploitation tool used by security professionals and threat actors, particularly against Windows enterprise networks and Active Directory environments. It supports network scanning, discovery of active hosts and machine names, account discovery, share enumeration, and credential validation. Its authentication capabilities include password guessing against individual systems or across networks, password spraying using supplied usernames and passwords, and pass-the-hash authentication over SMB. CrackMapExec can also extract Active Directory password hashes through the Directory Replication Services API or Volume Shadow Copy, supporting further credential access and lateral movement.
Threat actors including Dragonfly and Chafer have used CrackMapExec in intrusion operations. Chafer deployed it during campaigns targeting air transportation and government organizations in the Middle East. It has also been used following exploitation of Ivanti Connect Secure appliances and for password spraying against domain controllers in Latin American intrusions. These uses reflect the abuse of a dual-use security tool rather than an association with a single malware operator or delivery mechanism. NetExec is its successor project and should be distinguished from the original CrackMapExec tool.
Associated threat actors
6 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“Utilized previously collected credentials to conduct password spraying attacks against the Domain Controller with tools such as CrackMapExec or Impacket.”
“Utilized previously collected credentials to conduct password spraying attacks against the Domain Controller with tools such as CrackMapExec or Impacket.”
Dragonfly has obtained and used tools such as Mimikatz, CrackMapExec, and PsExec.
Another tool, the CrackMapExec executable for version 2.2 (found on GitHub), has functionalities such as network scanning and credential dumping, as well as accounts discovery or code injection.
In addition to this, an obfuscated version of the publicly available CrackMapExec tool appeared to be deployed.
Prominent among the other tools used by Twelve are Cobalt Strike, Mimikatz, Chisel, BloodHound, PowerView, adPEAS, CrackMapExec, Advanced IP Scanner, and PsExec for credential theft, discovery, network mapping, and privilege escalation.
Techniques & procedures
43 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
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.
Initial Access
1 technique
Initial Access
Actors are also leveraging the opensource tools such as Mimikatz and the CrackMapExec tool to obtain valid account credentials from AD servers (Valid Accounts [T1078]).
Execution
3 techniques
Execution
CrackMapExec can execute PowerShell commands via WMI.
The content repeatedly describes threat actors and malware using PowerShell to execute payloads, run commands, download additional malware, perform lateral movement, evade defenses, and execute scripts in memory. | Examples include: 'APT28 downloads and executes PowerShell scripts and performs PowerShell commands'; 'APT3 has used PowerShell on victim systems to download and run payloads after exploitation'; 'TA505 has used PowerShell to download and execute malware and reconnaissance scripts.'
A client with admin rights can install a service on a remote host, point it at any binary the target can resolve, and start it. Whatever the service points at runs as SYSTEM.
Persistence
4 techniques
Persistence
Actors are also leveraging the opensource tools such as Mimikatz and the CrackMapExec tool to obtain valid account credentials from AD servers (Valid Accounts [T1078]).
ADVSTORESHELL is capable of setting and deleting Registry values. Agent Tesla can achieve persistence by modifying Registry key entries. APT41 used a malware variant called GOODLUCK to modify the registry in order to steal credentials.
Operation Wocao enabled Wdigest by changing the HKLM\SYSTEM\\ControlSet001\\Control\\SecurityProviders\\WDigest registry value from 0 (disabled) to 1 (enabled); Wizard Spider modified WDigest UseLogonCredential to 1 to force credentials to be stored in clear text in memory.
During Operation Wocao, the threat actors enabled Wdigest by changing the HKLM\SYSTEM\ControlSet001\Control\SecurityProviders\WDigest registry value from 0 (disabled) to 1 (enabled). Wizard Spider has modified the Registry key HKLM\System\CurrentControlSet\Control\SecurityProviders\WDigest ... to force credentials to be stored in clear text in memory.
Privilege Escalation
1 technique
Privilege Escalation
Actors are also leveraging the opensource tools such as Mimikatz and the CrackMapExec tool to obtain valid account credentials from AD servers (Valid Accounts [T1078]).
Stealth
1 technique
Stealth
Actors are also leveraging the opensource tools such as Mimikatz and the CrackMapExec tool to obtain valid account credentials from AD servers (Valid Accounts [T1078]).
Defense Impairment
3 techniques
Defense Impairment
ADVSTORESHELL is capable of setting and deleting Registry values. Agent Tesla can achieve persistence by modifying Registry key entries. APT41 used a malware variant called GOODLUCK to modify the registry in order to steal credentials.
Operation Wocao enabled Wdigest by changing the HKLM\SYSTEM\\ControlSet001\\Control\\SecurityProviders\\WDigest registry value from 0 (disabled) to 1 (enabled); Wizard Spider modified WDigest UseLogonCredential to 1 to force credentials to be stored in clear text in memory.
During Operation Wocao, the threat actors enabled Wdigest by changing the HKLM\SYSTEM\ControlSet001\Control\SecurityProviders\WDigest registry value from 0 (disabled) to 1 (enabled). Wizard Spider has modified the Registry key HKLM\System\CurrentControlSet\Control\SecurityProviders\WDigest ... to force credentials to be stored in clear text in memory.
Credential Access
16 techniques
Credential Access
“The use of Mimikatz on affected systems for credential dumping.”
“Operation Wocao…enabled Wdigest by changing the HKLM\SYSTEM\ControlSet001\Control\SecurityProviders\WDigest registry value…”, and “Wizard Spider…setting the UseLogonCredential registry value to 1 in order to force credentials to be stored in clear text in memory.”
`hashdump` extracts local user password hashes from the SAM database; Mimikatz is invoked with `lsadump::sam`.
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.
CrackMapExec can dump hashed passwords associated with Active Directory using Windows' Directory Replication Services API (DRSUAPI), or Volume Shadow Copy.
ID: T1110.001 Sub-technique of: T1110
Adversaries with no prior knowledge of legitimate credentials within the system or environment may guess passwords to attempt access to accounts.
The threat actor used password-cracking techniques to obtain the plaintext passwords from obtained credential hashes. The threat actor dropped and executed open-source and free password cracking tools such as Hydra, SecretsDump, and CrackMapExec, and Python.
Utilized previously collected credentials to conduct password spraying attacks against the Domain Controller with tools such as CrackMapExec or Impacket.
Manually executed Crackmapexec to spray several endpoints with one combination of username and password using the Administrator account. This dataset contains the failed authentication events for 50+ endpoints.
This module executes PowerSploit's Invoke-Mimikatz.ps1 script (Mimikatz's DPAPI Module) and extract cached credentials from memory from the LSASS subsystem.
Operation Wocao enabled Wdigest by changing the HKLM\SYSTEM\\ControlSet001\\Control\\SecurityProviders\\WDigest registry value from 0 (disabled) to 1 (enabled); Wizard Spider modified WDigest UseLogonCredential to 1 to force credentials to be stored in clear text in memory.
During Operation Wocao, the threat actors enabled Wdigest by changing the HKLM\SYSTEM\ControlSet001\Control\SecurityProviders\WDigest registry value from 0 (disabled) to 1 (enabled). Wizard Spider has modified the Registry key HKLM\System\CurrentControlSet\Control\SecurityProviders\WDigest ... to force credentials to be stored in clear text in memory.
Example Attack Scenario: NTLM Relay Attack ... Responder used to carry out a poisoning attack against LLMNR, NBT-NS, and mDNS traffic, along with capturing authentication hashes. NTLMrelayX is then used to relay those authentication hashes to the list of relay targets.
It leverages Endpoint Detection and Response (EDR) data to identify specific command-line arguments associated with actions like ticket manipulation, kerberoasting, and password spraying.
Any users in the domain that have the Kerberos pre-authentication disabled enables red teams to request authentication data for any user in the Active Directory enforcing the domain controller to return the AS-REP message which is encrypted with the password hash of the user. Conducting offline cracking, the password of the user can retrieved which could be used for lateral movement.
Discovery
10 techniques
Discovery
AdFind can extract subnet information from Active Directory; actors used ipconfig /all, netsh.exe, ifconfig, arp, route, nbtstat, and related APIs/commands to gather IP, MAC, DNS, DHCP, gateway, proxy, routing, ARP, and adapter information.
Reconnaissance et mouvement latéral via crackmapexec / nxc
Internal SMB brute and scan across 192[.]168[.]0[.]0/24... Advanced IP Scanner run.
Multiple tools/actors are described using Active Directory/domain group enumeration, e.g., “AdFind can enumerate domain groups”, “net group "domain admins" /domain to enumerate domain groups”, “BloodHound can collect information about domain groups and members”, and “AD Explorer tool to enumerate groups on a victim's network.”
The content repeatedly describes malware and threat actors collecting OS version, computer name, architecture, CPU, memory, disk, BIOS, language, and other host details; examples include use of commands such as ver, systeminfo, hostname, uname -m, and WMI to gather host information.
The content is a long ATT&CK-style listing of groups and malware that can 'list files and directories,' 'search for files,' 'enumerate drives,' 'gather file metadata,' or 'browse file systems' on compromised hosts.
Multiple actors and tools are described enumerating domain users/admins via Windows net commands (e.g., net user /domain, net group "Domain Admins" /domain), LDAP/AD queries (e.g., Get-ADUser, Get-ADGroupMember), and AD enumeration utilities (e.g., AdFind, BloodHound, AD Explorer).
AdFind can enumerate domain users. APT41 used built-in net commands to enumerate domain administrator users. BloodHound can collect information about domain users, including identification of domain admin accounts.
Numerous entries mention enumerating drives, logical disks, disk type, free space, or volume information; examples include 'Babuk can enumerate disk volumes,' 'Cuba can enumerate local drives,' and 'TAINTEDSCRIBE can use DriveList to retrieve drive information.'
Reconnaissance et mouvement latéral via crackmapexec / nxc
Lateral Movement
8 techniques
Lateral Movement
«Латеральное движение: Remote Services (T1021, тактика Lateral Movement по MITRE ATT&CK) — RDP, SSH, SMB, WinRM».
Reconnaissance et mouvement latéral via crackmapexec / nxc
Reconnaissance et mouvement latéral via crackmapexec / nxc
Examples include 'Aquatic Panda used WMI for lateral movement in victim environments,' 'Deep Panda group is known to utilize WMI for lateral movement,' and 'Cinnamon Tempest has used Impacket for lateral movement via WMI.'
Both actors leveraged ProxyChains, SOCKS5 tunneling, and SSH for initial access, as well as additional tooling such as Chisel, CrackMapExec, Impacket, and Neo-reGeorg.
nmap и CrackMapExec для разведки и lateral movement (T1210).
NTLM-хеш используется для аутентификации на других хостах без знания пароля в открытом виде.
Annotations ID Technique Tactic T1550.003 Pass the Ticket Defense Evasion
Collection
2 techniques
Collection
Threat actors also deploy tools like Mimikatz, CrackMapExec, and Rclone to harvest network secrets and stage bulk file exfiltration
Example Attack Scenario: NTLM Relay Attack ... Responder used to carry out a poisoning attack against LLMNR, NBT-NS, and mDNS traffic, along with capturing authentication hashes. NTLMrelayX is then used to relay those authentication hashes to the list of relay targets.
Command and Control
2 techniques
Command and Control
The attackers used Certutil to download a suspected Ligolo tunneling tool... Execute Certutil to download an unknown file ... Execute PowerShell to download and execute content
The group relied on living-off-the-land tactics, abusing remote monitoring and management tools such as Atera, ScreenConnect, and SimpleHelp, alongside public utilities like LaZagne and CrackMapExec.
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.