ET INFO Generic HeapSpray Construct


Query · suricata

flow:established,to_client;
file_data;
content:"<script"; nocase;
content:"CollectGarbage"; distance:0; fast_pattern;
content:"while";
pcre:"/^\s*?\([^\)]*?(?P<var>[^\.]+)\s*?\.\s*?length\s*<\s*(?:0?[0-9]{5,}|0x[a-z0-9]{3,})[^)]+\)\s*?\{\s*?(?P=var)\s*?=\s*?(?P=var)\s*?\+\s*?(?P=var)\s*?\}/Rsi";
content:"getElementsByClassName"; distance:0;
content:"CollectGarbage"; distance:0;
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:"<script"; nocase;
    content:"CollectGarbage"; distance:0; fast_pattern;
    content:"while";
    pcre:"/^\s*?\([^\)]*?(?P<var>[^\.]+)\s*?\.\s*?length\s*<\s*(?:0?[0-9]{5,}|0x[a-z0-9]{3,})[^)]+\)\s*?\{\s*?(?P=var)\s*?=\s*?(?P=var)\s*?\+\s*?(?P=var)\s*?\}/Rsi";
    content:"getElementsByClassName"; distance:0;
    content:"CollectGarbage"; distance:0;
    classtype:bad-unknown;
    sid:2018146; rev:4;
    metadata:created_at 2014_02_15, confidence Medium, signature_severity Informational, updated_at 2019_07_26;
)

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.