T1033 · System Owner/User Discovery

GetCurrent User with PowerShell

  • Windows
  • Investigative Coverage

About this detection

The following analytic detects the execution of powershell.exe with command-line arguments invoking the GetCurrent method of the WindowsIdentity .NET class. This detection leverages data from Endpoint Detection and Response (EDR) agents, focusing on process names and command-line executions. This activity is significant as adversaries may use this method to identify the logged-in user on a compromised endpoint, aiding in situational awareness and Active Directory discovery. If confirmed malicious, this could allow attackers to gain insights into user context, potentially facilitating further exploitation and lateral movement within the network.

Sysmon event coverage

  • ProcessCreate

Sysmon XML

Download XML

Loading configuration…