alert smb any any -> $HOME_NET any (
msg:"ET MALWARE CobaltStrike SMB P2P Default Msagent Named Pipe Interaction";
flow:established,to_server;
content:"SMB"; depth:8;
content:"|5c 00|m|00|s|00|a|00|g|00|e|00|n|00|t|00|_|00|"; nocase; distance:0; fast_pattern;
content:!"|00 22 00 5c 00|m|00|s|00|a|00|g|00|e|00|n|00|t|00|_|00|";
reference:url,blog.cobaltstrike.com/2015/10/07/named-pipe-pivoting/;
reference:url,www.cobaltstrike.com/help-malleable-c2;
reference:url,posts.specterops.io/designing-peer-to-peer-command-and-control-ad2c61740456;
classtype:targeted-activity;
sid:2027325; rev:4;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, created_at 2019_05_07, deployment Perimeter, deployment Internal, malware_family Cobalt_Strike, performance_impact Low, confidence Medium, signature_severity Major, updated_at 2023_08_24, reviewed_at 2023_08_24;
)