Cryptocurrency Mining Code Sneaks Into PCs
Did you know that someone could be making money from your system's resources?
Recently in Korea, a new attack was discovered where the attacker snuck a cryptocurrency mining code into a website without the knowledge of the administrator.
Unlike browser-based mining programs that are installed in the system for operation, the reported approach can operate the program on the web browser simply by adding a specific code inside a web page. The mining program will then use the system resources of the website visitor to mine cryptocurrency.
Here is an analysis of an attack case. Figure 1 below shows a screenshot of a South Korean torrent website. Externally, the main page of the website has advertisements and bulletin boards like a normal website with no sign of a possible threat.
[Figure 1] A website discovered for having a code for executing a mining program
However, looking into the internal information of the main webpage shows that a code for executing a mining program was inserted as shown in Figure 2. The deepMiner script is the code for a web browser-based mining program.
[Figure 2] Internal information of the main page of the website
Once the program runs, it makes use of the visitor's system resources to mine cryptocurrency. And such website visitors can experience a significant delay in their system without the knowledge that their system has been hijacked to mine cryptocurrency. Figure 3 shows how CPU usage soars after the mining program is executed.
[Figure 3] CPU usage before (blue box) and after (red box) executing the mining program
The mining program is different from malware in the sense that it does not leak system information or perform harmful operations such as backdoors. However, it is still a problem as the system resources are used without the consent of the owner.
Cryptocurrency values are skyrocketing as the global financial market is over-heating, and there is a definite rise in open-source-based mining programs. User vigilance is required as new attack methods using mining programs are also expected to rise as it is easier for a cybercrime organization to create open-source-based mining programs than malware.