Rocke
InactiveChinese-speaking cryptojacking crew named by Cisco Talos in 2018. Mines Monero on exposed Linux and cloud servers through Struts, WebLogic and ColdFusion exploits, and uninstalls Alibaba Cloud and Tencent Cloud security agents.
Profile
Rocke is a Chinese-speaking cryptojacking crew first publicly named by Cisco Talos in August 2018, in the report 'Rocke: The Champion of Monero Miners'. The name comes from [email protected], the email the actor used as its MinerGate login in place of a Monero wallet address. MITRE ATT&CK tracks the cluster as G0106; Malpedia catalogues it under the slug 'rocke'. Unit 42 later called Rocke the best-known threat actor running cryptomining operations against the cloud.
Rocke's mandate is purely financial: illicit Monero (XMR) mining on internet-exposed Linux servers and public-cloud hosts. Targeting is opportunistic. Talos saw the actor exploit Apache Struts, Oracle WebLogic (CVE-2017-10271) and Adobe ColdFusion (CVE-2017-3066), and the 2021 Pro-Ocean worm went after Apache ActiveMQ (CVE-2016-3088), WebLogic and unsecured Redis instances. Alibaba Cloud and Tencent Cloud hosts have been a recurring target.
Unit 42's January 2019 report showed Rocke's loader scripts uninstalling five Alibaba Cloud and Tencent Cloud security and monitoring agents (Threat Detection Service/Aegis, CloudMonitor, Cloud Assistant, Host Security/YunJing and Cloud Monitor) before starting the miner, alongside cron persistence and libprocesshider-based process hiding. The 2021 Pro-Ocean version added worm capabilities and an expanded LD_PRELOAD rootkit. Anomali documented a Rocke dropper written in Go in March 2019, and Unit 42 linked the Godlua backdoor to the group.
Rocke has staged payloads on Git repositories (Gitee, GitLab, GitHub) and HTTP file servers, and used Pastebin pastes to check for and redirect to updated malware. Unit 42's NetFlow analysis covering December 2018 to June 2019 found 28.1% of the cloud environments it surveyed with at least one established connection to a known Rocke C2 domain. Attribution to a Chinese-speaking, criminally motivated crew rests on Talos's analysis of domain registrations and accounts tied to the actor, and on code shared with the Iron Cybercrime Group.
Attributed to a financially motivated criminal crew focused on illicit Monero mining. Cisco Talos describes Rocke as Chinese-speaking and assesses with high confidence that it operates from Jiangxi Province, based on domain registrations and a GitHub profile; MITRE ATT&CK calls it an alleged Chinese-speaking adversary. Talos found that Rocke's payloads share a code base with Iron Cybercrime Group malware but could not establish the exact relationship, MITRE notes the overlap is unconfirmed, and Unit 42 says the miner family was suspected to be developed by the Iron group. Tooling was hosted on Gitee, GitLab and GitHub repositories.
First publicly disclosed by Cisco Talos on 30 August 2018. Talos first saw the actor in April 2018, when its Apache Struts honeypots received files pulled from Gitee and GitLab repositories, and also observed it exploiting Oracle WebLogic (CVE-2017-10271) and Adobe ColdFusion (CVE-2017-3066). In September 2018 Unit 42 tied the Xbash malware to the Iron group, which it described as also known as Rocke and active that year. MITRE ATT&CK created its G0106 entry on 26 May 2020.
Financial: unauthorised Monero mining on compromised Linux servers and public-cloud workloads. The tradecraft serves that goal: killing rival miners, uninstalling Alibaba Cloud and Tencent Cloud monitoring agents, killing any process that uses more than 30% of the CPU so the miner can take all of it (Pro-Ocean), and hiding the dropper and miner by hooking libc through /etc/ld.so.preload.
Notable Operations
Initial disclosure: Struts / WebLogic / ColdFusion mining spree
2018Cisco Talos's August 2018 'Champion of Monero Miners' report covered several Rocke campaigns. From April 2018 the actor hit Talos's Apache Struts2 honeypots with files pulled from Gitee and GitLab repositories, and it was also seen exploiting Oracle WebLogic (CVE-2017-10271) and Adobe ColdFusion (CVE-2017-3066). Shell scripts installed cron persistence and downloaded XMRig and XMR-stak variants that mined Monero to the MinerGate account [email protected], which gave the actor its name.
Xbash: Linux+Windows worm combining ransomware, coinmining and botnet
2018Unit 42's September 2018 disclosure of Xbash, malware written in Python and packaged as Linux ELF executables with PyInstaller, which Unit 42 tied to the Iron cybercrime group (aka Rocke). Xbash combined botnet, ransomware, coinmining and self-propagation: on Linux it deleted MySQL, PostgreSQL and MongoDB databases and demanded Bitcoin with no way to restore the data, and on Windows it delivered a coinminer. It spread by attacking weak passwords and Hadoop, Redis and ActiveMQ (CVE-2016-3088) vulnerabilities.
Uninstalling Alibaba Cloud and Tencent Cloud security agents
2018-2019In January 2019 Unit 42 reported that Rocke malware samples collected in October 2018 had gained code to uninstall five cloud security and monitoring agents, from Alibaba Cloud (Threat Detection Service/Aegis, CloudMonitor, Cloud Assistant) and Tencent Cloud (Host Security/YunJing, Cloud Monitor), before mining, following the vendors' own uninstall procedures. Unit 42 called it the first malware family it knew of with this capability.
Cloud C2 telemetry and the Godlua link
2019In July 2019 Unit 42's 'Cloudy with a Chance of Entropy' post, introducing its Cloud Threat Risk Report, said 28% of organizations were communicating with cryptomining C2 domains operated by Rocke. The follow-up 'Rocke'in the NetFlow' (August 2019) analysed NetFlow data from December 2018 to 16 June 2019, found 28.1% of surveyed cloud environments with at least one established connection to a known Rocke C2 domain, and tied Rocke to the Godlua backdoor through hardcoded domains, Pastebin URLs and an IP address shared with earlier Rocke malware.
Golang malware family and adversary playbook
2019Anomali (March 2019) reported a new Rocke campaign, seen from 12 March 2019, that used a dropper written in Go instead of Python. The UPX-packed dropper used Pastebin for C2, hid itself and the miner by hooking libc through /etc/ld.so.preload, persisted through cron, init.d and systemd, and mined to a private pool hosted on DigitalOcean. In July 2019 Unit 42 included Rocke in its 'Unveiling 11 New Adversary Playbooks' release.
Pro-Ocean worm with LD_PRELOAD userland rootkit
2020-2021Unit 42's January 2021 report on Pro-Ocean, a revised version of Rocke's cloud-targeted cryptojacking malware written in Go, documented worm-style spreading against Apache ActiveMQ (CVE-2016-3088), Oracle WebLogic (CVE-2017-10271) and unsecured Redis; removal of competing miners; uninstalling of Alibaba Cloud and Tencent Cloud monitoring agents; and a rootkit module that adds a library to /etc/ld.so.preload to hide its files and processes.
Tactics, Techniques & Procedures
Exploits Apache Struts2, Oracle WebLogic (CVE-2017-10271) and Adobe ColdFusion (CVE-2017-3066) vulnerabilities to deliver malware; the Pro-Ocean worm adds Apache ActiveMQ (CVE-2016-3088) and unsecured Redis instances.
Shell scripts such as 'a7' install cron persistence, kill rival miners and download and run the miner.
Installs cron jobs that periodically download and execute scripts from attacker infrastructure, for example 'logo.jpg' from 3389[.]space.
The 2019 Go dropper installs an init.d script (/etc/init.d/netdns) and a systemd service (netdns.service) and enables them with chkconfig and systemctl.
Pro-Ocean's hiding module compiles a C library and adds it to /etc/ld.so.preload, overriding libc functions such as open, opendir, readdir, stat and access to hide its files and processes; it reuses libprocesshider.
The 2019 Go dropper writes C source to /usr/local/lib/libcset.c and compiles it on the victim with gcc (installing gcc if it is missing) into a shared object loaded through /etc/ld.so.preload.
The 'a7' script downloads libprocesshider from GitHub and uses it with the ld.so preloader to hide a file named 'x7'.
Shell scripts save downloaded mining executables under the filename 'java'.
The 2019 Go dropper deletes its staging copies (/tmp/kthrotlds and /tmp/kintegrityds) after copying itself into place.
Rocke's loader code uninstalls the Alibaba Cloud Threat Detection Service (Aegis), CloudMonitor and Cloud Assistant agents and the Tencent Cloud Host Security (YunJing) and Cloud Monitor agents before starting the miner. ATT&CK cites the Unit 42 report for Rocke's use of this technique.
Uses the SSH keys and known hosts on an infected machine to spread its coinminer to other servers.
Reads IP addresses from the known_hosts file on an infected system and attempts to SSH into them.
Pro-Ocean's Python infection script runs public exploits for ActiveMQ, WebLogic and Redis against every machine in its 16-bit subnet; ATT&CK also records Rocke scanning for TCP port 7001 and for SSH and Redis servers.
Loader scripts check for Alibaba Cloud and Tencent Cloud security and monitoring agents (Threat Detection Service, CloudMonitor, Cloud Assistant, Host Security, Cloud Monitor) and uninstall them.
Spreads its coinminer to reachable Linux hosts over SSH using keys found on the infected machine.
Pulled payloads from Gitee and GitLab repositories, and used Pastebin pastes to check the malware version and redirect to another paste hosting the updated malware.
HTTP(S) is the application-layer C2 channel: samples fetch staging payloads and configuration from Pastebin and GitHub, and infected hosts beacon hourly to hardcoded C2 domains.
Shell scripts download miners and helper tools (libprocesshider, tar.gz archives) from attacker Git repositories and HFS servers after the initial foothold.
Illicit Monero mining with XMRig and XMR-stak variants; Pro-Ocean deploys XMRig 5.11.1 and a watchdog that kills other processes using more than 30% of the CPU.
Reports & Advisories
Show 15 older reports
Unit 42's report on Pro-Ocean, a Go-based revision of Rocke's cloud-targeted cryptojacking malware with four modules (hiding, mining, infecting, watchdog): an LD_PRELOAD rootkit that hides its files and processes, worm spreading via ActiveMQ (CVE-2016-3088), WebLogic (CVE-2017-10271) and unsecured Redis, and removal of competing miners.
ATT&CK group page for Rocke (created 26 May 2020): description, the techniques attributed to the group (among them Disable or Modify Tools, Dynamic Linker Hijacking, Cron and Compute Hijacking) and its references to Cisco Talos, Anomali and Unit 42.
Unit 42's six-month study of Rocke using NetFlow data (December 2018 to June 2019): 28.1% of surveyed cloud environments had at least one established connection to a known Rocke C2 domain, 20% showed hourly heartbeats, and hardcoded domains, Pastebin URLs and an IP address link Rocke to the Godlua backdoor.
Unit 42's July 2019 release of 11 new Adversary Playbooks, viewable in its Playbook Viewer. The Rocke entry summarises the January 2019 finding that the China-based group's Linux coin-mining malware uninstalls five Tencent Cloud and Alibaba Cloud security and monitoring products.
Unit 42 post introducing its Cloud Threat Risk Report (data from January 2018 to late June 2019). Among its findings, 28% of organizations were communicating with cryptomining C2 domains operated by Rocke, a group noted for disabling and uninstalling agent-based cloud security tools.
Anomali's report on a Rocke campaign from March 2019 using a new dropper written in Go: UPX-packed with a modified header, Pastebin-based C2, libc hooking through /etc/ld.so.preload, cron, init.d and systemd persistence, and a private mining pool on DigitalOcean.
Malpedia canonical actor page for Rocke: malware family catalogue, aliases, and running reference list. Curated by Fraunhofer FKIE.
Unit 42's account of Rocke's cloud-agent removal: loader code that uninstalls Alibaba Cloud Threat Detection Service (Aegis), CloudMonitor and Cloud Assistant agents and Tencent Cloud Host Security (YunJing) and Cloud Monitor agents before the miner runs. MITRE ATT&CK cites it for Rocke's Disable or Modify Tools technique.
Contemporaneous Threatpost coverage of the Unit 42 January 2019 disclosure, useful for corroborating the cloud-agent uninstall behaviour outside the primary vendor channel.
Unit 42's Xbash write-up: Python-based botnet, ransomware and coinmining malware tied to the Iron cybercrime group (aka Rocke). It spreads through weak passwords and Hadoop, Redis and ActiveMQ vulnerabilities and deletes MySQL, PostgreSQL and MongoDB databases with no way to restore them.
Palo Alto Networks corporate-blog mirror of the Unit 42 Xbash disclosure: same content, alternate URL retained for link durability.
Running index of every Unit 42 post tagged 'Rocke', a durable pointer to future Unit 42 coverage without hardcoding individual URLs.
The foundational disclosure. Talos names the actor 'Rocke' after [email protected], the email used as its MinerGate mining login, traces its activity from April 2018 (Apache Struts honeypots, Oracle WebLogic CVE-2017-10271, Adobe ColdFusion CVE-2017-3066), and dissects its Gitee/GitLab repositories, HFS server, shell scripts and ELF and PE miners.
Cisco Blogs mirror of the Talos disclosure, retained as a durable secondary URL for the original 'Rocke' naming report.
First mainstream security-press coverage of the Talos 'Rocke' naming, contextualising the actor within the wider 2018 wave of server-side cryptojacking crews.