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;
)