T1039 Sumo Logic CSE · Sumo

Detect Data from Network Shared Drive in Sumo Logic CSE

Adversaries may search network shares on compromised systems to find files of interest. Sensitive data can be collected from remote systems via shared network drives (host shared directory, network file server, etc.) that are accessible from the current system prior to exfiltration. Threat actors including APT28, RedCurl, Gamaredon Group, menuPass, Chimera, and BRONZE BUTLER have leveraged this technique using tools such as net use, Robocopy, xcopy, and custom malware to enumerate and bulk-copy documents, configuration files, and credentials from accessible SMB shares.

MITRE ATT&CK

Tactic
Collection
Technique
T1039 Data from Network Shared Drive
Canonical reference
https://attack.mitre.org/techniques/T1039/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
// Signal 1: Bulk file creation on UNC/SMB network paths (Sysmon Event 11)
(_sourceCategory="windows/sysmon" OR _sourceCategory="os/windows/sysmon")
| where EventID = "11"
| where TargetFilename matches "\\\\\\\\*"
| where TargetFilename matches "(?i)\\.(doc|docx|xls|xlsx|pdf|ppt|pptx|txt|csv|rtf|db|sql|kdbx|pfx|key|pem|conf|config|ini|bak|eml|msg|ost|pst)$"
| parse field=TargetFilename "\\\\\\\\*\\*" as ShareHost nodrop
| timeslice 2h
| stats count as FileCount, count_distinct(ShareHost) as UniqueShares, first(TargetFilename) as SampleFile, first(Image) as ProcessImage, first(CommandLine) as ProcessCmdLine by _timeslice, Computer, User
| where FileCount >= 25
| if (FileCount >= 100, "High", "Medium") as Severity
| "BulkNetworkShareWrite" as SignalType
| fields - _timeslice

// Signal 2: Share enumeration and bulk copy tools targeting UNC paths (Sysmon Event 1)
// Run separately and union results at dashboard level:
// (_sourceCategory="windows/sysmon" OR _sourceCategory="os/windows/sysmon")
// | where EventID = "1"
// | where (
//   (Image matches "(?i)net(1)?\.exe$" and CommandLine matches "(?i)(use|view)" and CommandLine matches "\\\\\\\\[a-zA-Z0-9]")
//   OR (Image matches "(?i)(robocopy|xcopy|forfiles)\.exe$" and CommandLine matches "\\\\\\\\[a-zA-Z0-9]")
//   OR (Image matches "(?i)(powershell|pwsh)\.exe$" and CommandLine matches "\\\\\\\\[a-zA-Z0-9]"
//       and CommandLine matches "(?i)(Get-ChildItem|Copy-Item|Get-Item|gci|\\-Recurse)")
// )
// | if (Image matches "(?i)(robocopy|xcopy|powershell|pwsh)", "High", "Medium") as Severity
// | if (Image matches "(?i)net(1)?\.exe", "NetworkShareMounting",
//   if (Image matches "(?i)(robocopy|xcopy|forfiles)\.exe", "BulkCopyFromShare", "PowerShellShareCollection")) as SignalType
// | fields _messageTime as EarliestTime, Computer, User, Image, CommandLine, ParentImage, SignalType, Severity
high severity medium confidence

Sumo Logic CSE detection for T1039 identifying bulk file collection from SMB/UNC network shares via Sysmon Event 11 (FileCreate) and process execution signals (Sysmon Event 1) covering net use, net view, robocopy, xcopy, forfiles, and PowerShell cmdlets targeting UNC paths. Bulk threshold of 25 files within a 2-hour timeslice triggers medium severity; 100+ files triggers high.

Data Sources

Windows Sysmon Operational Log (_sourceCategory=windows/sysmon)Sumo Logic Cloud SIEM Enterprise normalized Windows events

Required Tables

windows/sysmonos/windows/sysmon

False Positives & Tuning

  • Enterprise DFS namespace traversal by legitimate indexing services (Windows Search, SharePoint crawler) generating high file access counts against document library shares
  • Power users running approved robocopy or xcopy scripts for departmental data archival or SharePoint migration projects
  • Developers or DevOps engineers using PowerShell scripts with Get-ChildItem against build artifact shares during CI/CD pipeline runs
Download portable Sigma rule (.yml)

Other platforms for T1039


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Map and Enumerate Network Share with net use

    Expected signal: Sysmon Event ID 1: net.exe process with CommandLine 'net use Z: \\\\localhost\\C$ /persistent:no'. Sysmon Event ID 3: SMB connection to 127.0.0.1:445. Security Event 4648 if alternate credentials used. Security Event 5140 (network share accessed) on the target if Object Access auditing is enabled.

  2. Test 2Bulk Document Collection via Robocopy from Network Share

    Expected signal: Sysmon Event ID 1: robocopy.exe with CommandLine containing '\\\\localhost' and '/S'. Sysmon Event ID 11: Multiple file creation events in %TEMP%\df00tech-stage with .dll extension. Sysmon Event ID 3: SMB connection to 127.0.0.1:445 from robocopy.exe process.

  3. Test 3PowerShell Recursive Document Harvest from Network Share

    Expected signal: Sysmon Event ID 1: powershell.exe with CommandLine containing 'Get-ChildItem', '\\\\localhost', 'Copy-Item'. Sysmon Event ID 11: Multiple file creation events in %TEMP%\df00tech-ps-stage. Sysmon Event ID 3: SMB connection to 127.0.0.1:445. PowerShell ScriptBlock Logging Event ID 4104 will capture the full deobfuscated script showing UNC access pattern.

  4. Test 4Forfiles-based Targeted Extension Harvest from Share

    Expected signal: Sysmon Event ID 1: forfiles.exe with CommandLine containing '\\\\localhost' and '/S'. Sysmon Event ID 1 (child): cmd.exe spawned by forfiles.exe with copy command. Sysmon Event ID 11: File creation events in %TEMP%\df00tech-forfiles-stage.

Unlock Pro Content

Get the full detection package for T1039 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections