[Paper Review] CoinPolice:Detecting Hidden Cryptojacking Attacks with Neural Networks
CoinPolice is a neural network-based system that detects hidden cryptojacking attacks by actively probing browser CPU throttling behavior, enabling detection of 97.87% of miners with a 0.74% false positive rate. It outperforms state-of-the-art methods, especially against aggressively throttled miners, and identified 6,700 mining websites in the largest-scale investigation to date.
Traffic monetization is a crucial component of running most for-profit online businesses. One of its latest incarnations is cryptocurrency mining, where a website instructs the visitor's browser to participate in building a cryptocurrency ledger (e.g., Bitcoin, Monero) in exchange for a small reward in the same currency. In its essence, this practice trades the user's electric bill (or battery level) for cryptocurrency. With user consent, this exchange can be a legitimate funding source - for example, UNICEF has collected over 27k charity donations on a website dedicated to this purpose, thehopepage.org. Regrettably, this practice also easily lends itself to abuse: in this form, called cryptojacking, attacks surreptitiously mine in the users browser, and profits are collected either by website owners or by hackers that planted the mining script into a vulnerable page. Cryptojackers have been bettering their evasion techniques, incorporating in their toolkits domain fluxing, content obfuscation, the use of WebAssembly, and throttling. Whereas most state-of-the-art defenses address multiple of these evasion techniques, none is resistant against all. In this paper, we offer a novel detection method, CoinPolice, that is robust against all of the aforementioned evasion techniques. CoinPolice flips throttling against cryptojackers, artificially varying the browser's CPU power to observe the presence of throttling. Based on a deep neural network classifier, CoinPolice can detect 97.87% of hidden miners with a low false positive rate (0.74%). We compare CoinPolice performance with the current state of the art and show our approach outperforms it when detecting aggressively throttled miners. Finally, we deploy Coinpolice to perform the largest-scale cryptoming investigation to date, identifying 6700 sites that monetize traffic in this fashion.
Motivation & Objective
- To address the growing threat of hidden cryptojacking, where malicious scripts mine cryptocurrency in users' browsers without consent.
- To overcome evasion techniques such as domain fluxing, content obfuscation, WebAssembly use, and CPU throttling that undermine existing detection systems.
- To develop a robust detection mechanism resilient to all known evasion strategies, particularly throttling, which has become widespread.
- To perform the largest-scale investigation of cryptojacking to date, identifying thousands of malicious mining websites.
Proposed method
- CoinPolice uses active probing by artificially varying the browser’s CPU throttling rate to observe whether mining scripts respond to reduced processing power.
- It collects performance traces via Chrome DevTools API, extracting CPU usage per thread and function call duration to build time-series features.
- A deep neural network classifier is trained on these features to distinguish between legitimate and malicious mining behavior.
- The system leverages data augmentation with randomized function call shifts to improve robustness against timing-based evasion.
- It analyzes flame graphs and function-level execution patterns to detect mining logic even when function names are obfuscated.
- The method is designed to detect miners that evade passive detection by throttling, which reduces CPU usage to avoid detection.
Experimental results
Research questions
- RQ1Can a detection system effectively identify cryptojacking scripts that use aggressive CPU throttling to evade passive monitoring?
- RQ2How does the performance of active probing via CPU throttling compare to passive detection methods in detecting stealthy miners?
- RQ3To what extent can evasion techniques like function name randomization or randomized delays bypass the proposed detection mechanism?
- RQ4What is the true scale of hidden cryptojacking across the web, and how prevalent are these attacks in high-traffic domains?
- RQ5Can a neural network-based classifier trained on CPU performance traces achieve high detection accuracy with low false positive rates in real-world settings?
Key findings
- CoinPolice achieved a 97.87% detection rate for hidden cryptojacking scripts with a low false positive rate of 0.74%.
- The system outperformed the current state of the art in detecting miners that use aggressive CPU throttling, which are often missed by passive methods.
- In a large-scale investigation, CoinPolice identified 6,700 websites engaging in cryptojacking, including 447 in the Alexa Top 1 Million list.
- Only 43% of websites identified via pattern matching were actually mining cryptocurrency, indicating a high rate of non-functional or inactive mining scripts.
- The study confirmed that CPU throttling has become widespread, with 58% of miners in 2019 using this evasion technique, up from 10% in 2018.
- The system demonstrated resilience against potential evasion tactics such as randomized function delays and obfuscated function names, thanks to data augmentation and feature engineering.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.