Zixu Wang1,2,3, Dongxu Peng1,2,3, Weiyuan Tong5, Zheng Wang6, and Zhanyong Tang1,2,3,4,*
Zhanyong Tang
1School of Computer Science, Northwest University, Xi'an, Shaanxi, 710127, China
2Xi'an Key Laboratory of Advanced Computing and Software Security
3Shaanxi Key Laboratory of Passive Internet of Things and Neural Computing
4Shaanxi International Joint Research Centre for the Battery-Free Internet of Things
5Xiangtan University, Xiangtan, Hunan, China
6University of Leeds, Woodhouse Lane, Leeds, West Yorkshire LS2 9JT, United Kingdom
*Corresponding author
In-browser cryptojacking attacks, where a website injects malicious code to secretly use a user’s computing resources for cryptocurrency mining during web browsing, are a significant concern for many users. Unfortunately, existing approaches for in-browser cryptojacking detection are inadequate as more sophisticated attacking techniques have emerged. This paper presents MINERLAMP, an improved approach for detecting in-browser cryptojacking activities. MINERLAMP models dynamic web browsing events as a multilateral relation graph. It then uses a graph neural network to reason about the relational graph and infer the likelihood of in-browser cryptojacking activities. Our extensive evaluation of real-life website datasets shows that MINERLAMP outperforms eleven state-of-the-art in-browser cryptojacking detection methods by providing a higher detection accuracy with a lower false-positive rate. We showcase that the overhead of MINERLAMP is small, enabling it to successfully detect in-browser cryptojacking activities in less than a minute on a low-end laptop by today’s standards.
In-browser cryptojacking, Evasion techniques, Graph neural networks, Behavior modeling, Multi-relational graph
Zixu Wang, Dongxu Peng, Weiyuan Tong, Zheng Wang, and Zhanyong Tang (2026). MINERLAMP: Behavior Modeling for Cryptojacking Detection. Journal of Networking and Network Applications, Volume 6, Issue 4, pp. 178–195. https://doi.org/10.33969/J-NaNA.2026.060401.
[1] E. Wustrow and B. VanderSloot, “DDoSCoin: Cryptocurrency with a malicious Proof-of-Work,” in 10th USENIX Workshop on Offensive Technologies (WOOT 16). Austin, TX: USENIX Association, Aug. 2016. [Online]. Available: https://www.usenix.org/conference/woot16/w orkshop-program/presentation/wustrow I
[2] “Cryptonote v 2.0,” https://bytecoin.org/old/whitepaper.pdf, 2013. I
[3] “Webassembly,” https://webassembly.org/, 2022. I
[4] D. Tanana, “Performance analysis of common browser extensions for cryptojacking detection,” in 2025 XIX International Symposium on Prob-lems of Redundancy in Information and Control Systems (Redundancy). IEEE, 2025, pp. 1–4. I
[5] E. Tekiner, A. Acar, A. S. Uluagac, E. Kirda, and A. A. Selcuk, “In-browser cryptomining for good: An untold story,” in 2021 IEEE Inter-national Conference on Decentralized Applications and Infrastructures (DAPPS). IEEE, 2021, pp. 20–29. I
[6] S. Varlioglu, B. Gonen, M. Ozer, and M. Bastug, “Is cryptojacking dead after coinhive shutdown?” in 2020 3rd International Conference on Information and Computer Technologies (ICICT). IEEE, 2020, pp. 385–389. I
[7] Z. Zhang, G. Hong, X. Li, Z. Fu, J. Zhang, M. Liu, C. Wang, J. Chen, B. Liu, H. Duan et al., “Under the dark: A systematical study of stealthy mining pools (ab) use in the wild,” in Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, 2023, pp. 326–340. I
[8] (2025, 7) Hackers infect over 3,500 websites with monero cryptojacker. Accessed: 2026-06-29. [Online]. Available: https://forklog.com/en/hac kers-infect-over-3500-websites-with-monero-cryptojacker/ I
[9] (2025, 7) Security report: At least 3500 websites have been maliciously injected with hidden monero mining scripts. Accessed: 2026-06-29.[Online]. Available: https://www-tc.aicoin.com/en/news-flash/2484659 I
[10] “Uk and usa government websites hacked to mine monero,” https://tiny url.com/y9cm2gtp, 2020. I
[11] “Government websites hit by cryptocurrency mining malware.” https: //tinyurl.com/y9vt24xc, 2020. I
[12] “Catalincimpanu. cryptojackers found on starbucks wifi network,github,piratestreamingsites.” https://www.bleepingcomput er.com/news/security/cryptojackers-found-on-starbucks-wif-network-g ithub-pirate-streaming-sites/., 2017. I
[13] “Chaoying liu and joseph c.chen. google’s doubleclick abused to deliver miners,” https://blog.trendmicro.com/trendlabs-security-intelligence/ma lvertising-campaign-abuses-googles-doubleclick-to-deliver-cryptocurre ncy-miners/, 2018. I
[14] “Minerblock,” https://github.com/xd4rker/MinerBlock, 2021. I, V-B
[15] “Dr. mine,” https://github.com/1lastBr3ath/drmine, 2019. I
[16] “Nocoin,” https://github.com/keraf/NoCoin, 2021. I, V-B
[17] M. A. Razali and S. Mohd Shariff, “Cmblock: In-browser detection and prevention cryptojacking tool using blacklist and behavior-based detec-tion method,” in International Visual Informatics Conference. Springer, 2019, pp. 404–414. I
[18] A. D. Yulianto, P. Sukarno, A. A. Warrdana, and M. Al Makky, “Mitigation of cryptojacking attacks using taint analysis,” in 2019 4th International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE). IEEE, 2019, pp. 234–238. I
[19] M. Musch, C. Wressnegger, M. Johns, and K. Rieck, “Thieves in the browser: Web-based cryptojacking in the wild,” in Proceedings of the 14th International Conference on Availability, Reliability and Security, 2019, pp. 1–10. I
[20] G. Hong, Z. Yang, S. Yang, L. Zhang, Y. Nan, Z. Zhang, M. Yang, Y. Zhang, Z. Qian, and H. Duan, “How you get shot in the back: A sys-tematical study about cryptojacking in the real world,” in Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, 2018, pp. 1701–1713. I, V-B
[21] M. Saad, A. Khormali, and A. Mohaisen, “End-to-end analysis of in-browser cryptojacking,” arXiv preprint arXiv:1809.02152, 2018. I, VII
[22] T. Sermchaiwong and J. Shen, “Proof-of-theft: Dynamic graph-based fin-gerprinting of in-browser cryptomining,” in 40th European Conference on Object-Oriented Programming (ECOOP 2026). Schloss Dagstuhl–Leibniz-Zentrum f¨ur Informatik, 2026, pp. 25–1. I
[23] A. Ar, F. Naseem, L. Babun, E. Tekiner, and S. Uluagac, “Minos: A lightweight real-time cryptojacking detection system,” in The Network and Distributed System Security Symposium (NDSS) 2021, 2021. I, V-B, VII
[24] W. Bian, W. Meng, and M. Zhang, “Minethrottle: Defending against wasm in-browser cryptojacking,” in Proceedings of The Web Conference 2020, 2020, pp. 3112–3118. I, VII
[25] R. K. Konoth, E. Vineti, V. Moonsamy, M. Lindorfer, C. Kruegel, H. Bos, and G. Vigna, “Minesweeper: An in-depth look into drive-by cryptocurrency mining and its defense,” in Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, 2018, pp. 1714–1730. I, II-A, V-B
[26] J. R¨uth, T. Zimmermann, K. Wolsing, and O. Hohlfeld, “Digging into browser-based crypto mining,” in Proceedings of the Internet Measure-ment Conference 2018, 2018, pp. 70–76. I
[27] W. Wang, B. Ferrell, X. Xu, K. W. Hamlen, and S. Hao, “Seismic: Se-cure in-lined script monitors for interrupting cryptojacks,” in European Symposium on Research in Computer Security. Springer, 2018, pp. 122–142. I, V-B
[28] A. Romano, Y. Zheng, and W. Wang, “Minerray: semantics-aware analy-sis for ever-evolving cryptojacking detection,” in 2020 35th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2020, pp. 1129–1140. I, V-B
[29] R. Ning, C. Wang, C. Xin, J. Li, L. Zhu, and H. Wu, “Capjack: Capture in-browser crypto-jacking by deep capsule network through behavioral analysis,” in IEEE INFOCOM 2019-IEEE Conference on Computer Communications. IEEE, 2019, pp. 1873–1881. I, V-B, VII
[30] R. Tahir, S. Durrani, F. Ahmed, H. Saeed, F. Zaffar, and S. Ilyas, “The browsers strike back: Countering cryptojacking and parasitic miners on the web,” in IEEE INFOCOM 2019-IEEE Conference on Computer Communications. IEEE, 2019, pp. 703–711. I, VII
[31] A. Hussain, J. Flores, and P. Papadimitratos, “Deep learning-based cryptojacking detection in cloud containerized environments,” in 2025 IEEE Middle East Conference on Communications and Networking (MECOM). IEEE, 2025, pp. 1–6. I
[32] A. Gangwal, S. G. Piazzetta, G. Lain, and M. Conti, “Detecting covert cryptomining using hpc,” in International Conference on Cryptology and Network Security. Springer, 2020, pp. 344–364. I
[33] G. Mani, V. Pasumarti, B. Bhargava, F. T. Vora, J. MacDonald, J. King, and J. Kobes, “Decrypto pro: Deep learning based cryptomining malware detection using performance counters,” in 2020 IEEE International Con-ference on Autonomic Computing and Self-Organizing Systems (ACSOS). IEEE, 2020, pp. 109–118. I
[34] C. Kelton, A. Balasubramanian, R. Raghavendra, and M. Srivatsa, “Browser-based deep behavioral detection of web cryptomining with coinspy,” in Workshop on Measurements, Attacks, and Defenses for the Web (MADWeb) 2020, 2020, pp. 1–12. I, V-B, VII
[35] D. Tanana, “Behavior-based detection of cryptojacking malware,” in 2020 Ural Symposium on Biomedical Engineering, Radioelectronics and Information Technology (USBEREIT). IEEE, 2020, pp. 0543–0545. I
[36] E. N. Mutombo, M. W. Nkongolo, and M. Tokmak, “Cryptojacking detection using model-agnostic explainability,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 41, no. 1, pp. 394–408, 2026. I
[37] E. Tekiner, A. Acar, and A. S. Uluagac, “A lightweight iot cryptojacking detection mechanism in heterogeneous smart home networks,” in The Network and Distributed System Security Symposium (NDSS) 2022, 2022. I
[38] J. Rauchberger, S. Schrittwieser, T. Dam, R. Luh, D. Buhov, G. P¨otzelsberger, and H. Kim, “The other side of the coin: A frame-work for detecting and analyzing web-based cryptocurrency mining campaigns,” in Proceedings of the 13th International Conference on Availability, Reliability and Security, 2018, pp. 1–10. I
[39] M. Ishii, S. Shibuya, and K. Tanaka, “Effective analysis of encrypted traffic for mining detection.” in ICISSP (1), 2026, pp. 61–72. I
[40] A. Ahmad, W. Shafiuddin, M. N. Kama, and M. M. Saudi, “A new cryp-tojacking malware classifier model based on dendritic cell algorithm,” in Proceedings of the 3rd International Conference on Vision, Image and Signal Processing, 2019, pp. 1–5. I
[41] H. N. C. Neto, M. A. Lopez, N. C. Fernandes, and D. M. Mattos, “Minecap: super incremental learning for detecting and blocking cryp-tocurrency mining on software-defined networking,” Annals of Telecom-munications, vol. 75, no. 3, pp. 121–131, 2020. I
[42] J. Z. i Mu˜noz, J. Su´arez-Varela, and P. Barlet-Ros, “Detecting cryp-tocurrency miners with netflow/ipfix network measurements,” in 2019 IEEE International Symposium on Measurements & Networking (M&N). IEEE, 2019, pp. 1–6. I
[43] T. O. Adigun, A. Oshinubi, and I. Eweoya, “Cryptojacking detection using ml techniques.” IUP Journal of Computer Sciences, vol. 19, no. 1, 2025. I
[44] H. Darabian, S. Homayounoot, A. Dehghantanha, S. Hashemi, H. Karim-ipour, R. M. Parizi, and K.-K. R. Choo, “Detecting cryptomining malware: a deep learning approach for static and dynamic analysis,” Journal of Grid Computing, vol. 18, no. 2, pp. 293–303, 2020. I
[45] N. Lachtar, A. A. Elkhail, A. Bacha, and H. Malik, “A cross-stack approach towards defending against cryptojacking,” IEEE Computer Architecture Letters, vol. 19, no. 2, pp. 126–129, 2020. I
[46] A. Kharraz, Z. Ma, P. Murley, C. Lever, J. Mason, A. Miller, N. Borisov, M. Antonakakis, and M. Bailey, “Outguard: Detecting in-browser covert cryptocurrency mining in the wild,” in The World Wide Web Conference, 2019, pp. 840–852. I, II-C, III-B, IV-B, V-B, VII
[47] I. Petrov, L. Invernizzi, and E. Bursztein, “Coinpolice: Detecting hidden cryptojacking attacks with neural networks,” arXiv preprint arXiv:2006.10861, 2020. I, II-C, 12, VII
[48] E. Tekiner, A. Acar, A. S. Uluagac, E. Kirda, and A. A. Selcuk, “Sok: Cryptojacking malware,” arXiv preprint arXiv:2103.03851, 2021. I, II- B3, II, V-A2, VII
[49] J. D. P. Rodriguez and J. Posegga, “Rapid: Resource and api-based detection against in-browser miners,” in Proceedings of the 34th Annual Computer Security Applications Conference, 2018, pp. 313–326. I
[50] K. Xu, W. Hu, J. Leskovec, and S. Jegelka, “How powerful are graph neural networks?” arXiv preprint arXiv:1810.00826, 2018. I, IV-D
[51] Y. Feng, J. Li, and D. Sisodia, “Cj-sniffer: Measurement and content-agnostic detection of cryptojacking traffic,” in Proceedings of the 25th International Symposium on Research in Attacks, Intrusions and De-fenses, 2022, pp. 482–494. I, V-B, VII
[52] “Monero (xmr): Private digital currency,” https://www.getmonero.org/, 2022. II-A
[53] “Sumokoin: Privacy without compromise,” https://sumokoin.org/, 2022. II- A
[54] M. Musch, C. Wressnegger, M. Johns, and K. Rieck, “New kid on the web: A study on the prevalence of webassembly in the wild,” in Detection of Intrusions and Malware, and Vulnerability Assessment: 16th International Conference, DIMVA 2019, Gothenburg, Sweden, June 19–20, 2019, Proceedings 16. Springer, 2019, pp. 23–42. II-A
[55] “Coinhive snapshots that taken form webarchive,” https://web.archive. org/web/20181101000000*/coinhive.com, 2022. II-A
[56] R. Holz, D. Perino, M. Varvello, J. Amann, A. Continella, N. Evans, I. Leontiadis, C. Natoli, and Q. Scheitle, “A retrospective analysis of user exposure to (illicit) cryptocurrency mining on the web,” arXiv preprint arXiv:2004.13239, 2020. II-A
[57] P. H. Meland, B. H. Johansen, and G. Sindre, “An experimental analysis of cryptojacking attacks,” in Nordic Conference on Secure IT Systems. Springer, 2019, pp. 155–170. II-A
[58] P. Papadopoulos, P. Ilia, and E. Markatos, “Truth in web mining: Measuring the profitability and the imposed overheads of cryptojacking,” in International Conference on Information Security. Springer, 2019, pp. 277–296. II-A
[59] S. Dashevskyi, Y. Zhauniarovich, O. Gadyatskaya, A. Pilgun, and H. Ouhssain, “Dissecting android cryptocurrency miners,” in Proceed-ings of the Tenth ACM Conference on Data and Application Security and Privacy, 2020, pp. 191–202. II-A
[60] H. L. Bijmans, T. M. Booij, and C. Doerr, “Just the tip of the iceberg: Internet-scale exploitation of routers for cryptojacking,” in Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communica-tions Security, 2019, pp. 449–464. II-A
[61] “Cryptoloot - earn more from your traffic,” https://crypto-loot.org/, 2022. II-A
[62] “Free javascript mining - browser mining use our javascript web miner and earn money with your page traffic!” https://www.coinimp.com/, 2022. II-A
[63] “Puppeteer: Headless chrome node api,” https://developers.google.com/web/tools/puppeteer, 2022. IV-B
[64] C. Tu, W. Zhang, Z. Liu, M. Sun et al., “Max-margin deepwalk: Discriminative learning of network representation.” in IJCAI, vol. 2016, 2016, pp. 3889–3895. IV-D
[65] T. Gao, W. Peng, D. Sisodia, T. K. Saha, F. Li, and M. Al Hasan, “Android malware detection via graphlet sampling,” IEEE Transactions on Mobile Computing, vol. 18, no. 12, pp. 2754–2767, 2018. IV-D
[66] J. Yan, G. Yan, and D. Jin, “Classifying malware represented as control flow graphs using deep graph convolutional neural network,” in 2019 49th annual IEEE/IFIP international conference on dependable systems and networks (DSN). IEEE, 2019, pp. 52–63. IV-D
[67] Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel, “Gated graph sequence neural networks,” arXiv preprint arXiv:1511.05493, 2015. IV- D
[68] P. Veliˇckovi´c, G. Cucurull, A. Casanova, A. Romero, P. Lio, and Y. Ben-gio, “Graph attention networks,” arXiv preprint arXiv:1710.10903, 2017.
IV- D
[69] M. Schlichtkrull, T. N. Kipf, P. Bloem, R. v. d. Berg, I. Titov, and M. Welling, “Modeling relational data with graph convolutional net-works,” in European semantic web conference. Springer, 2018, pp. 593–607. IV-D
[70] A. Leman and B. Weisfeiler, “A reduction of a graph to a canonical form and an algebra arising during this reduction,” Nauchno-Technicheskaya Informatsiya, vol. 2, no. 9, pp. 12–16, 1968. IV-D
[71] “Coinblockerlists,” https://gitlab.com/ZeroDot1/CoinBlockerLists, 2021. II, V-A2
[72] “Alexa-top-1m,” http://s3.amazonaws.com/alexa-static/top-1m.csv.zip, 2022. II, V-A2
[73] “Publicwww: Source code search engine,” https://publicwww.com/, 2022. V-A2
[74] F. J. Massey Jr, “The kolmogorov-smirnov test for goodness of fit,” Journal of the American statistical Association, vol. 46, no. 253, pp. 68–78, 1951. V-B
[75] Microsoft, “Neural Network Intelligence,” 1 2021. [Online]. Available: https://github.com/microsoft/nni V-B
[76] S. Bhansali, A. Aris, A. Acar, H. Oz, and A. S. Uluagac, “A first look at code obfuscation for webassembly,” in Proceedings of the 15th ACM Conference on Security and Privacy in Wireless and Mobile Networks, 2022, pp. 140–145. V-C, V-F1, V-F1
[77] A. Tharwat, “Principal component analysis-a tutorial,” Inderscience enterprises, 2009. V-E
[78] “The tigress obfuscator,” https://tigress.wtf, 2023. V-F1
[79] “javascript-obfuscator,” https://github.com/javascript-obfuscator/javascri pt-obfuscator, 2023. V-F1
[80] K. Jayasinghe and G. Poravi, “A survey of attack instances of crypto-jacking targeting cloud infrastructure,” in Proceedings of the 2020 2nd Asia pacific information technology conference, 2020, pp. 100–107. VII