Makecab.exe
Binary to package existing files into a cabinet (.cab) file
Paths
C:\Windows\System32\makecab.exeC:\Windows\SysWOW64\makecab.exe
Commands
ADS
Compresses the target file into a CAB file stored in the Alternate Data Stream (ADS) of the target file.
Use case: Hide data compressed into an alternate data stream
Privileges: User
makecab {PATH_ABSOLUTE:.exe} {PATH_ABSOLUTE}:autoruns.cab
ADS
Compresses the target file into a CAB file stored in the Alternate Data Stream (ADS) of the target file.
Use case: Hide data compressed into an alternate data stream
Privileges: User
makecab {PATH_SMB:.exe} {PATH_ABSOLUTE}:file.cab
Download
Download and compresses the target file and stores it in the target file.
Use case: Download file and compress into a cab file
Privileges: User
makecab {PATH_SMB:.exe} {PATH_ABSOLUTE:.cab}
Execute
Execute makecab commands as defined in the specified Diamond Definition File (.ddf); see resources for the format specification.
Use case: Bypass command-line based detections
Privileges: User
makecab /F {PATH:.ddf}
Detection
- Sigma: https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_susp_alternate_data_streams.yml
- Elastic: https://github.com/elastic/detection-rules/blob/12577f7380f324fcee06dab3218582f4a11833e7/rules/windows/defense_evasion_misc_lolbin_connecting_to_the_internet.toml
- IOC: Makecab retrieving files from Internet
- IOC: Makecab storing data into alternate data streams