Makecab.exe

Binary to package existing files into a cabinet (.cab) file

Paths

  • C:\Windows\System32\makecab.exe
  • C:\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

Resources