Summery
A handle is a process’s reference to an operating-system object, such as another process, thread, file, or registry key. If a privileged process accidentally inherits or leaks a handle to a less-privileged process, that process may be able to use the handle’s granted access to perform privileged actions. This can create a local privilege-escalation opportunity.
A named pipe is an IPC mechanism that lets processes communicate. A handle is a reference a process uses to access an object, such as a named pipe, process, file, or registry key.
A leaked handle is dangerous when a less-privileged process receives a handle that grants excessive access to a privileged object. Unlike simply finding a named pipe, the key issue is the access rights attached to the handle.
References
Similar concepts: Named pipes
Hacktricks’ article
Example of usage