基于中间语义的加密挖矿检测研究
etecting Crypto-mining based on intermediate semantics
加密挖矿脚本出现了基于CryptoNight变异算法和不同语言实现的变种,可以逃逸CMTracker、MineSweeper和Outguard的检测。主要原因是基于CryptoNight变异算法的变种样本的核心哈希函数和CryptoNight有很大差异,导致根据函数签名和WebAssembly指令的识别失效。同时已有工具无法识别利用JavaScript实现的新样本。本文通过分析目前典型的加密挖矿样本,总结了加密挖矿的核心哈希函数特征;构建挖矿样本的中间语言表示规范,结合已知挖矿样本给出了IR映射表;提取挖矿语义,在此基础上设计了一个挖矿检测算法。该算法可以不受样本实现语言的影响,检测加密挖矿样本及其变种。我们在Alexa排名前100万网站上的评估表明,它能够以低误报率和低误报率准确检测浏览器内加密挖矿。
In this paper, we mainly solves the problem that crypto-ming detection tools are easily affected by programming languages, which leads to a significant reduction in the accuracy rate. At present, there are variants of crypto-mining scripts based on CryptoNight variant algorithms and implementation in different programming languages, which can escape the detection of CMTracker, MineSweeper and Outguard. The reason is that core hash functions of the variant samples based on CryptoNight variant algorithmsare different from that of CryptoNight, which leads to the failure of the identification based on function signature and Wasm instruction. At the same time, existing tools cannot recognize new samples implemented with JS. This paper summarizes the core hash functions\'features of mining by analyzing current typical scripts. Firstly, we construct the intermediate language representation specification of mining scripts and give the corresponding mapping table. Secondly, we extract mining semantics and design a mining detection algorithm. The algorithm can detect crypto-mining scripts and their variants regardless of the sample programming language. Our evaluation with the Alexa top 1M websites demonstrates that it can accurately detect in-browser cryptomining with both a low false positive rate and a low false negative rate.
赵立健、陈淼、涂腾飞、张华
计算技术、计算机技术
加密挖矿中间表示JavaScriptWebAssembly
rypto-mingIntermediate representationJavaScriptWebAssembly
赵立健,陈淼,涂腾飞,张华.基于中间语义的加密挖矿检测研究[EB/OL].(2022-02-25)[2025-04-29].http://www.paper.edu.cn/releasepaper/content/202202-60.点此复制
评论