A client connected to a named pipe. PipeName and Image are key.
Same context as Sysmon 17. Client-side of named pipe connections for C2 lateral movement. SMB-based lateral movement tools connect to named pipes on remote hosts.
Alert: connections to known C2 pipe names. Alert: unexpected processes connecting to admin pipe names.
ImageCommandLineParentImageUserHashes | Tactic | Technique |
|---|---|
| Command and Control | Application Layer Protocol (T1071) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 18 // Pipe connected
// EventData holds: Image, CommandLine, ParentImage, User, Hashes
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=18
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# Pipe connected — add EventData fields: Image, CommandLine, ParentImage, User`
Pipe connected. A client connected to a named pipe. PipeName and Image are key.
Event 18 is written to the Microsoft-Windows-Sysmon/Operational channel by Microsoft-Windows-Sysmon. Requires Sysmon installed with a config that logs this event (e.g. SwiftOnSecurity / Olaf Hartong).
Event 18 is associated with: Application Layer Protocol (T1071).
Alert: connections to known C2 pipe names. Alert: unexpected processes connecting to admin pipe names.