Wiz Details Seven Summer 2023 Cryptomining Incidents Targeting Cloud Workloads

· Original article ↗

Summary

Wiz Research analyzed seven cloud cryptomining incidents from summer 2023, tracing access through exposed Jupyter notebooks and vulnerable Apache Solr and documenting miners, persistence, spreading, and detection opportunities.

Key points

  • Five incidents involved open Jupyter notebooks; two targeted publicly accessible Apache Solr 8.1.1.
  • The researchers observed XMRig, CCminer, and XMR-Stak-RX miners, alongside tools including tmate, PRoot, udocker, and ngrok.
  • In Kinsing activity, scripts disabled security measures, created cron persistence, searched for SSH credentials, and attempted to spread to other resources.
  • Solr attack commands ran under the service’s Java process. Wiz assessed exploitation as highly likely but ruled out Log4Shell based on the observed configuration; the specific exploit was not established.
  • Wiz found no evidence that a cryptominer was delivered in one Jupyter-related incident, though it documented tools and access methods associated with mining activity.
  • Wiz recommends identifying exposed notebooks and vulnerable Solr instances and using runtime monitoring to detect suspicious file access, payload execution, and mining-pool connections.

Article Details

Attack Vectors
  • Open Jupyter Notebooks allowing unauthenticated remote access were used for initial access in several incidents.
  • Attackers exploited an internet-accessible Apache Solr v8.1.1 instance in the Kinsing and z0Miner incidents; the specific vulnerability used was not determined.
  • Kinsing spread by searching infected hosts for SSH credentials and attempting to reach other resources over SSH.
Defensive Notes
  • Restrict Jupyter Notebook access to authenticated users and trusted sources; Wiz’s agentless host-configuration scanner can identify publicly exposed instances that allow unauthenticated access.
  • Identify and patch vulnerable, publicly exposed Apache Solr instances. Wiz describes combining agentless exposure and configuration data with runtime validation to help prioritize remediation.
  • Monitor for payload delivery, access to sensitive files such as shell history, execution of payloads absent from container images, and connections to cryptomining pools.
  • Investigate unexpected cron jobs, disabled security measures or logging, hidden directories under /tmp, and use of remote-access tools such as tmate or ngrok.

Indicators of compromise

TypeIndicatorContext
DOMAINvocaltube[.]ruListed as a Kinsing command-and-control domain.
IPV4176[.]113[.]81[.]186Listed as a Kinsing miner-pool or pool-proxy IP.
IPV4185[.]122[.]204[.]197Listed as a Kinsing malware-hosting IP.
IPV4185[.]154[.]53[.]140Listed as a Kinsing command-and-control IP.
IPV4185[.]156[.]179[.]225Listed as a Kinsing miner-pool or pool-proxy IP.
IPV4185[.]221[.]154[.]208Listed as a Kinsing command-and-control IP.
IPV4185[.]87[.]48[.]183Listed as a Kinsing miner-pool or pool-proxy IP.
IPV4194[.]87[.]252[.]159Kinsing malware-hosting IP used to deliver scripts and other artifacts.
IPV4194[.]87[.]254[.]160Listed as a Kinsing miner-pool or pool-proxy IP.
IPV431[.]184[.]240[.]34Kinsing malware-hosting IP used to deliver the kdevtmpfsi miner.
SHA1081ddbd9f39c21f1b9e1b5e1d58d7a9f5930a7f4SHA1 of akuh.zip, the archive containing PRoot and an archived filesystem used by the attacker.
SHA10b97613c4c747f9f86d195fb6ead6c030bd21feeSHA1 of the CCminer cryptominer used in the incident.
SHA10ceb8ffb0be23b808b534d744440f4367e17b9c5SHA1 of Kinsing malware.
SHA11c47ea75acb66fece3464b3afba84b7ed8b13e5dSHA1 of run.sh, the script used to download and execute ngrok.
SHA12a6b6c68d49fa5037bc3aa169ce3cfcc59b20518SHA1 of the renamed XMRig miner newhello.
SHA131381d57d93b0c0738d2e92bce0014b69371f958SHA1 of tmate, which attackers used to maintain sessions on compromised resources.
SHA1430e3d3bb3a4ebf30b9345b8fc7a2a6cf69ba8a8SHA1 of solrd, the XMRig miner used by z0Miner.
SHA14b75893b143d23ee720c1931281ebf1b14b03e8bSHA1 of spre.sh, the Kinsing script that searched for SSH credentials and attempted to spread over SSH.
SHA1555332faa336ed0e06e9b04d998cd53c5e192f1fSHA1 of the XMR-Stak-RX miner used in the incident.
SHA15fc34a89d873a09b325adee825fbc869a2bc05b3SHA1 of solr.sh, the z0Miner initialization script that ensured the miner continued running.
SHA16296e8ed40e430480791bf7b4fcdafde5f834837SHA1 of the UPX-packed kdevtmpfsi XMRig miner dropped by Kinsing.
SHA18d53ade3599ca39d9ad22d9360834514e9a6c6dcSHA1 of root.sh, the script used to download and execute PRoot.
SHA19aaa8f31807d6b5c953608f3dd61255adb2a62b9SHA1 of the PRoot tool used in the attacks.
SHA1a6e1414849d9ffa13ff49c6ba5a97ccc47b91051SHA1 of the z0Miner dropper script.
SHA1e691317c172593f0048113e590ae7b9f711a44adSHA1 of cron.sh, the Kinsing script used to update cron jobs and kill other miners.
SHA1ed57d213d1e958d639a8de927ccbbcb431d72eaeSHA1 of the kdevtmpfsi miner dropped by Kinsing.
SHA1ff8c38f871c789b000235a8f05ba5c936da8e6f1SHA1 of the initial Kinsing script, which disabled security measures, established persistence, and deployed malware.
URLhxxp[:]//175[.]118[.]126[.]65:8002/js/l.txtMalware-hosting URL used to deliver the z0Miner dropper script.
URLhxxps[:]//github[.]com/new43121/newhello/archive/refs/heads/main.zipSpecific GitHub repository URL identified as hosting the attacker-delivered newhello miner.
URLhxxps[:]//raw[.]githubusercontent[.]com/akuhnet/wqemu/main/root.shSpecific URL for the script used in the attack to download and execute PRoot.

MITRE ATT&CK

T1021.004 · SSHThe Kinsing spreader attempted to reach additional resources over SSH using credentials found on the infected host.T1027.002 · Software PackingThe Kinsing-deployed kdevtmpfsi miner was UPX-packed.T1036 · MasqueradingIn one incident, attackers renamed tmate to “python” before executing it.T1053.003 · CronKinsing and z0Miner created cron jobs to maintain or update miner execution.T1059.004 · Unix ShellAttackers executed Bash commands and scripts, including the PRoot command and the Kinsing and z0Miner scripts.T1074 · Data StagedKinsing stored a victim identifier and temporary malware artifacts in its .ICEd-unix directory.T1102 · Web ServiceAttackers used specific GitHub repositories to host and retrieve tools, miners, and scripts.T1105 · Ingress Tool TransferAttackers used wget or curl to download miners, tools, scripts, and configuration files onto compromised workloads.T1219 · Remote Access ToolsAttackers used tmate and ngrok to maintain remote access or connect to compromised notebook infrastructure.T1222.002 · Linux and Mac PermissionsThe Kinsing script modified permissions on its downloaded initial script before executing it.T1496 · Resource HijackingThe incidents deployed XMRig, CCminer, and XMR-Stak-RX miners to consume compromised cloud computing resources.T1552.003 · Shell HistoryThe Kinsing spreader searched bash_history for SSH credentials.T1562.001 · Disable or Modify ToolsThe Kinsing initial script disabled security measures on the compromised resource.T1564.001 · Hidden Files and DirectoriesKinsing created .ICEd-unix and z0Miner created .solr as hidden directories under /tmp.

CVE

Malware

Vendors

Products

Tools

Related Articles