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

10/16/2019
10:55 AM
50%
50%

Cryptojacking Worm Targets and Infects 2,000 Docker Hosts

Basic and 'inept' worm managed to compromise Docker hosts by exploiting misconfigurations.

Some 2,000 Docker hosts have been attacked and infected by a relatively basic worm that exploits misconfigured permissions to download and run cryptojacking software as malicious containers.

Network security firm Palo Alto Networks in a report today said that despite its "inept" programming, the so-called Graboid worm has been successful: it searches for unsecured docker daemons, uses the access to the Docker host to install malicious images from the Docker Hub, and then runs scripts downloaded from a command-and-control (C2) server. Among the scripts are a cryptomining program that "mines" — or attempts to generate — the Monero cryptocurrency. Each miner is active about 63% of the time, according to Palo Alto.

The worm is not exploiting a vulnerability, but a lack of proper security settings, says Jen Miller-Osborn, deputy director of Palo Alto Networks' Unit 42 threat intelligence group.

"The issues is a lack of updating any of the initial security settings," she says. "The initial point of entry into the Docker host is there because none of the settings were changed. The front door is basically open on these systems."

Cryptomining and cryptojacking have become favored tactics of online attackers as a way of easily monetizing compromised systems, and continues to be used even as the price of cryptocurrencies have declined from their highs of December 2017 and January 2018. Cryptomining through malware and cryptojacking, where resources are used without the owner's authorization, are often used as way to generate a small amount of money from systems that would otherwise not be valuable to attackers. 

Initially, cryptojacking often involved running JavaScript inside the browsers of visitors to compromised sites. Using co-opted cloud resources is a technique that took off in 2018. One report found that cryptojacking of cloud resources affected a quarter of all companies in early 2018. While the Graboid worm is rudimentary, Palo Alto Networks warns that it could easily be updated through its connection with command-and-control servers.

"While this cryptojacking worm doesn't involve sophisticated tactics, techniques, or procedures, the worm can periodically pull new scripts from the C2s, so it can easily repurpose itself to ransomware or any malware to fully compromise the hosts down the line and shouldn’t be ignored," the company stated in the report.

The worm spreads by identifying vulnerable docker hosts and then sending a command to download a malicious docker image. The image is instantiated as a container, connects to the command-and-control (C2) server and download four scripts that downloads a list of IP addresses of more than 2,000 vulnerable hosts, determines the number of CPUs, and continues to spread. 

More than half of the vulnerable hosts are based in China, while about 14% are based in the United States and Ireland accounts for 4%, Palo Alto stated in its analysis.

Palo Alto conducted a simulation of the worm and, assuming that 70% of hosts are available at any given time, found out that it would take less than an hour to infect 1,400 vulnerable hosts. The cluster of 1,400 compromised hosts would give the group approximately 900 CPUs of processing power for cryptomining activities.

Locking Down Containers

Companies need to make sure that they lock down their container-based infrastructure, and know what parts of the infrastructure are their responsibility to secure, Miller-Osborn says. 

"With everyone wanting to shift into the cloud, there is a lack of understanding on both the consumer and the provider side of who's responsible for which part of the infrastructure," she says. "These containers that [the worm is] getting into are those that are left open to the entire Internet. It's not something that most people would do on purpose, but whenever they set that up, they fail to implement best practices to secure the images." 

The Docker team worked with Palo Alto Networks to remove the malicious images from the Docker Hub.

Palo Alto urged companies to lock down their containers and Docker hosts. Users should connect to the docker daemon with SSH, never use Docker images from unknown repositories or maintainers, and use firewall rules to limit the IP addresses that can access the Docker host.

"Never expose a docker daemon to the internet without a proper authentication mechanism," the company said in the report. "Note that by default the Docker Engine (CE) is NOT exposed to the internet."

Related Content:

 

This free, all-day online conference offers a look at the latest tools, strategies, and best practices for protecting your organization’s most sensitive data. Click for more information and, to register, here.

Veteran technology journalist of more than 20 years. Former research engineer. Written for more than two dozen publications, including CNET News.com, Dark Reading, MIT's Technology Review, Popular Science, and Wired News. Five awards for journalism, including Best Deadline ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Black Hat Q&A: Hacking a '90s Sports Car
Black Hat Staff, ,  11/7/2019
The Cold Truth about Cyber Insurance
Chris Kennedy, CISO & VP Customer Success, AttackIQ,  11/7/2019
6 Small-Business Password Managers
Curtis Franklin Jr., Senior Editor at Dark Reading,  11/8/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Current Issue
7 Threats & Disruptive Forces Changing the Face of Cybersecurity
This Dark Reading Tech Digest gives an in-depth look at the biggest emerging threats and disruptive forces that are changing the face of cybersecurity today.
Flash Poll
Rethinking Enterprise Data Defense
Rethinking Enterprise Data Defense
Frustrated with recurring intrusions and breaches, cybersecurity professionals are questioning some of the industrys conventional wisdom. Heres a look at what theyre thinking about.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-15815
PUBLISHED: 2019-11-12
ZyXEL P-1302-T10D v3 devices with firmware version 2.00(ABBX.3) and earlier do not properly enforce access control and could allow an unauthorized user to access certain pages that require admin privileges.
CVE-2019-17360
PUBLISHED: 2019-11-12
A vulnerability in Hitachi Command Suite 7.x and 8.x before 8.7.0-00 allows an unauthenticated remote user to trigger a denial of service (DoS) condition because of Uncontrolled Resource Consumption.
CVE-2018-21026
PUBLISHED: 2019-11-12
A vulnerability in Hitachi Command Suite 7.x and 8.x before 8.6.5-00 allows an unauthenticated remote user to read internal information.
CVE-2012-1572
PUBLISHED: 2019-11-12
OpenStack Keystone: extremely long passwords can crash Keystone by exhausting stack space
CVE-2019-17234
PUBLISHED: 2019-11-12
includes/class-coming-soon-creator.php in the igniteup plugin through 3.4 for WordPress allows unauthenticated arbitrary file deletion.