WatchBog
Associated vulnerabilities
7 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
WatchBog is a cryptocurrency-mining botnet that was spotted as early as November 2018. The group is known to be exploiting known vulnerabilities to compromise Linux servers.
Execution
2 techniques
Execution
This script sets up persistence via crontab and downloads further Monero miner modules from Pastebin, as has been previously documented by Alibaba Cloud.
Once a vulnerable service is discovered to which exists an exploit module, the binary spreads itself by invoking the right exploit and installing a malicious bash script hosted on Pastebin.
Persistence
2 techniques
Persistence
This script sets up persistence via crontab and downloads further Monero miner modules from Pastebin, as has been previously documented by Alibaba Cloud.
It also checks for the existence of SSH keys and leverages them to authenticate to the systems in the known_hosts file.
Privilege Escalation
2 techniques
Privilege Escalation
This script sets up persistence via crontab and downloads further Monero miner modules from Pastebin, as has been previously documented by Alibaba Cloud.
It also checks for the existence of SSH keys and leverages them to authenticate to the systems in the known_hosts file.
Stealth
2 techniques
Stealth
There were some attempts at obfuscation, such as base64 encoding URLs and Pastebins, but the attack was still relatively simple to uncover.
Evidence deletion was performed in a clear manner with files and logs being deleted or overwritten.
Credential Access
1 technique
Credential Access
Furthermore, two modules for bruteforcing CouchDB and Redis instances exist together along with code to achieve RCE.
Discovery
2 techniques
Discovery
In this newer version of WatchBog it seems that the group has integrated an RDP scanner in order to find vulnerable Windows machines to the BlueKeep vulnerability.
The initial message contains the compromised system information: This information will be merged and hashed to build the route of WatchBog’s API hosted in its CNCs.
Lateral Movement
1 technique
Lateral Movement
CSIRS identified that the adversary was using SSH to spread laterally.
Command and Control
4 techniques
Command and Control
These packets were encoded to obfuscate its content. During the analysis, we were able to determine the encoding algorithm used.
The binary first attempts to connect to one of the available static C2 servers. We observed that the onion C2 server had an expired certificate.
An .onion C2 server address is also hardcoded in the binary and is used as a fallback.
This script sets up persistence via crontab and downloads further Monero miner modules from Pastebin... the script downloads another base64-encoded payload from Pastebin, which further downloads another module and then executes it.
Impact
1 technique
Impact
What does Watchbog do? The Watchbog botnet mines Monero cryptocurrency for its owners.
Observables
29 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.