ET INFO Generic HeapSpray Construct


Query · suricata

flow:established,to_client;
file_data;
content:"CollectGarbage"; nocase; fast_pattern;
content:"var";
pcre:"/^\s+?(?P<vname>[^\s\x3d]+)\s*?=\s*?(?:0x(?:(6[4-9a-f]|[7-9a-f])|\d{3,})|\d{3,}).+?[\s\x3b]for\s*?\([^\x3b\)]*?\x3b[^\x3b\)]+?<=?\s*?(?P=vname)[^\)]+?\)\s*?(?:\{[^}]*?|[^\r\n]*?)document\s*\.\s*createElement/Rsi";
Raw source ET INFO Generic HeapSpray Construct · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"ET INFO Generic HeapSpray Construct";
    flow:established,to_client;
    file_data;
    content:"CollectGarbage"; nocase; fast_pattern;
    content:"var";
    pcre:"/^\s+?(?P<vname>[^\s\x3d]+)\s*?=\s*?(?:0x(?:(6[4-9a-f]|[7-9a-f])|\d{3,})|\d{3,}).+?[\s\x3b]for\s*?\([^\x3b\)]*?\x3b[^\x3b\)]+?<=?\s*?(?P=vname)[^\)]+?\)\s*?(?:\{[^}]*?|[^\r\n]*?)document\s*\.\s*createElement/Rsi";
    classtype:bad-unknown;
    sid:2018145; rev:5;
    metadata:created_at 2014_02_15, confidence Medium, signature_severity Informational, updated_at 2019_10_08;
)

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.