Course contentsShow
← Security
Lesson 2154 of 3,05242. Penetration Testing and Red TeamingFree lesson

SMB and Administrative Shares

Leveraging SMB protocol and administrative shares (C$, ADMIN$, IPC$) for file transfer and remote access.

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:

  1. Connect to administrative shares using stolen credentials
  2. Upload malicious tools directly to target systems via C$ or ADMIN$
  3. Execute remote commands through SMB-based protocols like PsExec
  4. 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.