Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How do you detect ESXi account creation and…
Threats, Abuse & Incident Response

How do you detect ESXi account creation and admin permission changes via ESXCLI?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Threats, Abuse & Incident Response

Detect ESXi account creation and admin permission changes by auditing ESXCLI use and reviewing host security logs for user and role changes. Alert on new local accounts, group membership changes, and any grant of administrative privileges outside approved change windows. Correlate the activity with the source host, admin session, and subsequent logins to confirm abuse.

Detecting ESXi account changes through ESXCLI

ESXCLI is useful here because it can expose the local account and role management activity that changed on the host, but detection should not rely on command history alone. Review host security logs and admin activity together so you can separate routine administration from unexpected account creation, privilege assignment, or group changes. If the host is part of a broader Linux-oriented detection pipeline, the Linux Detection and Response Guide is a useful reference for building the surrounding telemetry and response path.

What matters most is the change event, not just the command that caused it. A successful ESXCLI action that adds a local account, modifies a group, or assigns administrative rights should be treated as a security-relevant state transition, especially when it occurs outside an approved maintenance window or from an unusual source host. Correlating the event with the initiating session and subsequent logins helps distinguish sanctioned administration from abuse.

For practical detection, make the account and permission state explicit. Look for new local users, membership changes in administrative groups, and any role grant that increases effective host access. Keep the alert focused on the delta, because attackers often blend account creation and privilege changes into ordinary admin workflows to avoid attention.

Why ESXCLI activity becomes suspicious

ESXCLI is a legitimate management interface, so the signal comes from unusual outcomes and context. A normal admin session can still be high risk if it creates a persistent access path, such as a new local administrator account or a role change that outlives the maintenance task. The strongest detections are the ones that tie the administrative action to a specific host, user, and change record, then check whether a new login followed soon after. For a broader control model around privileged access and approval boundaries, the Privileged Access Management Guide is the most relevant internal reference.

Because ESXi is often managed by a small set of trusted operators, attackers who gain access may prefer account and privilege changes over noisy payloads. That makes the detection problem a mix of authorization abuse and persistence hunting. If you only alert on failed logins or obvious malware behavior, you can miss the quieter step where the attacker turns one-time access into durable administrative reach.

Good detection also depends on understanding which admin changes are expected. Role assignment, group modification, and account provisioning are not inherently malicious, but they become high-value events when they are rare, occur from unusual management sources, or are followed by logins that do not match normal operator patterns. The key question is whether the change expands who can administer the host, or merely records a routine change under an approved process.

How to validate and respond to a suspected abuse case

When you see a suspicious ESXCLI-driven change, validate three things in order: whether the account or role really exists now, whether the change fits an approved ticket or window, and whether the new access has already been used. That sequence matters because the first problem is state, the second is authorization, and the third is possible compromise. If the resulting access is overbroad or exposed to multiple hosts, use the Endpoint Privilege Management Guide as a reminder that standing admin rights should be minimized wherever operationally possible.

Response should include correlation, not just deletion. Check the source host, the admin session, and the next successful login so you can tell whether the change was followed by real use. If the account was unexpected, disable it, review neighboring roles and group memberships, and look for other persistence placed during the same session. If the change touched a privileged control path, rotate any credentials or access material that may have been exposed through that session.

In environments where privileged access is tightly controlled, the best detections are those that make privileged state changes easy to triage. Record who made the change, when it occurred, what exact privilege changed, and whether the activity aligned with a known change source. That gives analysts enough context to decide whether they are seeing routine host administration or the early stage of a compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1136 — Create AccountESXCLI account creation maps directly to adversary account creation behavior.
T1098 — Account ManipulationAdmin permission and group changes are account manipulation on the host.
Recommendation — Monitor host logs for unexpected local account creation and correlate it with admin sessions. Alert on privilege and group membership changes that expand ESXi access.
CIS Controls v8CIS-6 — Access Control ManagementRestricting and reviewing admin access is central to detecting unauthorized ESXi privilege changes.
Recommendation — Review privileged ESXi account changes and remove unapproved access promptly.
NIST SP 800-53 Rev 5AU-6 — Audit Review, Analysis, and ReportingDetection relies on reviewing host audit data for account and role changes.
IA-5 — Authenticator ManagementAccount creation and admin changes can require credential rotation and lifecycle review.
Recommendation — Correlate ESXCLI activity with audit records to identify suspicious privilege changes. Rotate exposed credentials and retire stale authenticators after unexpected admin changes.

Practitioner Guidance

What to verify: Verify that your ESXi telemetry can distinguish account creation, group membership changes, and role grants as separate events, not just generic administrative activity. If those changes are not individually visible, your alerting will be too coarse to trust.

Decision rule: If an ESXCLI change creates a new local account or grants admin rights outside a preapproved change path, treat it as a potential persistence event and investigate the follow-on logins before closing it as routine administration.

What practitioners underestimate: The risky part is often not the command itself, but the durable access it leaves behind. Once a privilege change succeeds, the question becomes whether that access was used, reused, or left in place longer than intended.

Practitioner takeaway: Strong ESXi detection depends on pairing command-level visibility with host state review, because the meaningful security signal is the creation or expansion of durable administrative access.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org