PsExec
A legitimate Microsoft tool for running commands on remote systems. Attackers often use it for lateral movement because it is trusted and looks like routine admin work.
Reading Time:
4 min
PsExec is a command-line tool from Microsoft’s Sysinternals suite that lets an administrator run programs on remote Windows systems. It is legitimate and widely used for administration and troubleshooting. It is also a favourite of attackers, because it is trusted, signed and looks like routine work.
Administrators use it to run commands or scripts on remote machines without logging in to them, to open a remote command prompt and to run programs with elevated rights. It is simple, fast and requires no software to be installed in advance.
It requires an account with administrator rights on the target machine.
No. It is a legitimate tool. Security products usually do not block it, which is exactly why attackers use it. The same file can be an administrator’s convenience or an attacker’s way to move through the network.
An attacker with administrator credentials, or a stolen hash, runs PsExec against another machine to execute commands there, then repeats the process to reach more systems. It turns one compromised account into movement across the network.
The tool is legitimate and the connection uses valid credentials. Whether the use is normal depends on who ran it, from which machine and against which targets, not on the tool itself.
A phished employee’s machine is used to find an administrator’s credentials. The attacker runs PsExec from that machine against a file server, then against an application server, then against a backup system. Each step is a valid administrator action, and each is a few minutes after the last.
Attackers use tools that are already present and trusted, such as PsExec or built-in scripting, instead of bringing their own malware. This avoids detection by tools that look for malicious files, and it makes behaviour the main signal.
PowerShell remoting, Windows Remote Management and other remote administration tools do similar things, and attackers use them too. Blocking one tool does not remove the technique.
It helps, but it is not a complete answer, because the same result can be reached with other tools. The more lasting protection is to limit who has administrator rights, where those accounts can sign in and to watch how they are used.
Sharelock monitors identity behaviour across systems, so a valid administrator account that suddenly runs remote executions it has never run before, or from an unusual machine, stands out against its normal pattern.