Identifier / Programs / Windows
diantz.exe
Package existing files into a cabinet (.cab) file. Windows commands reference
LOLBAS ADS, Download, Execute 3 ATT&CK techniques 3 documented commands
How diantz.exe is abused
ADS T1564.004 Hide Artifacts: NTFS File Attributes
Download T1105 Ingress Tool Transfer
Execute T1036 Masquerading
/fA file with diantz directives (may be repeated). Windows commands referenceEach abuse is LOLBAS's category and the options and words it uses; the full write-up is on LOLBAS's page for diantz.exe.
3 documented commands
ADS T1564.004 Hide Artifacts: NTFS File Attributes User privileges
Compress a file (first argument) into a CAB file stored in the Alternate Data Stream (ADS) of the target file.
diantz.exe {PATH_ABSOLUTE:.exe} {PATH_ABSOLUTE}:targetFile.cabIdentifyTrips 1 Sigma rule: mediumSuspicious Diantz Alternate Data Stream Execution by frack113
Download T1105 Ingress Tool Transfer User privileges
Download and compress a remote file and store it in a CAB file on local machine.
diantz.exe {PATH_SMB:.exe} {PATH_ABSOLUTE:.cab}IdentifyTrips 1 Sigma rule: mediumSuspicious Diantz Download and Compress Into a CAB File by frack113
Execute T1036 Masquerading User privileges
Execute diantz directives as defined in the specified Diamond Definition File (.ddf); see resources for the format specification.
diantz /f {PATH:.ddf}IdentifyTrips no Sigma process-creation rule.
2 of the 3 commands the identifier reads trip a Sigma process-creation rule; 1 trips none. These commands and their descriptions are from LOLBAS’s entry for diantz.exe, by Tamir Yehuda, at commit 2056cb766250 of 2026-09-26, under the GPL-3.0 and LOLBAS’s notice, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on LOLBAS’s page for diantz.exe. The identifier reads each with LOLBAS’s placeholders filled in: a URL as https://example.com/file, a share as \\192.0.2.10\share\file, a path as C:\Data\file and a command as calc.exe.
What detects it
Options
Show every option of diantz.exe
/fA file with diantz directives (may be repeated)./dDefines variable with specified value./lLocation to place destination (default is current directory)./vSet debugging verbosity level (0=none,...,3=full)./?Displays help at the command prompt.