LOLBAS. GitHub
LIVING OFF THE LAND / OS BINARIES

Makecab.exe

View source

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

04COMMAND EXAMPLES
03ATT&CK TECHNIQUES
02DETECTION RESOURCES
03CAPABILITIES
01 / TRADECRAFT

Command reference

4 examples

ADS2

EXAMPLE 01T1564.004

Compresses the target file into a CAB file stored in the Alternate Data Stream (ADS) of the target file.

COMMAND
makecab {PATH_ABSOLUTE:.exe} {PATH_ABSOLUTE}:autoruns.cab
USE CASE
Hide data compressed into an alternate data stream
PRIVILEGES
User
OPERATING SYSTEM
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Type · Compression
EXAMPLE 02T1564.004

Compresses the target file into a CAB file stored in the Alternate Data Stream (ADS) of the target file.

COMMAND
makecab {PATH_SMB:.exe} {PATH_ABSOLUTE}:file.cab
USE CASE
Hide data compressed into an alternate data stream
PRIVILEGES
User
OPERATING SYSTEM
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Type · Compression

Download1

EXAMPLE 01T1105

Download and compresses the target file and stores it in the target file.

COMMAND
makecab {PATH_SMB:.exe} {PATH_ABSOLUTE:.cab}
USE CASE
Download file and compress into a cab file
PRIVILEGES
User
OPERATING SYSTEM
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Type · Compression

Execute1

EXAMPLE 01T1036

Execute makecab commands as defined in the specified Diamond Definition File (.ddf); see resources for the format specification.

COMMAND
makecab /F {PATH:.ddf}
USE CASE
Bypass command-line based detections
PRIVILEGES
User
OPERATING SYSTEM
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Type · Compression
02 / ON DISK

Known paths

C:\Windows\System32\makecab.exe
C:\Windows\SysWOW64\makecab.exe
03 / DEFENSIVE INTELLIGENCE

Detection & indicators

2 resources

Indicators & detection notes

  • IOC

    Makecab retrieving files from Internet

  • IOC

    Makecab storing data into alternate data streams

FURTHER READING

Research & resources

COMMUNITY RESEARCH

Acknowledgements

Oddvar Moe@oddvarmoe