Summery

Named pipes are a Windows inter-process communication (IPC) mechanism that lets programs exchange data with each other, either on the same machine or over a network. They are often used in:

  • Printer service communication (spooler)
  • Authentication (LSASS-related components)
  • RPC (Remote Procedure Calls)
  • Service-to-service communication
  • Admin tools talking to system services

Their syntax looks like \\.\pipe\spoolss.

Good mental note is that named pipes work kinda like API endpoints. Apps and users connect to given endpoints to perform desinged actions - like queueing up a printer job.

Tips

VSS (Volume Shadow Copies) and Named pipes don’t have much in common but they are confusing because of a similar syntax that is being used for both of them.
\\?\ - NT native extended path syntax (bypasses Win32 normalization, used for long paths, VSS, raw devices)
\\.\ - Win32 device namespace (includes named pipes, disks, serial ports)

Commands

gci \\.\pipe\ - View all named pipes on the system
AccessChk has some additional commands which can enumerate your rights over them.

Privilege Escalation

For the classic named-pipe impersonation privilege escalation, SeImpersonatePrivilege is the key privilege.

References

Named pipe bash reverse shell, GodPotato, Potatoes, JuicyPotato, PrintSpoofer