Skip to content
WETNav

Collection · Windows

robocopy.exe

Robust File Copy

A powerful file copy tool with mirror and multithread options. Used to stage and collect data and to copy over admin shares, so large or share-to-share copies are worth a look.

Legitimate use

Admins use it to copy, mirror and back up folders and shares.

Worst caseMedium

Switches

/mir

Mirrors a tree, including deletions at the destination.

Medium
/e

Copies subfolders, including empty ones.

Low
/s

Copies subfolders, except empty ones.

Low
/z

Copies in restartable mode.

Info
/mt

Multithreaded copy, which moves data faster.

Low
/xo

Excludes older files.

Info
/copyall

Copies all file info, including security descriptors.

Low

Command lines to worry about

  • Medium

    Share-to-share copy

    robocopy moves data between two remote shares. Check what folder is being collected and where it is going.

    Detection regexrobocopy(\.exe)?\s+.*\\\\[^\s\\]+\\[^\s]+\s+\\\\[^\s\\]+\\

    T1039T1074.001

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.
  • Security5145Detailed file share access on the source or target share.
  • Sysmon11Files created at the destination.

Community detections

4 SigmaHQ rules for robocopy.exe. The explainer checks every pasted command line against all of them.

  • High
    LOL-Binary Copied From System Directory

    Detects a suspicious copy operation that tries to copy a known LOLBIN from system (System32, SysWOW64, WinSxS) directories to another on disk in order to bypass detections based on locations.

    T1036.003by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Copy From Or To Admin Share Or Sysvol Folder

    Detects a copy command or a copy utility execution to or from an Admin share or remote

    T1039T1048T1021.002by Florian Roth (Nextron Systems), oscd.community, Teymur Kheirkhabarov @HeirhabarovT, Zach Stanford @svch0st, Nasreddine Bencherchali

  • Medium
    Potential Browser Data Stealing

    Adversaries may acquire credentials from web browsers by reading files specific to the target browser. Web browsers commonly save credentials such as website usernames and passwords so that they do not need to be entered manually in the future. Web browsers typically store the credentials in an encrypted format within a credential store.

    T1555.003by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Suspicious Copy From or To System Directory

    Detects a suspicious copy operation that tries to copy a program from system (System32, SysWOW64, WinSxS) directories to another on disk. Often used to move LOLBINs such as 'certutil' or 'desktopimgdownldr' to a different location with a different name in order to bypass detections based on locations.

    T1036.003by Florian Roth (Nextron Systems), Markus Neis, Tim Shelton (HAWK.IO), Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.