Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / PRIVILEGE ESCALATION

Named Pipe Abuse

This note documents detection patterns related to Named Pipe Abuse within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects pipe abuse tooling and resulting child processes.
Sysmon1Process creationCriticalBest lineage source for named pipe abuse chains.
Sysmon17Pipe createdCriticalDirect visibility into named pipe creation.
Sysmon18Pipe connectedCriticalPipe client/server interaction.
Sysmon10Process accessHighOften adjacent to token abuse chains.
Security4672Special privileges assignedHighElevated token often follows pipe exploitation.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Suspicious pipe namesRandom / attacker-known namesCriticalStrong malicious clue.
Pipe + SYSTEM shellCommon potato-family outcomeCriticalPrivilege escalation signal.
Non-service process creates server pipeRare anomalyCriticalValuable indicator.
Pipe rapidly followed by elevated cmdStrong exploitation chainCriticalHigh-confidence pattern.
Pipe tied to token abuseSeImpersonate contextCriticalCommon modern privesc path.
Short-lived pipe activityFast exploit executionHighOperator behavior.

Common Tools

ToolUsage
PrintSpooferNamed pipe privilege escalation
RoguePotatoToken impersonation
JuicyPotato variantsCOM + pipe abuse
custom loadersPipe-based token relay

Relevant Artifacts

  • Security Event IDs 4688, 4672
  • Sysmon Event IDs 1, 17, 18, 10
  • Pipe names
  • Process integrity levels
  • Token privilege context
  • Prefetch for exploit tool
  • EDR process tree

MITRE ATT&CK References

  • T1134 Access Token Manipulation
  • T1055 Process Injection

Decision Tree

  1. Which process created pipe?

    • Service
    • User process
    • Exploit tool
  2. Pipe name suspicious?

    • Random
    • Known exploit pattern
  3. Elevated child follows?

    • cmd
    • powershell
    • service action
  4. Privileges present?

    • SeImpersonate
    • SYSTEM token
  5. Expand:

    • Token abuse
    • Service chain
    • COM trigger
  6. Scope:

    • Single exploit
    • Repeated attempts
    • Toolkit behavior

Example Detection Templates

KQL

Sysmon
| where EventID in (17,18)
| project TimeGenerated, Computer, Image, PipeName
SecurityEvent
| where EventID == 4688
| where NewProcessName has_any ("cmd.exe","powershell.exe")
| project TimeGenerated, Computer, ParentProcessName, NewProcessName

EQL

pipe where event.code in ("17","18")
sequence by host.name with maxspan=5m
  [ pipe where event.code == "17" ]
  [ process where process.name in ("cmd.exe","powershell.exe") ]

Sigma

title: Named Pipe Abuse Detection
id: 2f6b4d14-named-pipe-abuse
status: experimental
description: Detects suspicious named pipe creation linked to privilege escalation
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID:
      - 17
      - 18
  condition: selection
fields:
  - Image
  - PipeName
falsepositives:
  - Legitimate IPC
level: high
tags:
  - attack.privilege_escalation

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Enable Sysmon 17/18Core pipe visibilityCriticalEssential telemetry
Watch suspicious pipe namesHigh anomaly valueHighStrong enrichment
Restrict SeImpersonateReduce exploit surfaceCriticalCore hardening
Correlate pipe + elevationStrong signalCriticalHigh-confidence triage
EDR lineageTrack exploit chainsCriticalBest visibility