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.
Switches
Mirrors a tree, including deletions at the destination.
MediumCopies subfolders, including empty ones.
LowCopies subfolders, except empty ones.
LowCopies in restartable mode.
InfoMultithreaded copy, which moves data faster.
LowExcludes older files.
InfoCopies all file info, including security descriptors.
LowCommand lines to worry about
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.
- HighLOL-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)
- MediumCopy 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
- MediumPotential 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)
- MediumSuspicious 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.