Name:Network Share Discovery Via Dir Command id:dc1457d0-1d9b-422e-b5a7-db46c184d9aa version:7 date:None author:Teoderick Contreras, Splunk status:production type:Hunting Description:The following analytic detects access to Windows administrative SMB shares (Admin$, IPC$, C$) using the 'dir' command. It leverages Windows Security Event Logs with EventCode 5140 to identify this activity.
This behavior is significant as it is commonly used by tools like PsExec/PaExec for staging binaries before creating and starting services on remote endpoints, a technique often employed by adversaries for lateral movement and remote code execution.
If confirmed malicious, this activity could allow attackers to propagate malware, such as IcedID, across the network, leading to widespread infection and potential data breaches. Data_source:
-Windows Event Log Security 5140
search:`wineventlog_security` EventCode=5140 ShareName IN ( "\\\\*\\Admin$", "\\\\*\\C$", "\\\\*\\IPC$" )
``` We select only read-related operations: 0x1 = ReadData (or ListDirectory) ```