{
	"id": "c2b6be4a-9461-434f-9059-b9403a3b4379",
	"created_at": "2023-01-12T15:06:37.963356Z",
	"updated_at": "2026-11-18T02:06:14.592131Z",
	"deleted_at": null,
	"sha1_hash": "060e3314734e8774569db473b0b7bcde28a110e4",
	"title": "2022-01-10 - Abcbot - An Evolution of Xanthe",
	"llm_title": "2022-01-10 - Abcbot - An Evolution of Xanthe",
	"authors": "",
	"file_creation_date": "2022-05-28T16:16:17Z",
	"file_modification_date": "2022-05-28T16:16:17Z",
	"file_size": 3086279,
	"plain_text": "1/20\r\nJanuary 10, 2022\r\nAbcbot - An Evolution of Xanthe\r\ncadosecurity.com/abcbot-an-evolution-of-xanthe/\r\n \r\nBlog\r\nJanuary 10, 2022\r\nOverview\r\nAbcbot, the emerging botnet that we recently analyzed and reported on, has a longer history\r\nthan we first thought. Our continued analysis on this malware family reveals a clear link with\r\nthe Xanthe-based cryptojacking campaign discovered by Cisco’s Talos security research\r\nteam in late 2020. Researchers at Talos discovered malware resembling a cryptocurrency\r\nmining bot when they were alerted to an intrusion on one of their Docker honeypots.\r\nThe malware was named Xanthe and its main purpose is to hijack the resources of a\r\ncompromised host to mine cryptocurrency. We discovered a link between the two campaigns\r\nwhen analyzing the infrastructure behind Abcbot. Once we began comparing analysis of\r\nmalware samples from both campaigns, similarities within the code and feature-sets of both\r\nmalware families became apparent too.\r\nBased on this analysis, we believe that the same threat actor is responsible for both Xanthe\r\nand Abcbot and is shifting its objective from mining cryptocurrency on compromised hosts to\r\nactivities more traditionally associated with botnets, such as DDoS attacks.\r\nUnderstanding the Infrastructure Behind Abcbot \u0026 Xanthe\n\n2/20\r\nGraph showing Abcbot infrastructure on the left and Xanthe infrastructure on the right (credit:\r\nAl Carchrie). The links are discussed below.\r\nTo begin mapping the Abcbot campaign, we collated all known Indicators of Compromise\r\n(IoCs), including IP addresses, URLs and hashes. From this, we built a VirusTotal Graph\r\nwhich displayed this data in an easily-browsable format. After doing so, it became apparent\r\nthat there were four main hosts comprising what we thought was the infrastructure behind\r\nAbcbot. Instead, we were looking at the infrastructure responsible for delivering two distinct\r\nmalware campaigns – Abcbot and Xanthe.\r\nInfrastructure Overlaps\r\nThere are a few infrastructure overlaps. For example, the following rule allowing ingress\r\ntraffic from 64[.]225[.]46[.]44 in the Xanthe sample also appears in the Abcbot sample:\r\niptables ingress traffic rule in Xanthe sample\r\n \n\n3/20\r\niptables ingress traffic rule in Abcbot sample\r\n Whilst it’s common to see cryptojacking malware authors simply copy code from each other,\r\nthere are a number of other similarities discussed below which make a direct link in\r\nownership between the Xanthe and Abcbot campaigns more likely.\r\nFor guidance on performing cloud IR, check out our latest playbook the Ultimate\r\nGuide to Forensics of Mining Malware in Linux Container and Cloud Environments.\r\nXanthe – An Overview\r\nXanthe is a family of cryptojacking malware with the primary goal of hijacking a system’s\r\nresources to mine the Monero cryptocurrency. Readers with some knowledge of the cloud\r\nthreat landscape will not be surprised to hear that Xanthe utilizes XMRig for its mining\r\ncapabilities. XMRig has been used in several similar campaigns due to its highly-configurable and open source nature.\r\nXanthe spreads through the discovery of exposed Docker API endpoints. An initial script is\r\nused to install the malware’s main module xanthe.sh, which is responsible for propagation,\r\nnetwork scanning and the downloading of four additional payloads. These additional\r\npayloads include a malicious library for hiding processes (libprocesshider.so), a script to\r\ndisable security services and remove miners from competing campaigns and the XMRig\r\nbinary itself along with configuration data.\r\nIf you read our analysis of Abcbot, you will likely recognize some of the above and may also\r\nnotice some differences between these malware families.\r\nCode Similarities\r\nIn this section we’ll take a closer look at the code of the main Xanthe modules and we’ll\r\ncompare this with the Abcbot sample we analysed previously. As we’ll see, there are several\r\nsimilarities in both the code itself and overall functionality that suggest the same person(s)\r\nare behind both malware families.\r\nCode Formatting\r\nIn the original report from Cisco’s Talos security research team, researchers commented on\r\nthe coding style of the shell scripts being analysed – in particular, functions being declared at\r\nthe top of the file and then invoked in some of the later lines. Talos researchers suggested\n\n4/20\r\nthat this likely aids testing of new iterations, with functionality enabled/disabled through\r\ncommenting of the lines responsible for function invocation. Both the Abcbot and Xanthe\r\nsamples we compared follow this coding style:\r\nFunction invocation in Xanthe\r\n \r\nFunction invocation in Abcbot\r\n Linking these two samples based on code style similarities alone would be tenuous, at best.\r\nHowever, if we look at some of the function names themselves, correlation becomes\r\napparent. Several of the functions have “go” appended to the end of the function name and\r\nsome functions have identical names. The following names appear in both samples:\r\nnameservercheck\r\ncroncheckgo\r\ncheckrc\r\niptableschecker\r\nfilerungo\r\nWe decided to dig deeper and compare the code from each of these functions individually to\r\nsee if we could further confirm our hypothesis that these samples were related.\n\n5/20\r\nnameservercheck()\r\nXanthe nameservercheck function\r\n \n\n6/20\r\nAbcbot nameservercheck function\r\n Comparing the above, we can immediately see that the Abcbot version of the\r\nnameservercheck function is significantly larger than the Xanthe counterpart. The Xanthe\r\nsample we analyzed is older than the Abcbot sample by over a year (according to VirusTotal\r\nsubmissions). This could indicate that the Abcbot version of the function has been iterated on\r\nseveral times, with new functionality added at each iteration. We covered the semantics of\r\nthis function in our analysis of Abcbot, but if we focus on lines 59-79, we can see that they’re\r\nvirtually identical to the Xanthe equivalent.\n\n7/20\r\nAbcbot nameservercheck function displayed to the left, Xanthe’s equivalent to the right\r\n As we covered previously, this function ensures that DNS requests are being resolved by a\r\npublic DNS provider – allowing the malware to make network requests across the internet.\r\ncroncheckgo()\r\nThe croncheckgo function in both samples is responsible for achieving persistence via the\r\ncron scheduling utility common to most Linux distributions. Both samples include a TODO\r\ncomment from the author, regarding adding logic to determine whether cron is running on\r\ndifferent Linux distributions – a note to add logic presumably to deal with this. The service\r\ncommand is then used to start the cron daemon and cron itself, guaranteeing that any\r\nmodifications made to the crontab would be honoured by the scheduling utility.\r\nXanthe Cron TODO\r\n \r\nAbcbot Cron TODO\r\n This is fairly standard and although the wording of the comment is identical, it probably isn’t\r\nenough to be considered a link between the two samples.\r\nThe content of the following lines does differ slightly and is better-covered by both our\r\nAbcbot article and Talos’ Xanthe article. However, we begin to notice some interesting\r\nsimilarities when we reach the lines responsible for the cron entry itself.\r\nXanthe Cron entry\r\n \n\n8/20\r\nAbcbot Cron entry\r\n The cron entries consist of curl commands with specified user-agent strings. The purpose of\r\nthis is covered in Talos’ research but if we look at the strings themselves, we can see that\r\nfczyo-cron is used in both samples, with different version numbers appended to each.\r\nIncidentally, one of the payloads downloaded by Xanthe is also named “fczyo”.\r\nReuse of a unique string such as this does seem more than coincidental and suggests that\r\nthe code running on servers from both the Xanthe and Abcbot campaigns expects this string\r\nto be present in the user-agent.\r\ncheckrc()\r\nThis function handles registration of an additional persistence mechanism in both samples –\r\nvia the /etc/rc.local file. Rc.local is common to most UNIX and UNIX-like systems and it\r\nallows commands specified by the user to be run at startup. This is especially useful for\r\nmalware persistence and, unsurprisingly, is a technique we see often when analysing Linux\r\nmalware.\r\nBeginning of checkrc() in Xanthe\r\n \n\n9/20\r\nBeginning of checkrc() in Abcbot\r\nWhen comparing the two functions we can immediately see identical commenting, as we\r\nsaw in the croncheckgo function. The checkrc function has similar logic to croncheckgo;\r\npersistence is achieved by writing shell commands to the rc.local file and a unique user-agent string (rc.local/1.5) is specified. Again, we can see different version numbers\r\nappended to this string between the samples, suggesting that the author has iterated on the\r\nfunction itself. It seems logical to assume that the purpose of this string is to identify the\r\nmethod of persistence to server(s) controlled by the attacker and serve an appropriate\r\npayload.\r\nReturning to the beginning of the function, we can see that each of the lines preceding the\r\ncomments are virtually identical between both samples. The author performs an existence\r\ncheck for /etc/rc.local and then checks the contents using grep. A seemingly-random string is\r\nsearched for in the rc.local file; this string differs between samples but is likely used to\r\nidentify the campaign.\r\nThe author also uses the chattr command to remove attributes from the file (ensuring\r\nmodification is possible) and re-adds them. This is a common technique used by other cloud-focused malware campaigns so can’t be relied upon solely for attribution. However, it is\r\ninteresting to note that both the structure of the code, TODO comments, the wording of the\r\nlogging output and several of the lines themselves are identical in this function.\r\niptableschecker()\n\n10/20\r\niptableschecker function in Xanthe\r\n \n\n11/20\r\niptableschecker function in Abcbot\r\n Code style similarities between these two functions are immediately apparent. We can see\r\nthat in both cases, the author makes use of the hash symbol to delimit distinct iptables rules\r\nand the wording of the logging statements are identical throughout.\r\nIt’s clear that the Abcbot version of this function has been simplified somewhat, perhaps\r\nindicating a difference in objective between the campaigns. If we examine the rules\r\nthemselves, we can see clear connections in terms of the infrastructure used in the\r\ncampaigns. For example, the following rule allowing ingress traffic from 64[.]225[.]46[.]44 in\r\nthe Xanthe sample also appears in Abcbot:\r\niptables ingress traffic rule in Xanthe\n\n12/20\r\niptables ingress traffic rule in Abcbot\r\n Evidenced by the above, the author clearly no longer deems it necessary to add this rule to\r\nthe iptables ruleset if it does not exist on a host compromised by Abcbot. This could indicate\r\nthat the remote server is no longer in use or that the payloads/C2 infrastructure hosted at this\r\nIP is no longer relevant to the Abcbot campaign. It’s interesting to note that the author still\r\nchecks for the existence of this rule. This could indicate a desire to check whether this host\r\nwas successfully compromised by an earlier campaign, such as Xanthe.\r\nSimilarly, the Xanthe version of this function includes rules to drop ingress traffic from ports\r\n2375 and 2376.\r\niptables Docker rules in Xanthe\r\n These ports are associated with Docker’s API and researchers at Talos suggested that this\r\ncould be a tactic to prevent the system from being reinfected by other malware abusing\r\nexposed Docker API endpoints. This functionality has been commented-out in the Abcbot\r\nversion of the function although, once again, the check for the rule is still performed and\r\nlogged. This could suggest a shift away from targeting misconfigured instances of Docker in\r\nthe Abcbot campaign.\n\n13/20\r\niptables Docker rules in Abcbot\r\n \r\nfilerungo()\r\nfilerungo function in Xanthe\r\n \n\n14/20\r\nfilerungo function in Abcbot\r\n These functions have more syntactic and style differences than the functions we previously\r\nanalyzed. However, if we consider the logic that the function is responsible for, we can begin\r\nto notice similarities. Firstly, let’s look at an example of lines that are virtually identical\r\nbetween the samples.\r\nvm.nr_hugepages configuration in Xanthe\n\n15/20\r\nCommented equivalent in Abcbot\r\n \r\nIn the Xanthe sample, we can see that the authors configure the HugePages feature via the\r\nvm.nr_hugepages parameter. This likely facilitates cryptocurrency mining, by configuring the\r\nsystem to support memory pages greater than the default. In Abcbot, we can see these\r\nsame lines commented-out, potentially indicating that mining is no longer an objective of this\r\ncampaign. This supports the findings in our initial analysis of Abcbot, as we didn’t see any\r\ndeliberate attempts to install the XMRig mining software in that particular sample.\r\nSemantically, the two functions are similar in that they check for a process associated with a\r\nprior compromise, log whether the process is running and, if not, launch the process as\r\nnecessary. The lines used to check for the existence of the process (711-712 in Xanthe and\r\n1196-1197 in Abcbot) are virtually identical.\r\nMiscellaneous Findings\r\nSSH Propagation\r\nTalos researchers noted that the method of propagation utilized by Xanthe was via\r\nenumeration of the known_hosts file, allowing the malware to spread to new hosts based on\r\nhosts the current host had previously connected to. The code responsible for this can be\r\nseen below:\r\nPropagation code seen in Xanthe – image credit: talosintelligence.com\r\n We observed this same technique being used by the authors of Abcbot, in the creatively-named function fucksshlog():\r\nSSH propagation code seen in Abcbot\n\n16/20\r\nAdding Malicious Users\r\nOur research of Abcbot showed examples of code used to add four malicious users to the\r\ncompromised host, effectively creating four backdoors for the actor to utilize. The malicious\r\nusernames in question were:\r\nlogger\r\nsysall\r\nsystem\r\nautoupdater\r\nIn the Xanthe sample, users with the same usernames are added to the system (if they do\r\nnot already exist).\n\n17/20\r\nAdding of malicious users in Xanthe\r\n \n\n18/20\r\nSimilarly, both Abcbot and Xanthe search for and remove users that we assumed were from\r\ncompeting campaigns. However, we now believe that at least some of these users come\r\nfrom historical campaigns by this same actor. Both samples include code to remove a user\r\nwith the username “opsecx12”. A similar string can be found displayed as ASCII art at the\r\ntop of the Xanthe sample (along with an appeal for donations from other actors making use\r\nof this malware).\r\nopsec_x12 ASCII art in the Xanthe sample\r\n \r\nCode to remove a user with the\r\nusername “opsecx12” in Abcbot\r\n References to /etc/ld.so.preload\r\nAs researchers at Talos reported, perhaps one of the defining features of Xanthe was the\r\nuse of an open source process hiding library named libprocesshider.so. This was used to\r\nhide the process created by the XMRig miner by inserting the path to the library into the\r\n/etc/ld.so.preload file.\r\nWe did not see evidence of this process hiding technique in the Abcbot sample we analyzed.\r\nWe did, however, see some code that references use of the technique in previous\r\ncampaigns (such as Xanthe) in the function kill_miner_proc; a function responsible for\r\nclearing artifacts of miners from competing or prior campaigns.\n\n19/20\r\nRemoval of /etc/ld.so.preload file\r\n Given that this technique was a fairly noteworthy feature of the Xanthe malware, we believe\r\nthis indicates yet another link between the two families.\r\nConclusion\r\nReaders with some experience in this field will have probably already considered the fact\r\nthat the samples analysed in both of these campaigns are shell scripts and, therefore,\r\nincredibly easy to copy. This is, of course, common. Code reuse and even like-for-like\r\ncopying is often seen between malware families and specific samples on any platform. It\r\nmakes sense from a development perspective; just as code for legitimate software is reused\r\nto save development time, the same occurs with illegitimate or malicious software.\r\nAs we’ve shown in this report, we believe that there are several links between both the\r\nXanthe and Abcbot malware families that suggest the same threat actor is responsible.\r\nThese include reuse of unique strings, mentions of shared infrastructure, stylistic choices\r\nand functionality that can be seen in both samples – most of which would be difficult and/or\r\npointless to copy exactly. If the same threat actor is behind both campaigns, it signals a shift\r\naway from the objective of mining cryptocurrency on compromised hosts onto activities more\r\ntraditionally associated with botnets – such as DDoS attacks. We suspect this won’t be the\r\nlast malware campaign we analyze from this actor.\r\nIndicators of Compromise (IoCs)\r\nFilename SHA256\r\nxanthe.sh 6a5a0bcb60944597d61d5311a4590f1850c2ba7fc44bbcde4a81b2dd1effe57c\r\nff.sh 56d677ed192b5010aa780d09c23b8ee8fdff94d39b20a07c7de76705e5f8c51f\r\nReferences\r\nFor tips and best practices when conducting forensics and incident response of\r\nmining malware attacks in Linux container and cloud environments, read the Ultimate\r\nGuide to Forensics of Mining Malware in Linux Container and Cloud Environments.\r\nAbout The Author\n\n20/20\r\nMatt Muir\r\nMatt is a security researcher with a passion for UNIX and UNIX-like operating systems. He\r\npreviously worked as a macOS malware analyst and his background includes experience in\r\nthe areas of digital forensics, DevOps, and operational cyber security. Matt enjoys technical\r\nwriting and has published research including pieces on TOR browser forensics, an emerging\r\ncloud-focused botnet, and the exploitation of the Log4Shell vulnerability.\r\nAbout Cado Security\r\nCado Security provides the cloud investigation platform that empowers security teams to\r\nrespond to threats at cloud speed. By automating data capture and processing across cloud\r\nand container environments, Cado Response effortlessly delivers forensic-level detail and\r\nunprecedented context to simplify cloud investigation and response. Backed by Blossom\r\nCapital and Ten Eleven Ventures, Cado Security has offices in the United States and United\r\nKingdom. For more information, please visit https://www.cadosecurity.com/ or follow us on\r\nTwitter @cadosecurity.\r\nPrev Post Next Post",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"VXUG"
	],
	"origins": [
		"pdf"
	],
	"references": [
		"https://papers.vx-underground.org/papers/Malware Defense/Malware Analysis 2022/2022-01-10 - Abcbot - An Evolution of Xanthe.pdf"
	],
	"report_names": [
		"2022-01-10 - Abcbot - An Evolution of Xanthe.pdf"
	],
	"threat_actors": [
		{
			"id": "eb3f4e4d-2573-494d-9739-1be5141cf7b2",
			"created_at": "2022-10-25T16:07:24.471018Z",
			"updated_at": "2026-11-18T02:00:25.358103Z",
			"deleted_at": null,
			"main_name": "Cron",
			"aliases": [],
			"source_name": "ETDA:Cron",
			"tools": [
				"Catelites",
				"Catelites Bot",
				"CronBot",
				"TinyZBot"
			],
			"source_id": "ETDA",
			"reports": null
		}
	],
	"ts_created_at": 1673535997,
	"ts_updated_at": 1794967574,
	"ts_creation_date": 1653754577,
	"ts_modification_date": 1653754577,
	"files": {
		"pdf": "https://archive.orkl.eu/060e3314734e8774569db473b0b7bcde28a110e4.pdf",
		"text": "https://archive.orkl.eu/060e3314734e8774569db473b0b7bcde28a110e4.txt",
		"img": "https://archive.orkl.eu/060e3314734e8774569db473b0b7bcde28a110e4.jpg"
	}
}