Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Cloud Security //

IaaS

// // //
3/26/2018
09:35 AM
Larry Loeb
Larry Loeb
Larry Loeb

Cybercriminals Using Kubernetes, Docker to Bitcoin Mine

Supposedly safe and secure Docker containers and the Kubernetes orchestration system can actually be manipulated to mine Bitcoin and other cryptocurrencies, researchers have found.

Cybercriminals have been running cryptocurrency attacks on hijacked machines for some time, finding it more profitable than ransomware. Now however, malware authors have found a new way to take their nefarious actions into the cloud and bypass the need for hijacking individual computers.

Reports have surfaced of attempts to run mining activities on Docker and Kubernetes systems. At the start of 2018, Sysdig researchers found that the Kubernetes instances on their honeypot servers were being attacked, with the aim of creating Docker containers that would mine Bitcoin.

Sysdig saw that the attacker created a container that mounted /etc/ from the host filesystem to /mnt/etc/ inside the container.

(Source: Pixabay)
(Source: Pixabay)

Then, by writing to files below /mnt/etc/ inside the container, they can write to files below /etc on the host. They were writing to /etc/crontab, which then downloaded a file every minute and then ran as a bash script. That script would kill any competing mining programs and install its own Bitcoin miner which used all of the host machine's available cores.

A similar attack scheme was noted by Aqua Security and explained on its blog. The effective difference between the two events was Aqua noted Monero mining occurring on net-exposed Docker containers that were not bounded by Kubernetes.

The unanswered question in all of this was how a Kubernetes instance -- such as Sysdig had running -- could be breached to allow the mining to happen.

It took Alexander Urcioli, senior security engineer at Handy HQ, to connect the dots.

Urcioli discovered that on a co-worker's machine an attacker ran commands on a Kubernetes instance without authentication, something that should not have happened. He wrote on Medium that he discovered a misconfiguration in how Kubernetes was deployed that had startling effects.


The fundamentals of network security are being redefined -- don't get left in the dark by a DDoS attack! Join us in Austin from May 14-16 at the fifth annual Big Communications Event. There's still time to register and communications service providers get in free!

Specifically, Urcioli knew the Kubernetes api-server was publicly exposed to the Internet but was protected with certificate authentication. He realized that:

Unless you specify some flags on Kubelet, it's default mode of operation is to accept unauthenticated API requests. Keep in mind that in order for master -> node communication to work, the Kubernetes API server must be able to talk to kubelet on your nodes.

The co-worker's server had mistakenly been configured to allow the public exposing of the kubelet ports (tcp 10250, tcp 10255) to the net. That meant the attacker could access them as use the kubelet API as a backdoor into the cluster.

And now the reason the attack worked at all seems far less mysterious. The kubelet has to be locked down, or it will let almost anything get in. This has to be done explicitly, because it doesn't happen by default.

Configuration issues are being realized as a major security issue of late. Recent configuration problems in Amazon S3 containers have left private information publicly accessible, for example. Security professionals will need to pay attention to the details of configuration or pay the price in Monero.

Related posts:

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Edge-DRsplash-10-edge-articles
I Smell a RAT! New Cybersecurity Threats for the Crypto Industry
David Trepp, Partner, IT Assurance with accounting and advisory firm BPM LLP,  7/9/2021
News
Attacks on Kaseya Servers Led to Ransomware in Less Than 2 Hours
Robert Lemos, Contributing Writer,  7/7/2021
Commentary
It's in the Game (but It Shouldn't Be)
Tal Memran, Cybersecurity Expert, CYE,  7/9/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
The 10 Most Impactful Types of Vulnerabilities for Enterprises Today
Managing system vulnerabilities is one of the old est - and most frustrating - security challenges that enterprise defenders face. Every software application and hardware device ships with intrinsic flaws - flaws that, if critical enough, attackers can exploit from anywhere in the world. It's crucial that defenders take stock of what areas of the tech stack have the most emerging, and critical, vulnerabilities they must manage. It's not just zero day vulnerabilities. Consider that CISA's Known Exploited Vulnerabilities (KEV) catalog lists vulnerabilitlies in widely used applications that are "actively exploited," and most of them are flaws that were discovered several years ago and have been fixed. There are also emerging vulnerabilities in 5G networks, cloud infrastructure, Edge applications, and firmwares to consider.
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2023-1142
PUBLISHED: 2023-03-27
In Delta Electronics InfraSuite Device Master versions prior to 1.0.5, an attacker could use URL decoding to retrieve system files, credentials, and bypass authentication resulting in privilege escalation.
CVE-2023-1143
PUBLISHED: 2023-03-27
In Delta Electronics InfraSuite Device Master versions prior to 1.0.5, an attacker could use Lua scripts, which could allow an attacker to remotely execute arbitrary code.
CVE-2023-1144
PUBLISHED: 2023-03-27
Delta Electronics InfraSuite Device Master versions prior to 1.0.5 contains an improper access control vulnerability in which an attacker can use the Device-Gateway service and bypass authorization, which could result in privilege escalation.
CVE-2023-1145
PUBLISHED: 2023-03-27
Delta Electronics InfraSuite Device Master versions prior to 1.0.5 are affected by a deserialization vulnerability targeting the Device-DataCollect service, which could allow deserialization of requests prior to authentication, resulting in remote code execution.
CVE-2023-1655
PUBLISHED: 2023-03-27
Heap-based Buffer Overflow in GitHub repository gpac/gpac prior to 2.4.0.