Detection rules › Splunk

ESXi Audit Tampering

Status
production
Severity
medium
Group by
command, dest, user
Author
Raven Tait, Splunk
Source
github.com/splunk/security_content

This detection identifies the use of the esxcli system auditrecords commands, which can be used to tamper with logging on an ESXi host. This action may indicate an attempt to evade detection or hinder forensic analysis by preventing the recording of system-level audit events.

Known false positives

  • Limited false positives in most environments, however tune as needed.

MITRE ATT&CK coverage

TacticTechniques
Stealth
Defense Impairment

Rule body

name: ESXi Audit Tampering
id: c48a155b-2861-417a-813c-220f5272cf01
version: 5
creation_date: '2025-07-11'
modification_date: '2026-05-13'
author: Raven Tait, Splunk
status: production
type: TTP
description: This detection identifies the use of the esxcli system auditrecords commands, which can be used to tamper with logging on an ESXi host. This action may indicate an attempt to evade detection or hinder forensic analysis by preventing the recording of system-level audit events.
data_source:
    - VMWare ESXi Syslog
search: '`esxi_syslog` Message="*esxcli system auditrecords*" Message IN ("*remote*","*local*") NOT Message = "*[shell*" | rex field=_raw "Z (?<dest>[\w\.]+)\s" | rex field=_raw "[\w+]\]: (?<full_command>.*)" | rex field=full_command "\[(?<user>.*)]:\s(?<command>.*)" | stats min(_time) as firstTime max(_time) as lastTime count by dest user command | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `esxi_audit_tampering_filter`'
how_to_implement: This is based on syslog data generated by VMware ESXi hosts. To implement this search, you must configure your ESXi systems to forward syslog output to your Splunk deployment. These logs must be ingested with the appropriate Splunk Technology Add-on for VMware ESXi Logs, which provides field extractions and CIM compatibility.
known_false_positives: Limited false positives in most environments, however tune as needed.
references:
    - https://detect.fyi/detecting-and-responding-to-esxi-compromise-with-splunk-f33998ce7823
finding:
    title: Audit tampering activity on ESXi host $dest$.
    entity:
        field: dest
        type: system
        score: 50
analytic_story:
    - ESXi Post Compromise
    - Black Basta Ransomware
asset_type: Infrastructure
mitre_attack_id:
    - T1690
    - T1070
product:
    - Splunk Enterprise
    - Splunk Enterprise Security
    - Splunk Cloud
category: application
security_domain: endpoint

Stages and Predicates

Stage 1: search

`esxi_syslog` Message="*esxcli system auditrecords*" Message IN ("*remote*","*local*") NOT Message = "*[shell*"

Stage 2: rex

| rex field=_raw "Z (?<dest>[\w\.]+)\s"

Stage 3: rex

| rex field=_raw "[\w+]\]: (?<full_command>.*)"

Stage 4: rex

| rex field=full_command "\[(?<user>.*)]:\s(?<command>.*)"

Stage 5: stats

| stats min(_time) as firstTime max(_time) as lastTime count by dest user command

Stage 6: search

| `security_content_ctime(firstTime)`

Stage 7: search

| `security_content_ctime(lastTime)`

Stage 8: search

| `esxi_audit_tampering_filter`

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Messageeq"*[shell*"excludes:Message

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Messageeq
  • "*esxcli system auditrecords*"
field:"Message" kind:eq
Messagein
  • "*local*"
  • "*remote*"
field:"Message" kind:in
sourcetypein
  • vmw-syslog
  • vmware:esxlog*
field:"sourcetype" kind:in