DETECTION OVERVIEW
Risk Factors
Attackers that want to run remote commands on a Windows device are more likely to choose the built-in PsExec utility over the Impacket PsExec python script. But the Impacket script enables an attacker to easily compromise remote devices and move laterally across the network.
Category

Impacket is an open-source collection of tools for manipulating packets and network protocols such as SMB/CIFS. PsExec is a python script included in the Impacket toolset. An attacker with local administrator privileges inside the network next identifies a victim device they want to compromise. The attacker runs the Impacket PsExec script, which uploads a randomly-named executable file to the ADMIN$ share on the victim device. The script then sends a Microsoft remote procedure call (MS-RPC) request to the victim device over SMB to register a service through the Windows Service Control Manager. The service runs the executable file, which creates a named pipe. The named pipe enables the attacker to send input to the victim device and receive output through an interactive shell. Finally, the PsExec script deletes the files and the service to hide evidence of compromise.
Restrict remote access by users with local administrator credentials
Restrict adding domain user accounts to the local Administrator group
Reduce the number of users that have administrator privileges
Restrict file share access in Windows firewall settings to only authorized IP addresses
Learn how attackers use the Impacket tool to move laterally in encrypted east-west traffic. Discover how ExtraHop RevealX provides the crucial visibility to detect these hidden threats.
PsExec is a Windows Sysinternals utility that enables IT administrators to run commands and executable binary files on remote servers, but it can also be used for stealthy lateral movement.
Network analysis and visibility solutions remain underrepresented in enterprises. Find out why in this preview of a new Wave report.
ExtraHop® Named a Leader in First-Ever Gartner® Magic Quadrant™ for Network Detection and Response
Visit this resource for more information.
This analysis exposes the critical link between an organization's lack of internal visibility and the escalating cost of compromise, demanding an urgent re-evaluation of how core business assets are protected.
Learn why you need to be wary of the claims certain network detection and response providers make about their coverage against the MITRE ATT&CK framework.
Learn how NDR from RevealX helps security teams detect and investigate more adversary TTPs in the MITRE ATT&CK framework than rule-based tools.
