Suspicious PowerShell Get Current User
Last updated on:
In this page
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,Action1.DOMAIN,Action1.PATH,Action1.USERNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
frack113


