alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET WEB_CLIENT Possible Microsoft Edge Remote Command Execution PoC (CVE-2018-8495)";
flow:established,to_client;
file_data;
content:"wshfile:";
content:"../../"; within:100;
content:"SyncAppvPublishingServer.vbs"; within:200; nocase; fast_pattern;
content:"window.onkeydown=e=>"; nocase; distance:0;
content:"window.onkeydown=z="; nocase; distance:0;
content:"click()"; nocase; distance:0;
reference:url,leucosite.com/Microsoft-Edge-RCE/;
reference:cve,2018-8495;
classtype:attempted-user;
sid:2026488; rev:1;
metadata:affected_product Web_Browsers, attack_target Client_Endpoint, created_at 2018_10_15, cve CVE_2018_8495, deployment Perimeter, confidence Medium, signature_severity Major, updated_at 2019_07_26;
)