Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 2.53 KB

T1135.md

File metadata and controls

82 lines (55 loc) · 2.53 KB

T1135 - Network Share Discovery

Networks often contain shared network drives and folders that enable users to access file directories on various systems across a network.

Windows

File sharing over a Windows network occurs over the SMB protocol. (Citation: Wikipedia Shared Resource) (Citation: TechNet Shared Folder)

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.

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.

Mac

On Mac, locally mounted shares can be viewed with the df -aH command.

Atomic Tests


Atomic Test #1 - Network Share Discovery

Network Share Discovery

Supported Platforms: macOS, Linux

Inputs

Name Description Type Default Value
computer_name Computer name to find a mount on. string computer1

Run it with sh!

df -aH
smbutil view -g //#{computer_name}
showmount #{computer_name}


Atomic Test #2 - Network Share Discovery command prompt

Network Share Discovery utilizing the command prompt

Supported Platforms: Windows

Inputs

Name Description Type Default Value
computer_name Computer name to find a mount on. string computer1

Run it with command_prompt!

net view \\#{computer_name}


Atomic Test #3 - Network Share Discovery PowerShell

Network Share Discovery utilizing PowerShell

Supported Platforms: Windows

Inputs

Name Description Type Default Value
computer_name Computer name to find a mount on. string computer1

Run it with powershell!

net view \\#{computer_name}
get-smbshare -Name #{computer_name}