[Paper Review] End-to-End Analysis of In-Browser Cryptojacking
This paper presents a comprehensive end-to-end analysis of in-browser cryptojacking, combining static and dynamic analysis to detect malicious scripts with 96.4% accuracy and evaluate their economic viability as an ad-replacement. It reveals widespread use of Coinhive for Monero mining, demonstrates significant resource consumption, and concludes that cryptojacking is economically unfeasible compared to online advertising.
In-browser cryptojacking involves hijacking the CPU power of a website's visitor to perform CPU-intensive cryptocurrency mining, and has been on the rise, with 8500% growth during 2017. While some websites advocate cryptojacking as a replacement for online advertisement, web attackers exploit it to generate revenue by embedding malicious cryptojacking code in highly ranked websites. Motivated by the rise of cryptojacking and the lack of any prior systematic work, we set out to analyze malicious cryptojacking statically and dynamically, and examine the economical basis of cryptojacking as an alternative to advertisement. For our static analysis, we perform content-, currency-, and code-based analyses. Through the content-based analysis, we unveil that cryptojacking is a wide-spread threat targeting a variety of website types. Through a currency-based analysis we highlight affinities between mining platforms and currencies: the majority of cryptojacking websites use Coinhive to mine Monero. Through code-based analysis, we highlight unique code complexity features of cryptojacking scripts, and use them to detect cryptojacking code among benign and other malicious JavaScript code, with an accuracy of 96.4%. Through dynamic analysis, we highlight the impact of cryptojacking on system resources, such as CPU and battery consumption (in battery-powered devices); we use the latter to build an analytical model that examines the feasibility of cryptojacking as an alternative to online advertisement, and show a huge negative profit/loss gap, suggesting that the model is impractical. By surveying existing countermeasures and their limitations, we conclude with long-term countermeasures using insights from our analysis.
Motivation & Objective
- To systematically analyze the prevalence and technical characteristics of in-browser cryptojacking across websites.
- To evaluate the feasibility of cryptojacking as an alternative revenue model to online advertising.
- To detect cryptojacking scripts among benign and malicious JavaScript using code-based analysis.
- To measure the dynamic impact of cryptojacking on system resources such as CPU and battery consumption.
- To identify limitations of existing countermeasures and propose long-term solutions based on empirical findings.
Proposed method
- Conducted static analysis using content-, currency-, and code-based approaches on a dataset of 5,703 suspect websites from the Alexa Top 1M list.
- Developed code complexity features to distinguish cryptojacking scripts from benign and malicious JavaScript, achieving 96.4% detection accuracy.
- Performed dynamic analysis to measure real-time CPU, network, and battery consumption during cryptojacking execution.
- Built an analytical model of cryptojacking profitability based on resource usage and revenue estimates.
- Evaluated existing blacklisting-based countermeasures and identified their limitations through empirical evaluation.
- Proposed long-term countermeasures informed by insights from static and dynamic analysis, including clustering-based detection and behavioral modeling.
Experimental results
Research questions
- RQ1What is the prevalence and distribution of in-browser cryptojacking across different website types and categories?
- RQ2Which mining platforms and cryptocurrencies are most commonly used in cryptojacking attacks?
- RQ3Can unique code complexity features be used to accurately detect cryptojacking scripts among benign and malicious JavaScript?
- RQ4What is the actual impact of in-browser cryptojacking on system resources such as CPU and battery life?
- RQ5Is cryptojacking economically viable as a replacement for online advertising revenue?
Key findings
- Cryptojacking is widespread, with 5,703 suspect websites identified, primarily using Coinhive to mine Monero.
- The code-based analysis achieved a detection accuracy of approximately 96.4% in distinguishing cryptojacking scripts from other JavaScript.
- In-browser cryptojacking causes significant CPU and battery consumption, especially on mobile and battery-powered devices.
- Dynamic analysis revealed that cryptojacking scripts operate continuously during browsing sessions, leveraging persistent browser connections.
- The economic model of cryptojacking shows a substantial profit/loss gap, rendering it economically unviable as an alternative to online advertising.
- Existing blacklisting-based countermeasures are insufficient due to the rapid evolution and obfuscation of cryptojacking scripts.
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.