journal article·2023-02-04Open access

A Real-Time Hybrid Approach to Combat In-Browser Cryptojacking Malware

Muhammad Haris Khan Abbasi, Subhan Ullah, Tahir Ahmad, Attaullah Buriro

Applied Sciences· Volume 13· Issue 4

Abstract

Cryptojacking is a type of computer piracy in which a hacker uses a victim’s computer resources, without their knowledge or consent, to mine for cryptocurrency. This is made possible by new memory-based cryptomining techniques and the growth of new web technologies such as WebAssembly, allowing mining to occur within a browser. Most of the research in the field of cryptojacking has focused on detection methods rather than prevention methods. Some of the detection methods proposed in the literature include using static and dynamic features of in-browser cryptojacking malware, along with machine learning algorithms such as Support Vector Machine (SVM), Random Forest (RF), and others. However, these methods can be effective in detecting known cryptojacking malware, but they may not be able to detect new or unknown variants. The existing prevention methods are shown to be effective only against web-assembly (WASM)-based cryptojacking malware and cannot handle mining service-providing scripts that use non-WASM modules. This paper proposes a novel hybrid approach for detecting and preventing web-based cryptojacking. The proposed approach performs the real-time detection and prevention of in-browser cryptojacking malware, using the blacklisting technique and statistical code analysis to identify unique features of non-WASM cryptojacking malware. The experimental results show positive performances in the ease of use and efficiency, with the detection accuracy improved from 97% to 99.6%. Moreover, the time required to prevent already known malware in real time can be decreased by 99.8%.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Malware Detection Techniques · Spam and Phishing Detection · Network Security and Intrusion Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science, National University of Computer and Emerging Sciences (NUCES-FAST), Islamabad 44000, Pakistan

Center for Cybersecurity, Brunno Kessler Foundation, 38123 Trento, Italy

Faculty of Computer Science, Free University Bozen-Bolzano, 39100 Bolzano, Italy

References (39)

Show source-provided references
1. Nakamoto, S. (2008). Bitcoin: A peer-to-peer electronic cash system. Decentralized Bus. Rev., 21260.
2. The Effects of Cryptocurrency Trading Websites on Airlines’ Advertisement Campaigns10.3390/jtaer16070169 ↗
3. (2022, May 31). Number of Cryptocoins. Available online: https://coinmarketcap.com/.
4. The Key Success Factors for an M-Learning Cryptocurrency Application
5. An efficient AES 32-bit architecture resistant to fault attacks
6. Saad, M., Khormali, A., and Mohaisen, A. (2019, January 13–15). Dine and dash: Static, dynamic, and economic analysis of in-browser cryptojacking. Proceedings of the APWG Symposium on Electronic Crime Research (eCrime), Pittsburgh, PA, USA.10.1109/eCrime47957.2019.9037576 ↗
7. Pastrana, S., and Suarez-Tangil, G. (2019, January 21–23). A first look at the crypto-mining malware ecosystem: A decade of unrestricted wealth. Proceedings of the Internet Measurement Conference, Amsterdam, The Netherlands.10.1145/3355369.3355576 ↗
8. Jayasinghe, K., and Poravi, G. (2020, January 17–19). A survey of attack instances of cryptojacking targeting cloud infrastructure. Proceedings of the 2nd Asia Pacific Information Technology Conference, Bali Island, Indonesia.10.1145/3379310.3379323 ↗
9. Detecting cryptomining malware: A deep learning approach for static and dynamic analysis10.1007/s10723-020-09510-6 ↗
10. Yulianto, A.D., Sukarno, P., Warrdana, A.A., and Makky, M.A. (2019, January 20–21). Mitigation of Cryptojacking Attacks Using Taint Analysis. Proceedings of the 4th International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE), Yogyakarta, Indonesia.10.1109/ICITISEE48480.2019.9003742 ↗
11. Badioze Zaman, H., Smeaton, A.F., Shih, T.K., Velastin, S., Terutoshi, T., Mohamad Ali, N., and Ahmad, M.N. (2019, January 19–21). CMBlock: In-Browser Detection and Prevention Cryptojacking Tool Using Blacklist and Behavior-Based Detection Method. Proceedings of the Advances in Visual Informatics, Bangi, Malaysia.10.1007/978-3-030-34032-2 ↗
12. Bian, W., Meng, W., and Zhang, M. (2020, January 20–24). MineThrottle: Defending against Wasm In-Browser Cryptojacking. Proceedings of the Web Conference, WWW ’20, Taipei, Taiwan.10.1145/3366423.3380085 ↗
13. (2022, May 31). WebAssembly-Language. Available online: https://webassembly.org/.
14. Tekiner, E., Acar, A., Uluagac, A.S., Kirda, E., and Selcuk, A.A. (2021, January 6–20). SoK: Cryptojacking Malware, 2021. Proceedings of the 2021 IEEE European Symposium on Security and Privacy (EuroS&P), Vienna, Austria.10.1109/EuroSP51992.2021.00019 ↗
15. Rodriguez, J.D.P., and Posegga, J. (2018, January 3–7). RAPID: Resource and API-Based Detection Against In-Browser Miners. Proceedings of the 34th Annual Computer Security Applications Conference, ACSAC ’18, San Juan, PR, USA.10.1145/3274694.3274735 ↗
16. Rüth, J., Zimmermann, T., Wolsing, K., and Hohlfeld, O. (November, January 31). Digging into Browser-Based Crypto Mining. Proceedings of the Internet Measurement Conference, IMC ’18, Boston, MA, USA.
17. (2022, May 31). Monero. Available online: https://www.getmonero.org/.
18. Kelton, C., Balasubramanian, A., Raghavendra, R., and Srivatsa, M. (2020, January 23–26). Browser-Based Deep Behavioral Detection of Web Cryptomining with CoinSpy. Proceedings of the 27th Annual Network and Distributed System Security Symposium, NDSS, San Diego, CA, USA.10.14722/madweb.2020.23002 ↗
19. Naseem, F., Aris, A., Babun, L., Tekiner, E., and Uluagac, S. (2021, January 21–25). MINOS: A lightweight real-time cryptojacking detection system. Proceedings of the 28th Annual Network and Distributed System Security Symposium, NDSS, Virtual.10.14722/ndss.2021.24444 ↗
20. Rauchberger, J., Schrittwieser, S., Dam, T., Luh, R., Buhov, D., Pötzelsberger, G., and Kim, H. (2018, January 27–30). The Other Side of the Coin: A Framework for Detecting and Analyzing Web-Based Cryptocurrency Mining Campaigns. Proceedings of the 13th International Conference on Availability, Reliability and Security, ARES, Hamburg, Germany.10.1145/3230833.3230869 ↗
21. i Muñoz, J.Z., Suárez-Varela, J., and Barlet-Ros, P. (2019, January 8–10). Detecting cryptocurrency miners with NetFlow/IPFIX network measurements. Proceedings of the IEEE International Symposium on Measurements & Networking (M&N), Catania, Italy.10.1109/IWMN.2019.8804995 ↗
22. Musch, M., Wressnegger, C., Johns, M., and Rieck, K. (2019, January 26–29). Thieves in the Browser: Web-Based Cryptojacking in the Wild. Proceedings of the 14th International Conference on Availability, Reliability and Security, ARES ’19, Canterbury, UK.10.1145/3339252.3339261 ↗
23. Liu, J., Zhao, Z., Cui, X., Wang, Z., and Liu, Q. (2018, January 18–21). A Novel Approach for Detecting Browser-Based Silent Miner. Proceedings of the IEEE Third International Conference on Data Science in Cyberspace (DSC), Guangzhou, China.10.1109/DSC.2018.00079 ↗
24. Caprolu, M., Raponi, S., Oligeri, G., and Pietro, R.D. (2019). Crypto Mining Makes Noise. arXiv.10.1155/2019/6874592 ↗
25. Gangwal, A., Piazzetta, S.G., Lain, G., and Conti, M. (2020, January 14–16). Detecting Covert Cryptomining using HPC. Proceedings of the Cryptology and Network Security: 19th International Conference, CANS 2020, Vienna, Austria.10.1007/978-3-030-65411-5_17 ↗
26. Tahir, R., Durrani, S., Ahmed, F., Saeed, H., Zaffar, F., and Ilyas, S. (May, January 29). The Browsers Strike Back: Countering Cryptojacking and Parasitic Miners on the Web. Proceedings of the IEEE INFOCOM 2019—IEEE Conference on Computer Communications, Paris, France.10.1109/INFOCOM.2019.8737360 ↗
27. Konoth, R.K., Vineti, E., Moonsamy, V., Lindorfer, M., Kruegel, C., Bos, H., and Vigna, G. (2018, January 15–19). MineSweeper: An In-Depth Look into Drive-by Cryptocurrency Mining and Its Defense. Proceedings of the CCS ‘18: 2018 ACM SIGSAC Conference on Computer and Communications Security, Toronto, ON, Canada.10.1145/3243734.3243858 ↗
28. Kharraz, A., Ma, Z., Murley, P., Lever, C., Mason, J., Miller, A., Borisov, N., Antonakakis, M., and Bailey, M. (2019, January 13–17). Outguard: Detecting In-Browser Covert Cryptocurrency Mining in the Wild. Proceedings of the The World Wide Web Conference, WWW ’19, San Francisco, CA, USA.10.1145/3308558.3313665 ↗
29. Hong, G., Yang, Z., Yang, S., Zhang, L., Nan, Y., Zhang, Z., Yang, M., Zhang, Y., Qian, Z., and Duan, H. (2018, January 15–19). How You Get Shot in the Back: A Systematical Study about Cryptojacking in the Real World. Proceedings of the ACM SIGSAC Conference on Computer and Communications Security, CCS ’18, Toronto, ON, Canada.10.1145/3243734.3243840 ↗
30. Lopez, J., Zhou, J., and Soriano, M. (2018, January 3–7). SEISMIC: SEcure In-lined Script Monitors for Interrupting Cryptojacks. Proceedings of the Computer Security, Barcelona, Spain.
31. An Insight into Deep Learning based Cryptojacking Detection Model10.36548/jtcsst.2022.3.006 ↗
32. CJSpector: A Novel Cryptojacking Detection Method Using Hardware Trace and Deep Learning10.1007/s10723-022-09621-2 ↗
33. Hernandez-Suarez, A., Sanchez-Perez, G., Toscano-Medina, L.K., Olivares-Mercado, J., Portillo-Portilo, J., Avalos, J.G., and García Villalba, L.J. (2022). Detecting Cryptojacking Web Threats: An Approach with Autoencoders and Deep Dense Neural Networks. Appl. Sci., 12.10.3390/app12073234 ↗
34. Mani, G., Pasumarti, V., Bhargava, B., Vora, F., MacDonald, J., King, J., and Kobes, J. (2020, January 17–21). DeCrypto Pro: Deep Learning Based Cryptomining Malware Detection Using Performance Counters. Proceedings of the IEEE International Conference on Autonomic Computing and Self-Organizing Systems (ACSOS), Washington, DC, USA.10.1109/ACSOS49614.2020.00032 ↗
35. (2022, May 31). Long Short-Term Memory. Available online: https://en.wikipedia.org/wiki/Long_short-term_memory.
36. (2022, May 31). Coinhive. Available online: https://krebsonsecurity.com/2018/03/who-and-what-is-coinhive/.
37. (2022, May 31). Metrics. Available online: https://onlineconfusionmatrix.com/.
38. (2022, May 31). Alexa. Available online: https://www.alexa.com/.
39. (2022, May 31). PublicWWW. Available online: https://publicwww.com/.