alert smb any any -> $HOME_NET any (
msg:"ET MALWARE Covenant .NET Framework P2P C&C Protocol Gruntsvc Named Pipe Interaction";
flow:established,to_server;
content:"SMB"; depth:8;
content:"g|00|r|00|u|00|n|00|t|00|s|00|v|00|c|00|"; nocase; distance:0; fast_pattern;
content:!"|00 22 00|g|00|r|00|u|00|n|00|t|00|s|00|v|00|c|00 22 00|";
reference:url,posts.specterops.io/entering-a-covenant-net-command-and-control-e11038bcf462;
reference:url,posts.specterops.io/designing-peer-to-peer-command-and-control-ad2c61740456;
classtype:command-and-control;
sid:2027326; rev:2;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, created_at 2019_05_07, deployment Perimeter, deployment Internal, malware_family Covenant, performance_impact Low, confidence High, signature_severity Major, updated_at 2023_08_24, reviewed_at 2023_08_24;
)