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

Named Pipe Traffic

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


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Sysmon17Pipe createdCriticalDirect named pipe creation visibility.
Sysmon18Pipe connectedCriticalPipe client/server connection.
Security4688Process creationCriticalDetects processes using named pipes.
Sysmon1Process creationCriticalBest lineage source for pipe traffic chains.
Sysmon10Process accessHighOften adjacent to pipe IPC abuse.
Security5145Share/object accessMediumSometimes adjacent in SMB pipe contexts.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Rare pipe namesRandom / custom namesCriticalStrong anomaly.
Non-service process hosts pipeUser process as serverCriticalValuable signal.
Pipe tied to shellcmd / powershell linkedCriticalStrong malicious clue.
Repeated pipe reconnectsIPC channel / beaconHighPersistent communication clue.
Pipe names match C2 frameworksKnown beacon namesCriticalFramework fingerprint.
Pipe + privilege escalationPotato-style chainCriticalStrong context

Common Tools

ToolUsage
Cobalt StrikeSMB / pipe channels
custom implantsIPC traffic
PowerShellNamed pipe IPC
PsExec-style toolsRemote pipe operations

Relevant Artifacts

  • Sysmon Event IDs 17, 18, 1, 10
  • Security Event IDs 4688, 5145
  • Pipe names
  • Process tree
  • Integrity levels
  • Prefetch for parent tools

MITRE ATT&CK References

  • T1055 Process Injection
  • T1071.002 SMB/Windows Admin Shares

Decision Tree

  1. Which process owns pipe?

    • service
    • shell
    • implant
  2. Pipe name known?

    • Framework pattern
    • Random
  3. Server/client role?

    • Local IPC
    • Cross-process
    • Remote tie-in
  4. Follow-on action?

    • Token abuse
    • Beacon
    • Injection
  5. Expand:

    • Parent lineage
    • Pipe cadence
    • Privileges
  6. Scope:

    • Single pipe
    • Persistent IPC
    • Framework behavior

Example Detection Templates

KQL

Sysmon
| where EventID in (17,18)
| project TimeGenerated, Computer, Image, PipeName
SecurityEvent
| where EventID == 4688
| project TimeGenerated, Computer, NewProcessName, ParentProcessName

EQL

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

Sigma

title: Named Pipe Traffic Detection
id: 5f2c9b18-named-pipe-traffic
status: experimental
description: Detects suspicious named pipe traffic
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.command_and_control

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Enable Sysmon 17/18Core visibilityCriticalEssential telemetry
Baseline pipe namesReduce noiseHighValuable context
Watch shell-linked pipesStrong signalCriticalHigh-value
Correlate with pipe cadenceDetect beaconingHighStrong triage
EDR lineageBest IPC visibilityCriticalOperationally important