Name:Windows Suspicious C2 Named Pipe id:90599d85-dc2a-4d4c-8c59-9485c3665828 version:6 date:None author:Raven Tait, Splunk status:production type:TTP Description:The following analytic detects the creation or connection to known suspicious C2 named pipes.
It leverages Sysmon EventCodes 17 and 18 to identify known default pipe names used by C2 tools.
If confirmed malicious, this could allow an attacker to abuse these to potentially gain persistence, command and control, or further system compromise.
Data_source:
| stats min(_time) as firstTime max(_time) as lastTime count by dest dvc process_exec process_guid process_id process_path signature signature_id vendor_product pipe_name user_id Image process_name
| lookup suspicious_c2_named_pipes suspicious_pipe_name AS pipe_name OUTPUT tool, description | where isnotnull(tool) | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_suspicious_c2_named_pipe_filter`
how_to_implement:To successfully implement this search, you need to be ingesting logs with the process name and pipename from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. known_false_positives:False positives should be rare, investigate matches and apply additional filters as needed.
References: -https://attack.mitre.org/techniques/T1218/009/ -https://docs.microsoft.com/en-us/windows/win32/ipc/named-pipes drilldown_searches: name:'View the detection results for - "$dest$"' search:'%original_detection_search% | search dest = "$dest$"' earliest_offset:'$info_min_time$' latest_offset:'$info_max_time$' name:'View risk events for the last 7 days for - "$dest$"' search:'| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`' earliest_offset:'7d' latest_offset:'0' analytic_story:['Storm-0501 Ransomware', 'APT37 Rustonotto and FadeStealer', 'BlackByte Ransomware', 'Brute Ratel C4', 'Cobalt Strike', 'DarkSide Ransomware', 'Gozi Malware', 'Graceful Wipe Out Attack', 'Hellcat Ransomware', 'LockBit Ransomware', 'Meterpreter', 'Remote Monitoring and Management Software', 'Trickbot', 'Tuoni']