A named pipe was created. PipeName and Image are key.
Named pipes are used for C2 communication and lateral movement. Cobalt Strike uses default pipe names (msagent_*, MSSE-*-server, postex_*). Metasploit uses meterpreter-specific pipes. Custom pipes with random names may indicate C2 tools. Known malicious pipe names: \\msagent_*, \\MSSE-*-server, \\postex_ssh_*, \\postex_*.
Alert: PipeName matching known Cobalt Strike or Metasploit patterns. Alert: pipes created by unusual processes (cmd.exe, PowerShell). Maintain list of known C2 framework pipe name patterns.
ImageCommandLineParentImageUserHashes | Tactic | Technique |
|---|---|
| Command and Control | Application Layer Protocol (T1071) |
| Lateral Movement | SMB/Windows Admin Shares (T1021.002) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Suspicious Named Pipe Created — C2 Framework
status: experimental
description: Named pipe matching known C2 framework patterns
author: theadminstack.com
date: 2026/05/16
logsource:
category: pipe_created
product: windows
detection:
selection:
PipeName|contains:
- 'msagent_'
- 'MSSE-'
- 'postex_'
- 'meterpreter'
condition: selection
falsepositives:
- Legitimate applications with similar naming
level: high
tags:
- attack.command_and_control
- attack.lateral_movement
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 17 // Pipe created
// EventData holds: Image, CommandLine, ParentImage, User, Hashes
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=17
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# Pipe created — add EventData fields: Image, CommandLine, ParentImage, User`
Pipe created. A named pipe was created. PipeName and Image are key.
Event 17 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 17 is associated with: Application Layer Protocol (T1071), SMB/Windows Admin Shares (T1021.002).
Alert: PipeName matching known Cobalt Strike or Metasploit patterns. Alert: pipes created by unusual processes (cmd.exe, PowerShell). Maintain list of known C2 framework pipe name patterns.