Netexec
- Capabilities
- Credential theftLateral movementPost exploitationReconnaissanceScanning
- Platforms
- Windows
NetExec is a dual-use network assessment and post-exploitation tool and the successor to CrackMapExec. It supports host and network-share discovery, SMB and Active Directory enumeration, credential validation, and remote operations against Windows environments. Administrators and penetration testers use it for security assessments, while threat actors repurpose it for internal reconnaissance, credential access, and lateral movement.
NetExec can authenticate using NTLM hashes and support remote command execution through Windows management interfaces. Its credential-access functionality includes DPAPI-protected data extraction and a Veeam module that queries stored backup credentials and decrypts them using DPAPI. These capabilities can expose credentials needed to access additional infrastructure.
NetExec has been used in intrusions associated with DarkLunnen, GOLD OGRE-linked Aur0ra operations, The Gentlemen, and SafePay. Observed uses include scanning internal subnets after VPN access, checking credentials, enumerating domain resources, and attempting remote execution. It is generally introduced after an operator obtains network access rather than through an intrinsic infection mechanism. Its presence alone does not establish malicious activity or attribution to a particular actor.
Associated threat actors
10 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
NetExec SMB scanning with Administrator NTLM hash, DPAPI cookie extraction, wmiexec command execution against German organization
The server contained NetExec alongside a “.nxc/” directory described as holding SMB credential databases.
“Active Directory Harvest via NetExec (nxc): Once inside the VPN tunnel, the toolchain immediately targeted the exact internal Domain Controller IP addresses listed in the firewall’s LDAP configuration table.”
“nxc / NetExec (CrackMapExec successor) ... SMB/AD enumeration, credential validation, lateral movement” | NetExec SMB scanning: nxc smb 192.168.10.0/24 (32 occurrences).
nxc.exe NetExec tool for system discovery, credential checks, and remote operations
+4 more in the app. View in Mallory
Techniques & procedures
54 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
3 techniques
Reconnaissance
Your first step is to dump the domain user list using tools like netexec or ldapsearch.
Cursor Agent a reçu pour tâche le scan des sous-réseaux internes avec Nmap ou NetExec.
“Structured FortiGate device scanning: IP, port, model, firmware, hostname, country.”
Resource Development
1 technique
Resource Development
Mythic/Athena, Sliver, Ligolo-ng, Chisel, NetExec, BloodHound
Initial Access
1 technique
Initial Access
«На этот раз... нам выдали учетные данные с правами пользователя домена... Первым делом проверяем выданные учетные данные с помощью NetExec». | «Проверить, нет ли учетных записей, уязвимых для атаки Pre2k... пароль часто совпадает с именем самой учетной записи без $.»
Execution
5 techniques
Execution
NetExec SMB scanning with Administrator NTLM hash, DPAPI cookie extraction, wmiexec command execution against German organization.
k0t made extensive use of NetExec’s built-in atexec (which uses the Windows Task Scheduler service) execution method for remote execution.
“NetExec can… Open a remote PowerShell instance… When instructed to execute with --cmd or –ps… runs either ‘cmd.exe’ or ‘powershell.exe.’”
“Runsvc.exe leverages randomly named pipes to communicate with netsvc.exe.”
k0t made extensive use of NetExec’s built-in smbexec (which uses the Windows Service Control Manager over SMB) execution method for remote execution.
Persistence
3 techniques
Persistence
k0t made extensive use of NetExec’s built-in atexec (which uses the Windows Task Scheduler service) execution method for remote execution.
«На этот раз... нам выдали учетные данные с правами пользователя домена... Первым делом проверяем выданные учетные данные с помощью NetExec». | «Проверить, нет ли учетных записей, уязвимых для атаки Pre2k... пароль часто совпадает с именем самой учетной записи без $.»
smbexec, Remote service creation, Service Creation events (7045)... A distinctive forensic indicator of Impacket-based execution is the creation of services with names containing Unix epoch timestamps.
Privilege Escalation
5 techniques
Privilege Escalation
k0t made extensive use of NetExec’s built-in atexec (which uses the Windows Task Scheduler service) execution method for remote execution.
«На этот раз... нам выдали учетные данные с правами пользователя домена... Первым делом проверяем выданные учетные данные с помощью NetExec». | «Проверить, нет ли учетных записей, уязвимых для атаки Pre2k... пароль часто совпадает с именем самой учетной записи без $.»
Luke Jennings did in 2014 when he developed the Access Token impersonation attack... if attackers get hold of that token and create a new process linking that token, the system will treat the process as being spawned by the usurped account.
smbexec, Remote service creation, Service Creation events (7045)... A distinctive forensic indicator of Impacket-based execution is the creation of services with names containing Unix epoch timestamps.
Infection chains involve the use of red team utilities like NetExec, RelayKing, TaskHound, PrivHound, and CertiHound to perform Active Directory discovery, certificate abuse, privilege escalation, and file share discovery.
Stealth
2 techniques
Stealth
«На этот раз... нам выдали учетные данные с правами пользователя домена... Первым делом проверяем выданные учетные данные с помощью NetExec». | «Проверить, нет ли учетных записей, уязвимых для атаки Pre2k... пароль часто совпадает с именем самой учетной записи без $.»
Luke Jennings did in 2014 when he developed the Access Token impersonation attack... if attackers get hold of that token and create a new process linking that token, the system will treat the process as being spawned by the usurped account.
Credential Access
19 techniques
Credential Access
`nxc smb 192.168.13.110 ... --lsa` and `secretsdump.py ...` are used to retrieve hashes for Administrator, krbtgt, service accounts, and machine accounts from the domain controller.
Mimikatz – Seen used to dump cleartext passwords and NTLM hashes from LSASS.
Post-exploitation: evil-winrm, dploot, donpapi, nxc –sam/–lsa on US target.
Over the following days, they expanded access through ... LSASS/NTDS dumping activity
Post-exploitation: evil-winrm, dploot, donpapi, nxc –sam/–lsa on US target.
...Different stages of the workflow got their own prompt: network scanning, web enumeration, Active Directory enumeration, credential enumeration, exploitation, privilege escalation.
[The attackers] used NetExec for Active Directory discovery, credential spraying, and remote execution.
The command history shows the installation and execution of tools targeting Windows authentication and Active Directory, including Responder, NTLM relay-related tools, Impacket, and NetExec.
"the escalation path was human nature and password re-use" followed by `nxc smb ... -u Administrator -H ... --lsa` and `secretsdump.py ... -hashes ...`, which outputs account NTLM hashes.
“Our SYSVOL has Groups.xml with cpassword” and “Microsoft encrypted the passwords using AES, but then made the private encryption key public.”
XenAllPasswordPro mass deployment via SMB.
“dump credentials… from… web browsers… [T1555.003]”
“...dump credentials stored in the Windows Credential Manager… [T1555.004].”
This was followed by Kerberos relay attacks and exploitation of CVE-2025-33073, highlighting the risk of credential theft from internal web applications... Apply identity hardening to reduce the feasibility and blast radius of relay-style authentication attacks.
ntlmrelayx, Responder. NTLM coercion: nxc smb hostx.txt -M coerce_plus.
This includes Impacket, KrbRelayX, Coercer, BloodHound.py, NetExec, Kerbrute, and Metasploit... Observed malicious activity included downloading credentials, enumerating Kerberos usernames via Kerbrute...
« Énumération : NetExec (LDAP/SMB), ASREPRoasting, Kerberoasting ».
« Énumération : NetExec (LDAP/SMB), ASREPRoasting, Kerberoasting ».
the latest pull request I did on that module allows requesting a PFX via a scheduled task on behalf of another user... Doing so, you will be able to obtain a certificate that you can use to authenticate on the Active Directory network as the usurped user.
Discovery
13 techniques
Discovery
The SoftPerfect Network Scanner (netscan.exe) was deployed to identify accessible systems on the network. Additionally, NetExec (nxc.exe) was used for network enumeration and credential validation.
« Découverte réseau et Active Directory (BloodHound, Nmap, NetExec) » ; « des prompts en russe [...] demandant notamment l’énumération de serveurs backup, NAS et virtualisation »
The next step was to find where this user was actively logged in on the internal network. By utilising our Domain Admin rights, we queried active logon sessions on the workstation via netexec --loggedon-users module over SMB.
esxi_finder.py identifie les hyperviseurs ESXi et serveurs vCenter en scannant les ports 443 et 902, en lisant les certificats TLS et en interrogeant /sdk, /ui/ et /.
Énumération du domaine AD (droits utilisateur) via le collecteur BloodHound de NetExec.
NetExec was used to enumerate LDAP domain admin groups.
Operators swept file servers and every reachable workstation for documents.
Attempt anonymous LDAP queries to dump the domain user list.
Reconnaissance interne via nxc / NetExec contre les systèmes internes, ciblant notamment les serveurs LDAP/Active Directory
Operators enumerated SMB shares and permissions across every reachable host in each victim network.
“[The operator] retrieved password policy details.”
The attackers later ran... nltest /domain_trusts.
Using NetExec via the SMB protocol, operators enumerated security software for discovery.
Lateral Movement
7 techniques
Lateral Movement
They then used NetExec and Impacket to attempt authentication to services such as SMB, LDAP, RDP, and WinRM, seeking access to multiple hosts and attempting lateral movement.
They removed RDP hijacking but left the RDP shadow feature that still lets a local admin view and interact with another user’s session... it still grants access to the target’s remote desktop session which is enough to do some damage.
T1021.002 — SMB/Windows Admin Shares (Lateral Movement)
A set of events related the usage of NetExec attacker toolkit.
The activity against the German network used one Administrator NTLM hash across SMB and WMI.
Mimikatz PassTheTicket CommandLine Parameters ... Pass the Ticket ... Rubeus Command Line Parameters ... Pass the Ticket, Kerberoasting, AS-REP Roasting ... Rubeus Kerberos Ticket Exports Through Winlogon Access ... Pass the Ticket ... Windows Process With NetExec Command Line Parameters ... Pass the Ticket, Kerberoasting, AS-REP Roasting
T1570 — Lateral Tool Transfer (Lateral Movement)
Collection
3 techniques
Collection
The Public share on the other hand sounds much more interesting... Total files found: 1... 'SQL Server Procedures.pdf'... On the second page we get something even better — credentials to authenticate to the database.
This was followed by Kerberos relay attacks and exploitation of CVE-2025-33073, highlighting the risk of credential theft from internal web applications... Apply identity hardening to reduce the feasibility and blast radius of relay-style authentication attacks.
ntlmrelayx, Responder. NTLM coercion: nxc smb hostx.txt -M coerce_plus.
Command and Control
1 technique
Command and Control
upload / download — allows you to upload files to the destination host; ... nxc smb office.local -u admin -p admin --put-file /root/RpcMotion.exe c:\rpcmotion.exe
Recent activity
40 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.