ZeroHour
Kaspersky Securelistpublished ()ingested @Securelist

Xmrig Miner

highRansomwareimportance 60CVE-2016-0099

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2016-0099
Local Privilege Escalation in Microsoft Windows Secondary Logon Service

CVE-2016-0099 is a privilege escalation flaw in the Windows Secondary Logon Service, which fails to properly manage request handles in memory. An attacker who can already execute code on a vulnerable Windows system triggers the flaw through the service's request handling and gains the ability to run arbitrary code as administrator, converting a low-privilege foothold into full system control. Microsoft Windows systems lacking the vendor's updates are affected; the CISA data lists the impacted product only as 'Microsoft Windows' without specific version ranges. Exploitation is confirmed in the wild: CISA added the bug to its Known Exploited Vulnerabilities catalog on 2022-03-03 with known ransomware use, and EPSS places the 30-day exploitation probability at 37.2% (98th percentile). No public proof-of-concept is cataloged in the source data.

Do: Apply Microsoft's March 2016 security updates (MS16-032) on all Windows systems, per the vendor instructions required by the CISA KEV entry, prioritizing legacy and internet-reachable hosts. On systems that cannot be patched, disable the Secondary Logon service as a mitigation (noting that 'Run as' will stop working), and hunt for local privilege-escalation and ransomware-staging activity on unpatched Windows machines.

7.837% KEV ransomware PoC ×4
  • Microsoft Windows
massOn the order of millions of unpatched Windows systems (Windows runs on >1 billion active devices; only machines missing the March 2016 updates remain…

Indicators of compromiseAll →

TypeIndicatorContext
domain2fsdfsdgvsdvzxcwwef-defender.xyzins taskhostw[.]com svchost[.]xyz sihost[.]xyz srhost[.]xyz 2fsdfsdgvsdvzxcwwef-defender[.]xyz Cryptowallets used for substitution LTC: LPor3PrQHcQv4obY
domainsihost.xyzs of compromise (IoC) Domains taskhostw[.]com svchost[.]xyz sihost[.]xyz srhost[.]xyz 2fsdfsdgvsdvzxcwwef-defender[.]xyz Cryptowal
domainsrhost.xyzse (IoC) Domains taskhostw[.]com svchost[.]xyz sihost[.]xyz srhost[.]xyz 2fsdfsdgvsdvzxcwwef-defender[.]xyz Cryptowallets used for
domainsvchost.xyziner Indicators of compromise (IoC) Domains taskhostw[.]com svchost[.]xyz sihost[.]xyz srhost[.]xyz 2fsdfsdgvsdvzxcwwef-defender[.]
domaintaskhostw.comool.Win64.XMRigMiner Indicators of compromise (IoC) Domains taskhostw[.]com svchost[.]xyz sihost[.]xyz srhost[.]xyz 2fsdfsdgvsdvzxcww
md50880430c257ce49d7490099d2a8dd01aER\1saas\1saas.exe — ransomware Trojan-Ransom.Win32.Crusis (0880430c257ce49d7490099d2a8dd01a) EVER\1saas \LogDelete — miner loader (6ca170ece252721ed6cc
md51273d0062a9c0a87e2b53e841b261976qPQ5xKftePPt8 DODGE: DEUjj7mi5N67b6LYZPApyoV8Ek8hdNL1Vy MD5 1273d0062a9c0a87e2b53e841b261976 16b9c67bc36957062c17c0eff03b48f3 d202d4a3f832a08cb8122d0154
md51357b42546dc1d202aa9712f7b29aa0da3f832a08cb8122d0154712dd1 6ca170ece252721ed6cc3cfa3302d6f0 1357b42546dc1d202aa9712f7b29aa0d 78f5094fa66a9aa4dc10470d5c3e3155
md516b9c67bc36957062c17c0eff03b48f3b6LYZPApyoV8Ek8hdNL1Vy MD5 1273d0062a9c0a87e2b53e841b261976 16b9c67bc36957062c17c0eff03b48f3 d202d4a3f832a08cb8122d0154712dd1 6ca170ece252721ed6cc3cfa33
md55840aa36b70b7c03c25e5e1266c5835baccess, and starts the Telnet server exe — IOBIT Unlocker (5840aa36b70b7c03c25e5e1266c5835b) EVER\SearchHost.exe — Everything software (8add121fa398ebf
md5597de376b1f80c06d501415dd973dcec0703f0c1ddd1edd36f6d0371d) exe — nmap-like network scanner (597de376b1f80c06d501415dd973dcec) bat — removes shadow copy bat — creates a new user, adds i
md56ca170ece252721ed6cc3cfa3302d6f0e49d7490099d2a8dd01a) EVER\1saas \LogDelete — miner loader (6ca170ece252721ed6cc3cfa3302d6f0, HEUR:Trojan-Downloader.Win32.Generic) Batch script systemb
md578f5094fa66a9aa4dc10470d5c3e3155ece252721ed6cc3cfa3302d6f0 1357b42546dc1d202aa9712f7b29aa0d 78f5094fa66a9aa4dc10470d5c3e3155
md58add121fa398ebf83e8b5db8f17b45e025e5e1266c5835b) EVER\SearchHost.exe — Everything software (8add121fa398ebf83e8b5db8f17b45e0) EVER\1saas\1saas.exe — ransomware Trojan-Ransom.Win32.Crus
md5d202d4a3f832a08cb8122d0154712dd1062a9c0a87e2b53e841b261976 16b9c67bc36957062c17c0eff03b48f3 d202d4a3f832a08cb8122d0154712dd1 6ca170ece252721ed6cc3cfa3302d6f0 1357b42546dc1d202aa9712f7b
md5f6a3d38aa0ae08c3294d6ed26266693fr nodes. Details about Trojan files: Mssql — PC Hunter x64 (f6a3d38aa0ae08c3294d6ed26266693f) mssql2 — PC Hunter x86 (f7d94750703f0c1ddd1edd36f6d0371d)
md5f7d94750703f0c1ddd1edd36f6d0371d(f6a3d38aa0ae08c3294d6ed26266693f) mssql2 — PC Hunter x86 (f7d94750703f0c1ddd1edd36f6d0371d) exe — nmap-like network scanner (597de376b1f80c06d501415dd
Full article774 words · extracted from securelist.com · click to collapse

As protection methods improve, the developers of miners have had to enhance their own creations, often turning to non-trivial solutions. Several such solutions (previously unseen by us) were detected during our analysis of the open source miner XMRig.

How it all began: ransominer

Alongside well-known groups that make money from data theft and ransomware (for example, Maze, which is suspected of the recent attacks on SK Hynix and LG Electronics), many would-be attackers are attracted by the high-profile successes of cybercrime. In terms of technical capabilities, such amateurs lag far behind organized groups and therefore use publicly available ransomware, targeting ordinary users instead of the corporate sector.

The outlays on such attacks are often quite small, so the miscreants have to resort to various stratagems to maximize the payout from each infected machine. For example, in August of this year, we noticed a rather curious infection method: on the victim’s machine, a Trojan (a common one detected by our solutions as Trojan.Win32.Generic) was run, which installed administration programs, added a new user, and opened RDP access to the computer. Next, the ransomware Trojan-Ransom.Win32.Crusis started on the same machine, followed by the loader of the XMRig miner, which then set about mining Monero cryptocurrency.

As a result, the computer would already start earning money for the cybercriminals just as the user saw the ransom note. In addition, RDP access allowed the attackers to manually study the victim’s network and, if desired, spread the ransomware to other nodes.

Details about Trojan files:

  • Mssql — PC Hunter x64 (f6a3d38aa0ae08c3294d6ed26266693f)
  • mssql2 — PC Hunter x86 (f7d94750703f0c1ddd1edd36f6d0371d)
  • exe — nmap-like network scanner (597de376b1f80c06d501415dd973dcec)
  • bat — removes shadow copy
  • bat — creates a new user, adds it to the administrators group, opens the port for RDP access, and starts the Telnet server
  • exe — IOBIT Unlocker (5840aa36b70b7c03c25e5e1266c5835b)
  • EVER\SearchHost.exe — Everything software (8add121fa398ebf83e8b5db8f17b45e0)
  • EVER\1saas\1saas.exe — ransomware Trojan-Ransom.Win32.Crusis (0880430c257ce49d7490099d2a8dd01a)
  • EVER\1saas \LogDelete — miner loader (6ca170ece252721ed6cc3cfa3302d6f0, HEUR:Trojan-Downloader.Win32.Generic)

Batch script systembackup.bat adds a user and opens access via RDP

We decided to use KSN to examine how often XMRig and its modifications get bundled with malware. It emerged that in August 2020 there were more than 5,000 attempts to install it on users’ computers. The parties responsible for its distribution turned out to be the Prometei malware family and a new family called Cliptomaner.

Prometei backdoor

The Prometei family has been known since 2016, but spotted together with XMRig for the first time in February 2020. What’s more, the backdoor was distributed in an unusual way: whereas during ordinary attacks the cybercriminals gain server access through various exploits, this time they used brute-force attacks. Having thus obtained usernames and passwords for computers with MS SQL installed, the attackers used the T-SQL function xp_cmdshell to run several PowerShell scripts and elevated the privileges of the current user by exploiting the CVE-2016-0099 vulnerability. After that, Purple Fox Trojan and Prometei itself were installed on the victim’s machine. The whole attack, starting with the brute-forcing of credentials to connect to the SQL server and ending with the installation of Prometei, was carried out in fully automatic mode.

The installation process is of interest: the .NET executable file, packed into an ELF file using standard .NET Core tools (Apphost), sends information about the infected machine to the C&C server, and then downloads the cryptocurrency miner and its configuration. The versions of the loaders for Windows and Linux differ only slightly: the .NET build for different platforms saved the attackers from having to create a separate loader for Linux and allowed cryptocurrency mining on powerful Windows and Linux servers.

Cliptomaner miner

Detected in September 2020, Cliptomaner is very similar to its fellows: like them, it not only mines cryptocurrency, but can also substitute cryptowallet addresses in the clipboard. The miner version is selected according to the computer configuration and downloaded from C&C. The malware is distributed under the guise of software for Realtek audio equipment. On the whole, we saw no new techniques, but interestingly Cliptomaner is written entirely in the AutoIT scripting language. Most of the time, families with similar behavior are written in compiled languages, such as C# or C, but in this case the authors opted for a more creative approach, and wrote a lengthy script that selects the required version of the miner and receives cryptowallet addresses from C&C for substitution.

Substituting cryptowallets in the clipboard

Kaspersky security solutions detect the above malicious programs with the following verdicts: HEUR:Trojan.MSIL.Prometei.gen, HEUR:Trojan.Script.Cliptomaner.gen, HEUR:Trojan-Downloader.Win32.Generic, Trojan-Ransom.Win32.Crusis, Trojan.Win64.Agentb, not-a-virus:RiskTool.Win64.XMRigMiner

Indicators of compromise (IoC)

Domains

taskhostw[.]com
svchost[.]xyz
sihost[.]xyz
srhost[.]xyz
2fsdfsdgvsdvzxcwwef-defender[.]xyz

Cryptowallets used for substitution

LTC: LPor3PrQHcQv4obYKEZpnbqQEr8LMZoUuX
BTC: 33yPjjSMGHPp8zj1ZXySNJzSUfVSbpXEuL
ETH: 0x795957d9753e854b62C64cF880Ae22c8Ab14991b
ZEC: t1ZbJBqHQyytNYtCpDWFQzqPQ5xKftePPt8
DODGE: DEUjj7mi5N67b6LYZPApyoV8Ek8hdNL1Vy

MD5

1273d0062a9c0a87e2b53e841b261976
16b9c67bc36957062c17c0eff03b48f3
d202d4a3f832a08cb8122d0154712dd1
6ca170ece252721ed6cc3cfa3302d6f0
1357b42546dc1d202aa9712f7b29aa0d
78f5094fa66a9aa4dc10470d5c3e3155

Text extracted automatically; images, tables and formatting may be missing. Original: https://securelist.com/miner-xmrig/99151/