Adversaries may look for folders and drives shared on remote systems as a means of identifying sources of information to gather as a precursor for Collection and to identify potential systems of interest for Lateral Movement. Networks often contain shared network drives and folders that enable users to access file directories on various systems across a network.
File sharing over a Windows network occurs over the SMB protocol. [1][2]Net can be used to query a remote system for available shared drives using the net view \\\\remotesystem command. It can also be used to query shared drives on the local system using net share. For macOS, the sharing -l command lists all shared points used for smb services.
Top 11%of all ATT&CK techniques for number of groups
16 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
During Operation Wocao, threat actors discovered network disks mounted to the system using netstat.1
2017–2019
All 4 campaigns for this technique
57 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
MITRE names one behaviour worth catching for this technique and breaks it into 3 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Behavior-chain detection for T1135 Network Share Discovery across Windows, Linux, and macOS
Enterprise
3 platforms
AN0513 · Windows
Process or script enumerates network shares via CLI (net view/net share, PowerShell Get-SmbShare/WMI) or OS APIs (NetShareEnum/ srvsvc.NetShareEnumAll RPC) → bursts of outbound SMB/RPC connections (445/139, \\host\IPC$ / srvsvc) to many hosts inside a short window → optional follow-on file listing or copy operations.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
Pipes (e.g., \PIPE\spoolss) normally accessed by management agents; exclude from alerts.
AN0514 · Linux
CLI tools (smbclient -L, smbmap, rpcclient, nmblookup) or custom scripts enumerate SMB shares on many internal hosts → corresponding SMB connections (445/139) captured by Zeek/Netflow within a short window.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
connection: TCP connections to ports 139/445 to multiple hosts
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
Field
What you tune
BurstHostThreshold
Minimum unique hosts to flag (e.g., ≥5).
TimeWindow
Correlation window between tool exec and SMB fan-out (default 10m).
ApprovedInventoryHosts
IPs of vulnerability scanners or config mgmt systems.
AN0515 · macOS
Use of native/mac tools (sharing -l, smbutil view, mount_smbfs) or scripts to enumerate SMB shares across many hosts, followed by outbound SMB connections observed in PF/Zeek logs.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
Enable Windows Group Policy “Do Not Allow Anonymous Enumeration of SAM Accounts and Shares” security setting to limit users who can enumerate network shares.
Tests12Executorspowershell 6 · command_prompt 3 · sh 2 · bash 1Need elevation2 of 12Have prerequisites6Have cleanup2Platformsmacos, linux, windows
Attack Commandsrun with shelevation required (root or admin)
smbstatus --shares
Dependenciesrun with sh
Description
Package with smbstatus (samba) must exist on device
Check Prereq Commands
if #{package_checker} > /dev/null; then exit 0; else exit 1; fi
Get Prereq Commands
#{package_installer}
GUID77e468a6-3e5c-45a1-9948-c4b5603747cb
04
Network Share Discovery command prompt
windows
command_prompt
—
—
—
Network Share Discovery utilizing the command prompt. The computer name variable may need to be modified to point to a different host
Upon execution available network shares will be displayed in the powershell session
Inputs
Name
Description
Type
Default Value
computer_name
Computer name to find a mount on.
string
localhost
Attack Commandsrun with command_prompt
net view \\#{computer_name}
GUID20f1097d-81c1-405c-8380-32174d493bbb
05
Network Share Discovery PowerShell
windows
powershell
—
—
—
Network Share Discovery utilizing PowerShell. The computer name variable may need to be modified to point to a different host
Upon execution, available network shares will be displayed in the powershell session
Attack Commandsrun with powershell
get-smbshare
GUID1b0814d1-bb24-402d-9615-1b20c50733fb
06
View available share drives
windows
command_prompt
—
—
—
View information about all of the resources that are shared on the local computer Upon execution, available share drives will be displayed in the powershell session
Attack Commandsrun with command_prompt
net share
GUIDab39a04f-0c93-4540-9ff2-83f862c385ae
07
Share Discovery with PowerView
windows
powershell
—
1
—
Enumerate Domain Shares the current user has access. Upon execution, progress info about each share being scanned will be displayed.
if ((Get-WmiObject -Class Win32_ComputerSystem).PartofDomain) {exit 0} else {exit 1}
Get Prereq Commands
"Join system to domain"
GUIDb1636f0a-ba82-435c-b699-0d78794d8bfd
08
PowerView ShareFinder
windows
powershell
—
1
—
PowerView is a PowerShell tool to gain network situational awareness on Windows domains. ShareFinder finds (non-standard) shares on machines in the domain.
Network Share Discovery utilizing the dir command prompt. The computer ip variable may need to be modified to point to a different host ip
Upon execution available network shares will be displayed in the commandline session
Inputs
Name
Description
Type
Default Value
computer_ip
Computer IP to find a mount on.
string
127.0.0.1
Attack Commandsrun with command_prompt
dir \\#{computer_ip}\c$
dir \\#{computer_ip}\admin$
dir \\#{computer_ip}\IPC$
GUID13daa2cf-195a-43df-a8bd-7dd5ffb607b5
11
Enumerate All Network Shares with SharpShares
windows
powershell
—
1
Yes
SharpShares is a command line tool that can be integrated with Cobalt Strike's execute-assembly module, allowing for the enumeration of network shares.
This technique has been utilized by various ransomware groups, including BianLian.
Reference
Snaffler is an open-source tool that has been used by various threat groups, including Scattered Spider/Muddled Libra, to enumerate accessible shares and credential-containing files within a domain.
Reference
Detects the initial execution of "cmd.exe" which spawns "explorer.exe" with the appropriate command line arguments for opening the "My Computer" folder.
Identifies execution of network share enumeration commands (smbutil, showmount) that can be leveraged by adversaries to discover accessible SMB and NFS resources, supporting internal reconnaissance and potential lateral movement.
The following analytic detects a source computer accessing Windows administrative shares (C$, Admin$, IPC$) on 30 or more remote endpoints within a 5-minute window. (...)
The following analytic detects a high volume of Kerberos service ticket requests, specifically more than 30, from a single source within a 5-minute window. (...)