ET COINMINER CoinHive In-Browser Miner Detected


Query · suricata

flow:established,from_server;
file_data;
content:"coinhive.min.js"; nocase; fast_pattern;
content:"start"; nocase; distance:0;
content:"script";
content:"var"; distance:0;
pcre:"/^\s*(?P<var>[a-zA-Z0-9]{3,20})\s*=\s*new\s*CoinHive\s*\.\s*[^\(]+\(\s*[\x22\x27][A-Za-z0-9]+\s*[\x22\x27]\s*(?:\x2c\s*\x7b\s*\w+\x3a\s*\d\.\d\x7d)?\)\s*\x3b\s+(?P=var)\s*\.\s*start/Ri";
Raw source ET COINMINER CoinHive In-Browser Miner Detected · 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 COINMINER CoinHive In-Browser Miner Detected";
    flow:established,from_server;
    file_data;
    content:"coinhive.min.js"; nocase; fast_pattern;
    content:"start"; nocase; distance:0;
    content:"script";
    content:"var"; distance:0;
    pcre:"/^\s*(?P<var>[a-zA-Z0-9]{3,20})\s*=\s*new\s*CoinHive\s*\.\s*[^\(]+\(\s*[\x22\x27][A-Za-z0-9]+\s*[\x22\x27]\s*(?:\x2c\s*\x7b\s*\w+\x3a\s*\d\.\d\x7d)?\)\s*\x3b\s+(?P=var)\s*\.\s*start/Ri";
    classtype:coin-mining;
    sid:2024721; rev:2;
    metadata:affected_product Any, attack_target Client_Endpoint, created_at 2017_09_18, deployment Perimeter, performance_impact Moderate, confidence High, signature_severity Major, 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.