alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE AgentTesla Communicating with CnC Server";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:".php"; endswith;
http.request_body;
content:"p="; startswith; fast_pattern;
pcre:"/^(?:[A-Za-z0-9%+\/]{4,6})*(?:[A-Za-z0-9%+\/]{2}==|[A-Za-z0-9%+\/]{3}=|[A-Za-z0-9%+\/]{4})$/R";
http.content_type;
content:"application/x-www-form-urlencoded"; startswith;
http.header_names;
content:!"Accept";
content:!"Referer|0d 0a|";
reference:md5,274ff72c29b0711d01254c95770ca193;
classtype:command-and-control;
sid:2034579; rev:6;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2017_10_10, deployment Perimeter, malware_family AgentTesla, performance_impact Low, confidence High, signature_severity Major, updated_at 2023_05_30, reviewed_at 2023_12_13;
)