alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET SHELLCODE Unescape Hex Obfuscated Content";
flow:established,to_client;
content:"unescape|28|"; fast_pattern;
content:"|5C|x"; distance:1; within:2;
content:"|5C|x"; distance:2; within:2;
content:"|5C|x"; distance:2; within:2;
content:"|5C|x"; distance:2; within:2;
pcre:"/unescape\x28(\x22|\x27)\x5Cx[a-f,0-9]{2}\x5Cx[a-f,0-9]{2}\x5Cx[a-f,0-9]{2}/smi";
classtype:shellcode-detect;
sid:2013272; rev:4;
metadata:created_at 2011_07_14, performance_impact Significant, confidence High, signature_severity Major, updated_at 2024_04_09, mitre_tactic_id TA0005, mitre_tactic_name Defense_Evasion, mitre_technique_id T1027, mitre_technique_name Obfuscated_Files_or_Information;
)