IMPACKET
SECRETSDUMP
NTLMRELAYX
S0357
ToolsCredential AccessLateral MovementOctober 11, 2026•11 min read

Impacket: The Python Toolkit Behind Active Directory Intrusions

A collection of Python classes for low-level network protocols — shipped with example scripts that implement the most common attacks against SMB, Kerberos and NTLM in Active Directory.

Scroll

Impacket is an open-source collection of Python classes for constructing and parsing low-level network protocols — SMB, MSRPC/DCE-RPC, Kerberos, LDAP — shipped with example scripts that implement real attacks against those protocols. It is a legitimate staple for network engineers, protocol researchers and pentesters, but its example scripts (secretsdump, wmiexec, psexec, smbexec, ntlmrelayx, GetUserSPNs, GetNPUsers) are among the most abused tools in Active Directory intrusions for credential access, lateral movement and NTLM relay. MITRE ATT&CK tracks it as Software entry S0357. It was created by SecureAuth’s Core Security research team and, since 2023, is maintained by Fortra.

Key Scripts

Real-World Abuse

CISA/FBI/NSA, advisory AA22-277A (October 2022)

APT actors used Impacket’s wmiexec.py and smbexec.py — semi-interactive shells over WMI and SMB — with already-compromised credentials to reach a higher-privileged service account at a U.S. Defense Industrial Base organisation. Data was exfiltrated with a custom tool, CovalentStealer. CISA did not attribute the activity to a named group.

Red Canary reports Impacket used by Scattered Spider and Fog ransomware affiliates for lateral movement and credential access, often alongside Cobalt Strike and Mimikatz; secretsdump.py is the single most commonly observed Impacket script in their customer environments. Confirm any further group attributions against MITRE’s live S0357 “Groups” tab.

MITRE ATT&CK Mapping

Note

Official Software entry S0357; items below follow directly from the named scripts’ function.

TacticTechniqueScript
Credential AccessT1003.003 NTDSsecretsdump
Credential AccessT1003.006 DCSyncsecretsdump
Credential AccessT1557.001 LLMNR/NBT-NS & SMB Relayntlmrelayx
ExecutionT1047 WMIwmiexec
Lateral MovementT1021.002 SMB/Admin Sharessmbexec, psexec
ExecutionT1569.002 Service Executionpsexec
Credential AccessT1558.003 KerberoastingGetUserSPNs
Credential AccessT1558.004 AS-REP RoastingGetNPUsers

Detection & Mitigation

Defend Active Directory

Mjolnir Security helps organisations detect Impacket-driven credential theft, NTLM relay and lateral movement.

Managed Detection & ResponseActive Directory SecurityThreat HuntingIncident ResponsePurple Teaming
  • Managed Detection and Response Monitoring for ADMIN$ staging, DCSync and NTLM-relay activity.
  • Active Directory Security Review Hardening SMB/LDAP signing, NTLM, and service-account hygiene.
  • 24/7 Incident Response Containment when AD credential theft is detected. Call +1 833 403 5875.
Written by: Mjolnir Security  |  Published: October 11, 2026