r/LinuxMalware • u/mmd0xFF • Apr 20 '19
Fun in dissecting "LSD Packer" ELF GoLang Miner installer/loader made by "Hippies" China SystemTen (aka Rocke) Gang
https://imgur.com/a/H7YuWuj
6
Upvotes
r/LinuxMalware • u/mmd0xFF • Apr 20 '19
1
u/mmd0xFF Apr 21 '19 edited May 19 '19
This threat is hitting a lot of VPS on intel x64 systems [EDIT] and x32 servers.right now. I received many reports, so it is necessary to note much details to help IR and Sysadmins dealing with these incidents. Please read this report, and this one too, also list of IOC we gathered in here, for they may contain artifacts that can be useful for your incident handling or threat intelligence.
If you just need the IOC info you can skip the rest of explanation and go straight to IOC link
Sample of incidents dubbed as "LSD_1" are in Atlassian Community and in Stack Overflow. Then, this is one of vulnerability used to infect Confluence server (in safe location).
The adversary is calling themselves as "SystemTen" (came from systemten[.]org hard-coded in the binary and their pastebin) originated from China (PRC) mainland region. They use the ELF binary Trojan installer called "kerberods", to drop the ELF miner made from XMRig code with ELF binary name as "khugepageds". The adversary is also using ELF remote execution bot binary with name of "kerb" to remotely control hacked machines, and they also using rootkit methods to make their process transparent from sysadmin eyes. So if you have these files in your systems you may be affected to this threat. Previously this adversary was allegedly using name of "Rocke" but I wasn't on that cases so you just have to rely on some internet reports about that information.
In the ELF binary trojan installer/dropper we analyzed the adversary "SystemTen" is using below infrastructure as their C2 and pool miner "hardcoded" servers in their binaries:
Their previous reported attacks has been detected coming from below IP addresses:
Another attacker IP addresses (to BLOCK) has been reported coming from AliBaba China Cloud service:
Their C2 servers is registered in the below name servers:
Their downloader is served under these two domain name on also CloudFlare:
Original IP for the downloader hostname {Past}:
!!UPDATED!! {Present} Infrastructure for downloader used by the adversarywas unlocked, thank you CloudFlare.
You can also add below suspicious domains and IP addresses related to the same threat actors:
The Z9LS.COM domain used by the adversary is having the below registration information. And its IP of 103.52.216.35 is actually being re-used by the attacker for the further case in "LSD_2" infection campaign.
{Addition} Recent new wave of infection dubbed as "LSD_2" is posted in the next /r/LinuxMalware's subreddit comment.
Thank you for your kind support, we hope you can contain this threat/incidents!
malwaremustdie.org
1
u/mmd0xFF Apr 25 '19 edited May 19 '19
The new infection from "SystemTen" adversary called LSD_2 was just launched ("SystemTen" adversary name behind the packed ELF Go Trojan "kerberods" malware dropper+downloader for ELF bots & ELF monero miners. dubbed from their hard-coded domain name & pastebin account). If you see their posted pastebin, it's referring to previous malware from incident case analyzed in previous comment.
The installer downloads payloads from below infrastructure:
VirusTotal detection for URL and payload is still low, as shown in URL payload and Payload File detection pages.
The domain origin IP has been unprotected by the Cloudflare (thank you), showing the IP address that adversary is actually using:
The registration info of "baocangwh.cn" is:
Other infection was using loader with payloads in different domain "sowcar.com":
And, another infection was using other payloads hostname under domain "w2wz.cn":
[Update Fri May 3, 2019] The end game of the attacker is not mere ELF miner software but the ELF Bot with Code Execution to own hacked Linux boxes. The bot's C2 is hardcoded as per data below, again, adversary was abusing Cloudflare to hide their nodes, but now the IP origin has been unprotected:
[Update Fri May 9-10, 2019] Another wave of infection has started from May 8th and this infection hits +/- 7,000 attempts as per shown in the adversaries used pastebin loader.
Below is the new infrastructure used. PS: They abused Cloudflare again:
The domain registration:
[Update Fri May 10, 2019] The abused Chinese image site "img.sobot.com" that contains kerberods payloads is NOT RESPONDING to our request to clean up the malware payloads. You can BLOCK below nodes and hostnames to prevent further infection since the adversaries are keeping on using it to distribute their payloads.
[Update Sun May 12, 2019] The DNS and ISP for payload hostname "t.w2wz.cn" and "sowcar.com" has been reported changed. Preciously registered in TENCENT and now shifted to QQ.COM CDN new addresses that is pointed to backbone ADSL nodes in China (UNICOM) on AS4837 as per below IP. There are still many payload traffic from infected servers go to "sowcar.com", you may BLOCK these IP to avoid risk of further infection:
[Update Mon May 13, 2019] The Cloudflare has unprotected the "gwjyhs.com" domain's utilized by adversary to serve their malware . It ends up that it is using the same IP address as per previously recorded attacker's node on "baocangwh.cn" and "z9ls.com" domain, all of them are located in China. All "gwjyhs.com", "baocangwh.cn" & "w2wz.cn" are confirmed registered on the same ID: 4592248@qq[.]com & Gmail's "4592248"@gmail[.]com.
All lead to here
Thank you DefConGroup/Montana, Cloudflare, all supportive sysadmins, malware researchers, cyber intelligence folks to lend your hands to fight this threat.
malwaremustdie.org
1
u/mmd0xFF Apr 27 '19 edited May 19 '19
Many IR colleges asked the list of recorded original infrastructure used by this threat's adversary (SystemTen aka "Kerberods/Khugepageds" aka ex-Rocke), I extracted as per following hostnames hardcoded in their binary and download scripts from multiple recent incident reports I recorded in here and in here, based on our analysis of the (1) ELF trojan installer and (2) dropped ELF miner used by the adversary, and the quick post analysis for (3) ELF bot the adversary installed in the infected servers.
The infrastructure (hostnames or domains) used by attackers to serve the payloads is as per listed below:
And IP addresses of those downloaded payloads are recorded in these locations:
Several online code pasting systems that SystemTen abuses are listed as per below:
Domains registered to these email addresses allegedly belong to the actor behind the SystemTen:
Vulnerabilities that are specifically aimed by the adversaries:
[Jenkis] [Confluence] [Redis]
The list of possible installed payloads in compromised servers we checked/analyzed (for Incident Response):
Adversaries script will kill process which is having the below grep result, it will be useful for you too to detect infection of adversaries' competitors or the older versions
Lastly, this is the list of IOC we published for current SystemTen infection incidents:
malwaremustdie.org