<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Monero &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/monero/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Wed, 14 Oct 2026 16:30:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>Black-T Malware: How TeamTnT Exploits Exposed Docker Daemon APIs for Cryptojacking</title>
		<link>https://www.bestdevops.com/cryptojacker-targets-exposed-docker-daemon-apis/</link>
					<comments>https://www.bestdevops.com/cryptojacker-targets-exposed-docker-daemon-apis/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Wed, 07 Oct 2020 05:38:55 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[cryptojacking]]></category>
		<category><![CDATA[masscan]]></category>
		<category><![CDATA[mimipenguins]]></category>
		<category><![CDATA[mimipy]]></category>
		<category><![CDATA[Monero]]></category>
		<category><![CDATA[pnscan]]></category>
		<category><![CDATA[TeamTnT]]></category>
		<category><![CDATA[XMRig cryptomine]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=13729</guid>

					<description><![CDATA[The TeamTnT hacking group deployed a new malware variant called Black-T that targets exposed Docker daemon APIs to steal credentials, scrape passwords, and mine Monero. Here is a technical breakdown of the attack chain and defensive guidance.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><em>This article is based on reporting originally published by BankInfoSecurity, sourced from research by Palo Alto Networks Unit 42.</em></p>



<h2 class="wp-block-heading">Overview</h2>



<p class="wp-block-paragraph">Palo Alto Networks Unit 42 researchers identified a new malware variant called <strong>Black-T</strong>, attributed to the cloud-focused threat actor group <strong>TeamTnT</strong>. Black-T targets exposed Docker daemon APIs to conduct scanning, credential theft, and Monero cryptojacking operations. The malware represents a significant evolution over earlier TeamTnT tooling, incorporating post-exploitation capabilities the group had not previously been observed using.</p>



<h2 class="wp-block-heading">Who Is TeamTnT?</h2>



<p class="wp-block-paragraph">TeamTnT is a cloud-focused threat group first identified by security researchers in May 2020. The group primarily targets misconfigured or unprotected cloud workloads — including Docker containers and Kubernetes clusters — deploying cryptomining malware to monetize compromised infrastructure. A recurring technique is stealing AWS credential files from compromised systems and using the harvested compute resources to mine Monero (XMR).</p>



<p class="wp-block-paragraph">Prior to Black-T, TeamTnT had already been observed weaponizing <strong>Weave Scope</strong>, a legitimate open-source cloud monitoring tool from Weaveworks that integrates with Docker, Kubernetes, and AWS EC2. By deploying Weave Scope on victim systems, the group gained a persistent, interactive foothold inside cloud environments without writing obviously malicious binaries.</p>



<h2 class="wp-block-heading">What Makes Black-T Different</h2>



<p class="wp-block-paragraph">According to Unit 42, Black-T introduces capabilities not seen in earlier TeamTnT malware:</p>



<ul class="wp-block-list">
<li><strong>Competitor eviction:</strong> Black-T actively searches for and terminates competing cryptojacking malware already running on the compromised host, including the Crux worm, an ntpd miner, and a redis-backup miner.</li>
<li><strong>Memory password scraping:</strong> The malware uses <strong>mimipy</strong> and <strong>mimipenguins</strong> — Linux and Unix equivalents of the Windows-focused Mimikatz tool — to scrape plaintext credentials from system memory.</li>
<li><strong>Credential exfiltration:</strong> Any passwords recovered by mimipenguins are exfiltrated to a TeamTnT command-and-control (C2) node. Unit 42 noted this was the first observed instance of TeamTnT performing this type of post-exploitation operation.</li>
<li><strong>Cloud security evasion:</strong> Black-T includes code to remove or bypass security agents from Alibaba Cloud (Aliyun) and Tencent Cloud.</li>
<li><strong>Extended network scanning:</strong> The malware uses three network scanners — <strong>masscan</strong>, <strong>pnscan</strong>, and <strong>zgrab</strong> — to discover additional attack targets.</li>
</ul>



<h2 class="wp-block-heading">The Black-T Attack Chain</h2>



<p class="wp-block-paragraph">The attack follows a structured sequence of steps:</p>



<h3 class="wp-block-heading">Step 1 — Initial Access via Exposed Docker Daemon API</h3>



<p class="wp-block-paragraph">TeamTnT scans for Docker daemon APIs that are exposed on the public internet or on a local network without authentication. When Docker is configured to listen on a TCP socket (commonly port 2375 for unauthenticated access or 2376 for TLS), and that port is reachable without proper access controls, an attacker can issue Docker API commands remotely — including creating and running containers — without any credentials.</p>



<p class="wp-block-paragraph">Once an exposed API is found, TeamTnT uses it to drop the Black-T malware onto the victim host.</p>



<h3 class="wp-block-heading">Step 2 — Environment Preparation</h3>



<p class="wp-block-paragraph">After execution, the malware displays an ASCII art banner identifying itself, then begins preparing the environment. This includes:</p>



<ul class="wp-block-list">
<li>Searching for and removing competing cryptomining processes (Crux, ntpd miner, redis-backup miner).</li>
<li>Disabling or removing cloud security agents from Aliyun and Tencent Cloud to reduce detection risk.</li>
</ul>



<h3 class="wp-block-heading">Step 3 — Credential Theft</h3>



<p class="wp-block-paragraph">Black-T uses <strong>mimipy</strong> (a Python implementation) and <strong>mimipenguins</strong> (a shell-script-based tool) to extract plaintext credentials from system memory on Linux and Unix hosts. These tools mirror the functionality of Mimikatz on Windows. Any recovered passwords are sent to a TeamTnT C2 server.</p>



<p class="wp-block-paragraph">The malware also contains AWS credential-stealing functionality, targeting the standard AWS credential file locations that developers and automation tools commonly use (<code>~/.aws/credentials</code>).</p>



<h3 class="wp-block-heading">Step 4 — Network Scanning for Lateral Expansion</h3>



<p class="wp-block-paragraph">Black-T uses three scanning tools to identify additional exposed Docker daemon APIs and other targets on both the local network and connected networks:</p>



<ul class="wp-block-list">
<li><strong>masscan</strong> — A fast TCP port scanner capable of scanning large address ranges quickly.</li>
<li><strong>pnscan</strong> — A parallel network scanner.</li>
<li><strong>zgrab</strong> — A Go-based application-layer scanner used to capture service banners. Unit 42 noted that zgrab is relatively lesser-known in this context, and researchers assessed that TeamTnT may have been testing its capabilities for future operations at the time of analysis.</li>
</ul>



<h3 class="wp-block-heading">Step 5 — Monero Mining</h3>



<p class="wp-block-paragraph">After the environment is secured and the network has been mapped, the malware downloads a Monero mining payload and begins mining, sending mined currency to a pre-configured wallet address controlled by TeamTnT.</p>



<h2 class="wp-block-heading">Broader Context: Cloud Cryptojacking Trends in 2020</h2>



<p class="wp-block-paragraph">Black-T emerged as part of a broader wave of cloud-targeted cryptojacking activity in 2020:</p>



<ul class="wp-block-list">
<li>In <strong>June 2020</strong>, Unit 42 reported a cryptojacking campaign that used malicious Docker images hosted on public registries to embed hidden cryptocurrency mining code inside containers pulled by unsuspecting users.</li>
<li>Also in <strong>June 2020</strong>, Microsoft&#8217;s Azure Security Center warned of a campaign targeting the <strong>Kubeflow</strong> machine-learning platform on Kubernetes, where attackers deployed the XMRig cryptominer to mine Monero on compromised clusters.</li>
<li>In the weeks prior to the Black-T report, TeamTnT had been observed abusing <strong>Weave Scope</strong> to gain persistent access and deploy cryptojackers in Docker and Kubernetes environments.</li>
</ul>



<h2 class="wp-block-heading">Defensive Recommendations</h2>



<p class="wp-block-paragraph">The Black-T campaign exploits a well-known and avoidable misconfiguration. Engineering teams running Docker in any environment — cloud or on-premises — should take the following steps:</p>



<h3 class="wp-block-heading">Secure the Docker Daemon API</h3>



<ul class="wp-block-list">
<li><strong>Do not expose the Docker daemon TCP socket to the internet or untrusted networks.</strong> By default, Docker listens on a Unix socket (<code>/var/run/docker.sock</code>) with no network exposure. Enabling TCP without TLS authentication is the root cause of this attack vector.</li>
<li>If remote API access is required, enforce <strong>mutual TLS (mTLS)</strong> authentication using client certificates.</li>
<li>Apply firewall rules and network security groups to restrict access to Docker API ports (2375, 2376) to trusted IP ranges only.</li>
</ul>



<h3 class="wp-block-heading">Protect Cloud Credentials</h3>



<ul class="wp-block-list">
<li>Avoid storing long-lived AWS access keys in <code>~/.aws/credentials</code> on cloud instances. Use IAM instance roles instead to grant permissions without static credentials.</li>
<li>Monitor AWS CloudTrail for unexpected API calls, particularly from unknown IP addresses.</li>
</ul>



<h3 class="wp-block-heading">Monitor for Cryptomining Indicators</h3>



<ul class="wp-block-list">
<li>Alert on unexpected CPU spikes on container hosts, which are a common indicator of cryptomining activity.</li>
<li>Monitor outbound network connections to known Monero mining pool endpoints.</li>
<li>Use container runtime security tools to detect unexpected process execution inside containers (e.g., masscan, zgrab, XMRig, mimipy).</li>
</ul>



<h3 class="wp-block-heading">Harden Container Environments</h3>



<ul class="wp-block-list">
<li>Regularly audit running containers and deployed images for unexpected or unauthorised workloads.</li>
<li>Use read-only container filesystems and drop Linux capabilities where possible to limit what malware can do if it gains execution.</li>
<li>Apply Kubernetes Network Policies or Docker network segmentation to limit lateral movement between services.</li>
</ul>



<h2 class="wp-block-heading">Summary</h2>



<p class="wp-block-paragraph">Black-T represents a meaningful step up in sophistication for TeamTnT. By combining exposed Docker API exploitation with competitor eviction, Linux memory credential scraping, cloud security evasion, and multi-tool network scanning, the group demonstrated an increasingly systematic approach to compromising and monetising cloud infrastructure. The core vulnerability — an unauthenticated Docker daemon API accessible over the network — remains entirely preventable through correct configuration. Engineering and security teams running containerised workloads should treat an exposed Docker API as a critical severity finding and remediate it immediately.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/cryptojacker-targets-exposed-docker-daemon-apis/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
