ET HUNTING Suspicious Script Loaded from Pastebin


Query · suricata

flow:established,to_client;
file_data;
content:"pastebin.com/raw"; fast_pattern;
content:"<script ";
pcre:"/^(?:(?!<\/script>).)*?src\s*=\s*\x5c?[\x22\x27]https?\x3a\/\/(?:www\.)?pastebin\.com\/raw(?:\/|\.php\?i=)[A-Z-a-z0-9]{8}[\x22\x27]/Rsi";
Raw source ET HUNTING Suspicious Script Loaded from Pastebin · 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 HUNTING Suspicious Script Loaded from Pastebin";
    flow:established,to_client;
    file_data;
    content:"pastebin.com/raw"; fast_pattern;
    content:"<script ";
    pcre:"/^(?:(?!<\/script>).)*?src\s*=\s*\x5c?[\x22\x27]https?\x3a\/\/(?:www\.)?pastebin\.com\/raw(?:\/|\.php\?i=)[A-Z-a-z0-9]{8}[\x22\x27]/Rsi";
    classtype:trojan-activity;
    sid:2022376; rev:3;
    metadata:created_at 2016_01_20, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, 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.