Thursday, June 19, 2025
Cloud Native Now

Cloud Native Now


MENUMENU
  • Home
  • Webinars
    • Upcoming
    • Calendar View
    • On-Demand
  • Podcasts
    • Cloud Native Now Podcast
    • Techstrong.tv Podcast
    • Techstrong.tv - Twitch
  • About
  • Sponsor
MENUMENU
  • News
    • Latest News
    • News Releases
  • Cloud-Native Development
  • Cloud-Native Platforms
  • Cloud-Native Networking
  • Cloud-Native Security
Cloud-Native Architecture Cloud-Native Development Cloud-Native Security Docker Social - Facebook Social - LinkedIn Social - X 

Bad Actors Exploiting Docker Remote API Servers in Attacks

November 4, 2024 Jeff Burt cryptomining, Docker attack, malware campaign, remote API, Trend Micro
by Jeff Burt

Researchers from cybersecurity vendor Trend Micro are urging developers to secure and monitor their Docker remote API servers after attacks by threat actors targeting the systems to install a Linux malware and a cryptocurrency miner on compromised systems.

In a pair of reports, the researchers outlined recent attacks that installed and deployed either the perfctl malware or SRBMiner crypto miner, an indication that bad actors are ramping up their efforts to exploit the vulnerability of these servers.

Techstrong Gang Youtube
AWS

“Exploiting exposed Docker remote API servers has now reached a critical level where the attention of an organization and its security professionals is seriously required,” threat researchers Sunil Bharti and Ranga Duraisamy wrote in one report. “The first step to avoiding such incidents is understanding the attack sequence a threat actor can use. It is essential that every organization’s Docker Remote API server is secured, monitored regularly for unauthorized access and suspicious activities to reduce the risk of attacks, and has security patches up to date.”

In the report, Bharti and Duraisamy said the attacks installing perfctl start with the bad actors probing for vulnerable Docker remote API servers. Perfctl is a persistent multipurpose backdoor known to deploy cryptojacking malware – when a victim’s compute resources to mine for cryptocurrencies – and proxyjacking, in which hackers not only steal compute resources but also unused bandwidth for their nefarious activities.

Once a vulnerable system is identified, the hackers create a Docker container in a way that includes a name that is similar to a legitimate container and enables it to run in a privileged mode. They also configure their container to “share the same PID namespace as the processes on the host. As a result, the container’s processes will be able to see and interact with all the processes running on the host system in the same way as all running processes, as if they were running directly on the host.”

Two-Part Payload

The container executes a two-part malicious payload via a Docker Exec API, with the first trying to escape the container and the second containing a Base64 encoded shell script, which checks for and prevents duplicate processes and then creates a Bash script that contains a series of commands.

The malware also uses techniques to evade detection, including checking for similar processes and creating directories and a custom function to download files.

This isn’t the only recent report of perfctl being used in attacks. Aqua Security researchers early this month wrote they had discovered the malware exploiting more than 20,000 types of misconfigurations and undetected vulnerabilities to target Linux systems over the past three to four years.

They warned that users with Linux servers connected to the internet were at risk, adding that “given the scale, we strongly believe the attackers targeted millions worldwide with a potential number of victims of thousands, it appears that with this malware any Linux server could be at risk.”

Mining Crypto

In the second Trend Micro report, Bharti and Abdelrahman Esmail wrote that threat actors were targeting Docker remote API servers to deploy SRBMiner to mine XRP crypto, using the gRPC protocol (a framework for transmitting data and implementing APIs using HTTP 2.0) over h2c (HTTP/2 over TCP) to evade security protections and run their cryptomining operations on the Docker host.

They noted that while Docker’s remote API is convenient for developers who want to manage their containers, images and volumes remotely, “this feature also introduces security risks if remote API servers are left misconfigured and exposed to the internet, which could lead to security breaches and exploitation by malicious actors.”

Think Before Enabling by Default

Katie Paxton-Fear, API researcher with Traceable AI, echoed the thought, adding that organizations should think before enabling the remote API by default.

“If you are not 100% sure you need this feature, the safest thing to do is disable it,” Paxton-Fear said. “In this case [involving perfctl], the researchers were able to pivot from a single docker container to the host via a container escape, but if the management API is simply disabled when not in use, the vulnerability is completely avoidable.”

She added that all management APIs have high levels of access and can create and modify resources at will.

“You must ensure you use strong authentication and authorization to ensure that not only those with valid credentials access a management console, but also that they have the correct permissions,” Paxton-Fear said. “This allows you to easily revoke access. But if a user’s credentials are leaked, it is also vital to have logging and monitoring in place for Docker exec so you are aware when new containers are created and used.”

A To-Do List

The Trend Micro researchers also outlined several other steps that need to be taken, including implementing strong access controls and authentication mechanisms, regularly monitoring the remote API servers for unusual activities, and implementing strong security practices like avoiding the use of “privileged” mode and reviewing container images and configurations before deploying them.

Other recommendations include not running containers with root privileges, performing regular security audits and keeping up with security updates and patches for Docker and related software to protect against known vulnerabilities.

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)

Related

  • ← DevOps Dynamics: Kubernetes and Virtual Machines in a Unified Ecosystem
  • Aerospike Extends Scope of Kubernetes Operator for Real-Time Database →

Techstrong TV

Click full-screen to enable volume control
Watch latest episodes and shows

Tech Field Day Events

UPCOMING WEBINARS

  • CloudNativeNow.com
  • DevOps.com
  • SecurityBoulevard.com
Cost-efficient cloud infrastructures for AI workloads
15 July 2025
Cost-efficient cloud infrastructures for AI workloads
The Multicloud Imperative: Oracle and Azure deliver a seamless experience
26 June 2025
The Multicloud Imperative: Oracle and Azure deliver a seamless experience
Drive Productivity and Growth through Enterprise Service Management
29 July 2025
Drive Productivity and Growth through Enterprise Service Management
Strengthen AWS Infrastructure Security with Sentinel in Terraform
23 July 2025
Strengthen AWS Infrastructure Security with Sentinel in Terraform
Cost-efficient cloud infrastructures for AI workloads
15 July 2025
Cost-efficient cloud infrastructures for AI workloads
How to Spot and Stop Security Risks From Unmanaged AI Tools
17 July 2025
How to Spot and Stop Security Risks From Unmanaged AI Tools

Podcast


Listen to all of our podcasts

Press Releases

ThreatHunter.ai Halts Hundreds of Attacks in the past 48 hours: Combating Ransomware and Nation-State Cyber Threats Head-On

ThreatHunter.ai Halts Hundreds of Attacks in the past 48 hours: Combating Ransomware and Nation-State Cyber Threats Head-On

Deloitte Partners with Memcyco to Combat ATO and Other Online Attacks with Real-Time Digital Impersonation Protection Solutions

Deloitte Partners with Memcyco to Combat ATO and Other Online Attacks with Real-Time Digital Impersonation Protection Solutions

SUBSCRIBE TO CNN NEWSLETTER

MOST READ

Docker, Inc. Adds Curated Hardened Container Images to Hub

May 19, 2025

Red Hat Extends Scope and Reach of OpenShift Platform

May 20, 2025

OpenSearch 3.0: Vector Search Gets the Open Source Performance Boost AI Applications Need

May 22, 2025

Mirantis Extends Appeal of Control Plane to Traditional IT Administrators

May 28, 2025

F5 Extends Ability to Scale and Secure Network Traffic Across Kubernetes Clusters

May 28, 2025

RECENT POSTS

Evolving Kubernetes and GKE for Gen AI Inference 
Contributed Content Kubernetes Social - Facebook Social - LinkedIn Social - X Topics 

Evolving Kubernetes and GKE for Gen AI Inference 

June 19, 2025 Akshay Ram 0
Automating Kubernetes Cleanup in CI Workflows
Container/Kubernetes Management Contributed Content Social - X 

Automating Kubernetes Cleanup in CI Workflows

June 16, 2025 Hrittik Roy 0
Rethinking Kubernetes Complexity in the Enterprise with Paul Turner
Video Interviews 

Rethinking Kubernetes Complexity in the Enterprise with Paul Turner

June 12, 2025 Alan Shimel 0
The Case for Hardened Container Images with Ryan Carlson
Video Interviews 

The Case for Hardened Container Images with Ryan Carlson

June 12, 2025 Mike Vizard 0
Scaling Real-Time Chat Applications With Docker Swarm and WebSockets
Contributed Content Docker Social - Facebook Social - LinkedIn Social - X Topics 

Scaling Real-Time Chat Applications With Docker Swarm and WebSockets

June 11, 2025 Aditya Gupta 0
  • About
  • Media Kit
  • Sponsor Info
  • Write for Cloud Native Now
  • Copyright
  • TOS
  • Privacy Policy
Powered by Techstrong Group
Copyright © 2025 Techstrong Group, Inc. All rights reserved.
×