Tar.exe

Used by Windows to extract and create archives.

Paths

  • C:\Windows\System32\tar.exe
  • C:\Windows\SysWOW64\tar.exe

Commands

ADS

Compress one or more files to an alternate data stream (ADS).

Use case: Can be used to evade defensive countermeasures, or to hide as part of a persistence mechanism

Privileges: User

tar -cf {PATH}:ads {PATH_ABSOLUTE:folder}

ADS

Decompress a compressed file from an alternate data stream (ADS).

Use case: Can be used to evade defensive countermeasures, or to hide as part of a persistence mechanism

Privileges: User

tar -xf {PATH}:ads

Copy

Extracts archive.tar from the remote (internal) host to the current host.

Use case: Copy files

Privileges: User

tar -xf {PATH_SMB:.tar}

Detection

Resources