SMB and Administrative Shares
What you'll learn: How attackers leverage the SMB protocol and Windows' built-in administrative shares to move laterally and transfer files across a compromised network.
What Are Administrative Shares?
Windows systems automatically create administrative shares — hidden network shares ending with a dollar sign ($) that provide privileged access to system resources. The most commonly abused are:
- C$ — Full access to the C: drive
- ADMIN$ — Maps to
C:\Windows - IPC$ — Inter-Process Communication, used for named pipes and remote procedure calls
Think of these like "staff-only" doors in a building: they're always there, invisible to casual visitors, but provide direct access to critical areas if you have the right credentials.
How Attackers Exploit SMB and Admin Shares
The Server Message Block (SMB) protocol allows file sharing and remote administration over networks. Once attackers obtain valid credentials (through credential dumping, pass-the-hash, or other techniques), they can:
- Connect to administrative shares using stolen credentials
- Upload malicious tools directly to target systems via
C$orADMIN$ - Execute remote commands through SMB-based protocols like PsExec
- Access sensitive files without triggering typical application-layer logging
For example, after compromising one workstation, an attacker might connect to \\TARGET\C$\Windows\Temp\, drop a backdoor, then execute it remotely — all while appearing as legitimate administrative traffic.
Detection and Defense
Defenders monitor for unusual SMB connections to admin shares, especially from non-admin workstations or at odd hours. Restricting local administrator password reuse across systems (using LAPS) significantly limits this attack vector.
Key Takeaway: Administrative shares provide attackers with powerful file transfer and remote access capabilities once credentials are compromised; monitoring SMB traffic and enforcing unique local admin passwords are critical lateral movement defenses.