Netskope Threat Research Labs discovered a parasitic Monero mining malware campaign named xbooster that was successful in generating close to $100,000 USD using multiple Monero accounts. The attack kill chain used Amazon Web Services (AWS) and pay-per-install” (PPI)/ “pay-per-click” (PPC) model modus operandi. Since the attack kill chain uses both the cloud and web, it makes it hard to detect the full scope of an attack and perform complete remediation. Netskope for Web detects xbooster malware as Application.Downloader.Sasquor.Gen.1 and the payloads as Generic.Application.CoinMiner.1.02762A18, Gen:Variant.Zusy.280450 and Trojan.GenericKD.30600286.
During the last week of April, Netskope detected several Monero parasitic miners that used AWS for hosting the payloads and exfiltrating the victim’s host details. The malware campaign dubbed ‘xbooster’, shared many similarities with Zminer, discovered and detailed by us last year.
This blog provides a preliminary overview of coin miners, the cryptocurrency Monero, and xbooster. We will be posting a follow-up blog detailing the technical analysis of xbooster, the different xbooster strains, and the monero earnings of the associated accounts.
Cryptocurrencies – coin miners
Cryptocurrency has exponentially grown since inception starting with Bitcoin. Almost 1600 cryptocurrencies have evolved in this space and has attracted widespread adoption across the globe because of a blend of the wide range of acceptance and popularity, in addition of mining and generating coins using computing power.
Most importantly, features like decentralization and anonymity have induced threat actors and cybercriminals to use them for transactions and also for parasitic coin miners. The implementation of SMB wormed attacks that subsequently install coin miners for scaling mining operations in large scale has yielded profitable business to the attackers.
The most interesting twist for browser-based coin miner is the consumption of victims’ resources (CPU / memory) when the website is visited, as an alternative provision to bombarding annoying and enticing ads. These coin operations can seamlessly mine in a corporate environment as the machines and workstations have robust hardware and abundant resources that provide faster and efficient scaling.
Why Monero coin miner?
Of all the mining-based currency models, Monero miner is most commonly used and deployed by threat actors. Monero is a preferred choice because of the following:
- Privacy – Monero supports Stealth Addresses and Ring Confidential Transactions to apply privacy to every single transaction
- Faster Block Computation – Traditionally Monero blocks are produced at an average of every 2 minutes, and Bitcoin blocks are produced at an average of every 10 minutes
- Mining – Monero provides an egalitarian mining process and also the feasibility of CPU mining and browser-based mining for generating coins yielding a profitable revenue to its users
The valuation of a Monero coin is nearing $250. According to the website cryptocompare.com, the mining metrics of Monero is shown in Figure 1.
Figure 1: Mining metrics of Monero (XMR)
On the same note, according to the website minergate.com, Monero is currently the most profitable CPU mining coin as shown in Figure 2.
Figure 2: Comparison of CPU miners
Comparison of Xbooster and Zminer
Zminer is a mining malware that downloaded the payloads from Amazon S3 to a victim’s machine and also used a C&C registered to Amazon for exfiltrating the victim’s host details.
Unlike Zminer, which downloaded the stage payloads and also exfiltrated the victim’s host details from AWS, xbooster dropped the initial payloads from its resource. The resource is a password protected zip file which is unzipped during runtime. These payloads use the machine’s computing resources to perform coin mining. The dropped xbooster payloads then use AWS for downloading the next stage payload and also exfiltrating the victim’s host details. Though the initial version of the xbooster binaries dropped the miner payloads from the resource, the latest variants are downloading a zip file containing the miner payloads from Amazon S3.
Although Zminer and Xbooster shared many common similarities, one major difference is the choice of the miner. Xbooster used xmrig miner while Zminer used Claymore CryptoNote CPU Miner for a 32 bit Windows operating system or nheqminer for a 64 bit Windows operating system.
Xbooster Attack Kill chain – Depiction
The visual depiction of the attack kill chain of the xbooster Monero miner that we first observed is shown in Figure 3.
Figure 3: Initial version of the Xbooster Attack Kill chain
The depiction illustrates the use of pay-per-install” (PPI)/ “pay-per-click” (PPC) drive-by-download model for the distri