[Paper Review] Web-based Cryptojacking in the Wild
This paper presents a large-scale empirical study on web-based cryptojacking using a 3-phase analysis approach to detect mining scripts in the Alexa Top 1 million websites. It finds that 1 in 500 sites hosts a cryptojacking script, primarily using obfuscated JavaScript and WebAssembly from the CoinHive framework, with estimated daily revenues ranging from a few cents to $340 USD, while revealing that current blacklist-based defenses are ineffective against customized variants.
With the introduction of memory-bound cryptocurrencies, such as Monero, the implementation of mining code in browser-based JavaScript has become a worthwhile alternative to dedicated mining rigs. Based on this technology, a new form of parasitic computing, widely called cryptojacking or drive-by mining, has gained momentum in the web. A cryptojacking site abuses the computing resources of its visitors to covertly mine for cryptocurrencies. In this paper, we systematically explore this phenomenon. For this, we propose a 3-phase analysis approach, which enables us to identify mining scripts and conduct a large-scale study on the prevalence of cryptojacking in the Alexa 1 million websites. We find that cryptojacking is common, with currently 1 out of 500 sites hosting a mining script. Moreover, we perform several secondary analyses to gain insight into the cryptojacking landscape, including a measurement of code characteristics, an estimate of expected mining revenue, and an evaluation of current blacklist-based countermeasures.
Motivation & Objective
- To systematically investigate the prevalence and characteristics of web-based cryptojacking in real-world websites.
- To evaluate the effectiveness of existing detection mechanisms, such as blacklists and browser extensions, against evolving cryptojacking techniques.
- To estimate the financial impact of cryptojacking by tracing mining activity to specific wallets and API keys.
- To identify patterns in mining code diversity, obfuscation, and multi-currency mining across infected sites.
- To highlight the limitations of static detection and advocate for run-time analysis in browser-level protection
Proposed method
- Instrumented a browser to monitor code execution, focusing on CPU utilization, function repetition, and suspicious script patterns as indicators of mining activity.
- Used V8’s profiler to measure per-function CPU usage over time to confirm mining behavior in real-time execution.
- Traced mining activity to individual wallets and API keys to estimate revenue generation per site.
- Classified mining scripts into families based on code similarity, particularly identifying widespread use of CoinHive’s WebAssembly components.
- Conducted a large-scale analysis across the Alexa Top 1 million websites without visiting sub-pages to isolate primary hosting sites.
- Evaluated the efficacy of existing defenses by testing their ability to detect both known and obfuscated mining variants.
Experimental results
Research questions
- RQ1What is the prevalence of web-based cryptojacking across the Alexa Top 1 million websites?
- RQ2How do the code characteristics and obfuscation techniques of mining scripts vary across different cryptojacking families?
- RQ3What is the estimated financial revenue generated by individual cryptojacking operations based on visitor traffic and system performance?
- RQ4How effective are current blacklist-based detection mechanisms against evolving, obfuscated mining code?
- RQ5To what extent do multiple mining scripts coexist on the same website, and what does this imply about infection vectors?
Key findings
- Approximately 1 in 500 websites in the Alexa Top 1 million hosts a web-based cryptojacking script that begins mining immediately upon visit.
- The majority of mining scripts use WebAssembly code derived from the CoinHive project, indicating widespread reuse of a common framework.
- Mining scripts are highly obfuscated, and while they target multiple cryptocurrencies like Monero, Bytecoin, and Electroneum, they rely on the same underlying CryptoNote protocol.
- Estimated daily revenue from individual miners ranges from a few cents to $340 USD, depending on visitor volume and system performance.
- Blacklist-based defenses are ineffective against customized or obfuscated variants of mining code, as they rely on static signatures.
- Several websites host multiple mining scripts simultaneously, suggesting possible coincident infections or shared malicious infrastructure.
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.