Kubernetes & Kubeflow Security: Crypto Mining Attacks & Mitigation

Security researchers have warned of hackers' continued attacks against Kubernetes clusters running Kubeflow machine learning (ML) instances by installing malicious containers that mine cryptocurrencies, such as Monero and Ethereum.
According to Microsoft Senior Security Researcher Yossi Weizman, the attacks began at the end of last month as he and his team discovered a spike in TensorFlow machine learning pod deployments. An investigation of the entry point of the pods revealed deployment aimed to mine cryptocurrency.
"The burst of deployments on the various clusters was simultaneous. This indicates that the attackers scanned those clusters in advance and maintained a list of potential targets, which were later attacked at the same time," said Weizman.
The hackers used two images in the attack. The first was the latest version of TensorFlow (tensorflow/tensorflow:latest), and the second was the latest version with GPU support (tensorflow/tensorflow:latest-gpu).
The images were legitimate but ran malicious crypto-mining code. The attackers abused the access to the Kubeflow centralized dashboard to create a new pipeline. Kubeflow Pipelines is a platform for deploying ML pipelines based on Argo Workflow. These dashboards were exposed to the internet instead of being only open to local access.
Hackers deployed at least two pods on each cluster: one for CPU mining, and the other for GPU mining. Both containers used open-source miners from GitHub: Ethminer in the case of the GPU container and XMRIG in the CPU one.
The malicious pods all had the same pattern of name; "sequential-pipeline-{random pattern}."
Weizman said that as part of the attack, hackers deployed a reconnaissance container that queries information about the environment, such as GPU and CPU information, as preparation for the mining activity. This also ran from a TensorFlow container.
"The attack is still active, and new Kubernetes clusters that run Kubeflow get compromised," Weizman added.
The campaign is similar to one staged in April last year. This also abused Kubernetes clusters in a crypto-mining campaign. However, instead of using Kubeflow Pipelines to deploy ML pipelines, it used a Jupyter notebook server. This campaign was the first that Microsoft observed targeting Kubeflow environments.
Weizman said that organizations running Kubeflow should ensure that the centralized dashboard isn't insecurely exposed to the internet. If Kubeflow should be exposed to the internet, make sure you use authentication. Administrators should also search containers that run TensorFlow images and inspect the entry point of those containers.
Blockchain
- Record Number of 401(k) & IRA Millionaires: Retirement Savings Trends
- 5 Common Cryptocurrency Hacking Methods & How to Protect Yourself
- Cryptocurrency Accounting: The Road to Mainstream Adoption
- Bitcoin Price Prediction: Could Bitcoin Reach $100,000 in 2021?
- QNAP Security Alert: Protect Your NAS from Dovecat Cryptocurrency Mining Malware
- HackBoss Telegram Scam: Cryptocurrency Malware Targeting Hackers
- Fake Crypto Mining Apps Removed from Google Play - Trend Micro Report
- Poly Network Hacked: $610M Cryptocurrency Theft – Details & Recovery Efforts
- Cryptomixers: How Hackers Launder Ransomware Payments & Evade Law Enforcement
-
Coinbase Phishing Attack: What Happened & How to Stay SafeMany or all of the products here are from our partners that pay us a commission. It’s how we make money. But our editorial integrity ensures our experts’ opi...
-
Docker Hub Security Vulnerabilities Exploited for Cryptocurrency MiningA cyber criminal gang has targeted poorly configured Docker containers to mine for cryptocurrency.In October, security researchers at Trend Micro discovered hackers targeting poorly configured servers...
