Detection rules › Sigma

Copy From Or To Admin Share Or Sysvol Folder

Severity
medium
Author
Florian Roth (Nextron Systems), oscd.community, Teymur Kheirkhabarov @HeirhabarovT, Zach Stanford @svch0st, Nasreddine Bencherchali
Source
upstream

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

MITRE ATT&CK coverage

TacticTechniques
Lateral MovementT1021.002 Remote Services: SMB/Windows Admin Shares
CollectionT1039 Data from Network Shared Drive
ExfiltrationT1048 Exfiltration Over Alternative Protocol

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: selection_target

or:
CommandLine|contains: '\Sysvol\'
CommandLine|contains: '\\\\*\\*$'

Stage 2: selection_other_tools

or:
Image|endswith: '\robocopy.exe'
Image|endswith: '\xcopy.exe'
OriginalFileName: XCOPY.EXE
OriginalFileName: robocopy.exe

Stage 3: all of selection_cmd_img

or:
Image|endswith: '\cmd.exe'
OriginalFileName: Cmd.Exe

Stage 4: all of selection_cmd_cli

CommandLine|contains: copy

Stage 5: all of selection_pwsh_img

or:
Image|contains: '\powershell.exe'
Image|contains: '\powershell_ise.exe'
Image|contains: '\pwsh.exe'
OriginalFileName: PowerShell.EXE
OriginalFileName: powershell_ise.exe
OriginalFileName: pwsh.dll

Stage 6: all of selection_pwsh_cli

or:
CommandLine|contains: ' cp '
CommandLine|contains: ' mi '
CommandLine|contains: ' move-item'
CommandLine|contains: ' mv '
CommandLine|contains: 'copy '
CommandLine|contains: copy-item
CommandLine|contains: 'cpi '
CommandLine|contains: 'move '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • cp corpus 5 (sigma 5)
  • mi corpus 2 (sigma 2)
  • move-item
  • mv corpus 2 (sigma 2)
  • \Sysvol\
  • \\\\*\\*$
  • copy corpus 3 (sigma 3)
  • copy corpus 11 (sigma 11)
  • copy-item corpus 4 (sigma 4)
  • cpi corpus 4 (sigma 4)
  • move corpus 2 (sigma 2)
Imageends_with
  • \cmd.exe corpus 92 (sigma 92)
  • \robocopy.exe corpus 5 (sigma 5)
  • \xcopy.exe corpus 5 (sigma 5)
Imagematch
  • \powershell.exe
  • \powershell_ise.exe
  • \pwsh.exe corpus 2 (sigma 2)
OriginalFileNameeq
  • Cmd.Exe corpus 32 (sigma 30, splunk 2)
  • PowerShell.EXE corpus 64 (sigma 60, splunk 4)
  • XCOPY.EXE corpus 4 (sigma 4)
  • powershell_ise.exe corpus 6 (sigma 6)
  • pwsh.dll corpus 72 (sigma 68, splunk 4)
  • robocopy.exe corpus 4 (sigma 4)