Skip to content
WETNav

Credential access · Windows · LOLBAS

esentutl.exe

Extensible Storage Engine utility

Maintains ESE databases. Its copy mode can read locked files through VSS, which is used to grab NTDS.dit or a locked hive, and it can copy files in and out as a transfer tool.

Legitimate use

Admins use it to defragment and repair ESE databases such as Exchange and AD.

Worst caseCritical

Switches

/y

Copy mode. Copies a source file, and with /vss can read a locked file.

High
/vss

Reads the source through a volume shadow copy, bypassing the lock on files like NTDS.dit.

High
/d<value>

The destination for a copy.

Low
/o

Suppresses the logo, often present in scripted copies.

Info

Command lines to worry about

  • Critical

    NTDS.dit copied through VSS

    esentutl /y /vss reads NTDS.dit through a shadow copy even while it is locked. A direct route to the AD credential database on a DC.

    Detection regexesentutl(\.exe)?\s+.*\/y\b.*\/vss\b.*ntds(\.dit)?|esentutl(\.exe)?\s+.*\/vss\b.*ntds(\.dit)?.*\/d

    T1003.003

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.
  • Sysmon11File created at the copy destination.

Community detections

3 SigmaHQ rules for esentutl.exe. The explainer checks every pasted command line against all of them.

  • High
    Copying Sensitive Files with Credential Data

    Files with well-known filenames (sensitive files with credential data) copying

    T1003.002T1003.003by Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community

  • Medium
    Esentutl Steals Browser Information

    One way Qbot steals sensitive information is by extracting browser data from Internet Explorer and Microsoft Edge by using the built-in utility esentutl.exe

    T1005by frack113

  • Medium
    Potential Browser Data Stealing

    Adversaries may acquire credentials from web browsers by reading files specific to the target browser. Web browsers commonly save credentials such as website usernames and passwords so that they do not need to be entered manually in the future. Web browsers typically store the credentials in an encrypted format within a credential store.

    T1555.003by Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.