PowerShell Module: Get-SmbShare Used for SMB Share Discovery
Detects PowerShell module usage of Get-SmbShare to enumerate SMB shares across networked systems.
- Product
- windows
- Category
- ps_module
- Author
- frack113 (SigmaHQ), DRL 1.1
- Published
- 2021-12-15
- Updated
- 2026-07-31
ATT&CK techniques
DiscoveryRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies PowerShell module activity that includes the command or reference text "get-smbshare" in either payload content or context information. Adversaries can use SMB share enumeration to discover accessible network folders and drives for subsequent collection and lateral movement planning. Telemetry relies on Windows PowerShell module logging fields that capture the module payload and contextual command text.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "PowerShell Module: Get-SmbShare Used for SMB Share Discovery"
id: 5aef56d5-7a21-4382-86d8-57d5ae7763a7
status: test
description: This rule identifies PowerShell module activity that includes the command or reference text "get-smbshare" in either payload content or context information. Adversaries can use SMB share enumeration to discover accessible network folders and drives for subsequent collection and lateral movement planning. Telemetry relies on Windows PowerShell module logging fields that capture the module payload and contextual command text.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_module/posh_pm_susp_smb_share_reco.yml
author: frack113, Huntrule Team
date: 2021-12-15
modified: 2022-12-02
tags:
- attack.discovery
- attack.t1069.001
logsource:
product: windows
category: ps_module
definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
selection:
- Payload|contains: get-smbshare
- ContextInfo|contains: get-smbshare
condition: selection
falsepositives:
- Administrator script
level: low
license: DRL-1.1
related:
- id: 6942bd25-5970-40ab-af49-944247103358
type: derived