OpenParable
Skip to content
← Back to skills

T1135_network-share-discovery

DevOps & Security

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 in...

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/mitre_attack/TA0007_discovery/T1135_network-share-discovery/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/t1135-network-share-discovery, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

T1135 Network Share Discovery

High-Level Description

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. 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.

Kill Chain Phase

  • Discovery (TA0007)

Platforms: Linux, macOS, Windows

What to Check

  • Identify if Network Share Discovery technique is applicable to target environment
  • Check Linux systems for indicators of Network Share Discovery
  • Check macOS systems for indicators of Network Share Discovery
  • Check Windows systems for indicators of Network Share Discovery
  • Verify mitigations are bypassed or absent (1 known mitigations)
  • Assess detection coverage (1 detection strategies)

How to Test

Atomic Red Team Tests

The following tests are from Atomic Red Team and provide actionable ways to test this technique:

Atomic Test 1: Network Share Discovery

Network Share Discovery

Supported Platforms: macos

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

Atomic Test 2: Network Share Discovery - linux

Network Share Discovery using smbstatus

Supported Platforms: linux Elevation Required: Yes

smbstatus --shares

Dependencies:

  • Package with smbstatus (samba) must exist on device

Atomic Test 3: Network Share Discovery - FreeBSD

Network Share Discovery using smbstatus

Supported Platforms: linux Elevation Required: Yes

smbstatus --shares

Dependencies:

  • Package with smbstatus (samba) must exist on device

Atomic Test 4: Network Share Discovery 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

Supported Platforms: windows

net view \\#{computer_name}

Atomic Test 5: Network Share Discovery 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

Supported Platforms: windows

get-smbshare

Manual Testing

If Atomic Red Team tests are not applicable, manually verify the technique by:

  1. Identify Attack Surface: Determine if the target environment is susceptible to Network Share Discovery by examining the target platforms (Linux, macOS, Windows).

  2. Assess Existing Defenses: Review whether mitigations for T1135 are in place. If defenses are absent or misconfigured, this technique may be exploitable.

  3. Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.

Remediation Guide

M1028 Operating System Configuration

Enable Windows Group Policy “Do Not Allow Anonymous Enumeration of SAM Accounts and Shares” security setting to limit users who can enumerate network shares.

Detection

Behavior-chain detection for T1135 Network Share Discovery across Windows, Linux, and macOS

Risk Assessment

FindingSeverityImpact
Network Share Discovery technique applicableMediumDiscovery

CWE Categories

CWE IDTitle
CWE-200Exposure of Sensitive Information

References