Suspicious PowerShell Get Current User

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects the use of PowerShell to identify the current logged user.

Severity

Attention

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "[System.Environment]::UserName,$env:UserName,[System.Security.Principal.WindowsIdentity]::GetCurrent()" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

frack113