LoFP LoFP / limited false positives in most environments after initial setup, however tune as needed.

Techniques

Sample rules

ESXi User Granted Admin Role

Description

This detection identifies when a user is granted the Administrator role on an ESXi host. Assigning elevated privileges is a critical action that can indicate potential malicious behavior if performed unexpectedly. Adversaries who gain access may use this to escalate privileges, maintain persistence, or disable security controls.

Detection logic

`esxi_syslog` Message="*esxcli system permission set*" AND Message="*role Admin*" 
| rex field=_raw "\]: \[(?<user>\w+)\]:(?<command>.+)" 
| rex field=_raw "--id (?<target_user>\w+)" 
| rex field=_raw "Z (?<dest>[\w\.]+)\s" 
| stats min(_time) as firstTime max(_time) as lastTime count by dest user command target_user 
| `security_content_ctime(firstTime)` 
| `security_content_ctime(lastTime)` 
| `esxi_user_granted_admin_role_filter`