Coinhive was a JavaScript-based Monero mining library and service that used website visitors’ CPU resources to generate cryptocurrency. Although usable for website monetization, it was widely abused for cryptojacking through scripts executed without users’ consent. Mining workloads could cause high CPU utilization, degraded performance, increased electricity consumption, and reduced battery life on mobile devices. Coinhive discontinued operations on March 8, 2019.
Malicious deployments included injected website scripts, advertisements distributed through legitimate advertising networks, browser extensions, and Android applications. Android malware detected as ANDROIDOS_JSMINER loaded Coinhive into an invisible WebView and mined using an attacker-controlled site key. FacexWorm injected obfuscated Coinhive scripts into visited webpages. A January 2018 malvertising campaign distributed Coinhive through Google DoubleClick advertisements and configured mining to consume approximately 80 percent of available CPU resources.
Coinhive was also distributed through compromised infrastructure. Attackers exploiting MikroTik RouterOS vulnerability CVE-2018-14847 configured routers to inject mining code into web proxy error pages served to users. Linux Rabbit and Rabbot campaigns injected Coinhive scripts into web content on compromised servers, extending mining activity to visitors’ browsers. These deployments reflect abuse by multiple campaigns rather than attribution to a single threat actor.
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
8 distinct techniques documented for this family, organized by ATT&CK tactic.
the number of Coinhive web miner detections tripled due to a malvertising campaign... Attackers abused Google’s DoubleClick... for traffic distribution.
"Drive-By Cryptojacking In-Browser... scripts have been observed on compromised websites, third-party advertising platforms"
The advertisement has a JavaScript code that generates a random number between variables 1 and 100... For the other 10%, a private web miner will be launched.
XiaoBa также внедряет (инжектирует) скрипт Coinhive во все файлы HTML и HTM
After de-obfuscating the private web miner called mqoj_1.js , there will be a JavaScript code that is still based on Coinhive.
XiaoBa также внедряет (инжектирует) скрипт Coinhive во все файлы HTML и HTM
After enabling the Mikrotik RouterOS HTTP proxy, the attacker uses a trick in the configuration by redirecting all the HTTP proxy requests to a local HTTP 403 error page, and in this error page a link for web mining code from coinhive.com is inserted.
After enabling the Mikrotik RouterOS HTTP proxy, the attacker uses a trick in the configuration by redirecting all the HTTP proxy requests to a local HTTP 403 error page, and in this error page a link for web mining code from coinhive.com is inserted.
The modified web miner will use a different mining pool at wss[:]//ws[.]l33tsite[.]info[:]8443. This is done to avoid Coinhive’s 30% commission fee.
The attacker hopes to perform web mining for all the proxy traffic on the users’ devices.
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.