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.

Vulnerabilities / Threats

Kubernetes Shows Built-in Weakness

A Shmoocon presentation points out several weaknesses built in to Kubernetes configurations and how a researcher can exploit them.

Containers — single processes virtualized in isolated environments — are becoming important parts of the IT infrastructure at many companies, especially those embracing DevOps or continuous deployment methodologies. And Kubernetes, an open source system for automating container deployment and management, is being embraced by a growing number of companies that use containers. So naturally, testing and improving Kubernetes' security has become an important topic for security professionals.

At the recent ShmooCon in Washington, DC, Mark Manning, technical director of NCC Group, gave a presentation on Kubernetes for penetration testers — a presentation in which he examined the vulnerabilities of the system and the tools available for testing them. Explaining why he thinks the topic is important, he says the reasons come down to numbers.

"Eighty-five percent of customers are definitely deploying containers or they plan to, in the most common thing I see," Manning says. "I think it's pretty safe to say that with the Fortune 500, half of them are currently using containers in production."

Built-in Dangers
In his presentation, Manning began his look at vulnerabilities with those arising through Kubernetes' configuration — something he says is the root of many dangers.

"I think I'd go so far as saying that by default, it is actually an unsafe platform," Manning says. "And if you took just the code from Kubernetes and deployed it into your own environment, the defaults that are provided create a lot of security vulnerabilities in itself." That risk, he says, is why so many companies have abandoned the idea of deploying Kubernetes on their own servers and now use cloud service providers for their Kubernetes platforms.

One of the issues companies face with configurations, Manning says, is that there are so many ways to do it badly. And that wide variety of possible problems informs the way that Manning approaches security testing in Kubernetes deployments.

Divide and Test
"The way that we do assessments is we will look at the application separately from the infrastructure," Manning says. As part of that process, he says that the application testing and evaluation is the same performed on any platform. The source code is evaluated for vulnerabilities and bugs, all of which are reported to the client for remediation. Then comes the Kubernetes evaluation.

In his presentation, Manning described a process of setting up "attack pods" (a pod is a collection of containers) using standard Kubernetes tools such as kuberctl (a control-line interface for Kubernetes) and cURL (an interface for accessing the API-only components of Kubernetes). His team will also use standard security assessment tools like metasploit, aimed at a Kubernetes target. The point of doing all this creation and "curling" the components is that a successful attack could allow someone to gain access to multiple containers within the pod, violating the separation that's supposed to protect every application.

"We start inside a container and we do what we call 'breakout assessments' that will validate whether or not the container technology is effective at isolating an attacker to only be able to affect this one application," Manning explains. And in a Kubernetes deployment, that separation technology might have been intentionally weakened.

Finding Weakness by Design
"Kubernetes is actively making choices designed to make things faster with higher performance, and make things work easier, at the cost of security," Manning says. He contrasts this with Docker, which employs technology similar to that used in the Google Chrome browser's sandbox to maintain separation and security.

In Kubernetes' case, he explains, the security has been intentionally weakened to make it easier for administrators to rapidly create and manage containers and pods. It's part of a pattern that Manning says he's seen in other products, in which they're made feature-rich and easy to use, with the hope that security will somehow be bolted on later.

The main criminal benefactors of all this, Manning says, are cryptominers who love to find unprotected pods. And they don't have to research or use zero-day exploits to do it. "Throughout this whole presentation, I'm not talking about zero-days or CVEs or exploits like that. I'm talking about misconfigurations because that's what's been working in all these assessments," Manning says.

Related content:

Check out The Edge, Dark Reading's new section for features, threat data, and in-depth perspectives. Today's top story: "C-Level & Studying for the CISSP."

Curtis Franklin Jr. is Senior Editor at Dark Reading. In this role he focuses on product and technology coverage for the publication. In addition he works on audio and video programming for Dark Reading and contributes to activities at Interop ITX, Black Hat, INsecurity, and ... View Full Bio
 

Recommended Reading:

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 7/9/2020
4 Security Tips as the July 15 Tax-Day Extension Draws Near
Shane Buckley, President & Chief Operating Officer, Gigamon,  7/10/2020
Russian Cyber Gang 'Cosmic Lynx' Focuses on Email Fraud
Kelly Sheridan, Staff Editor, Dark Reading,  7/7/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Special Report: Computing's New Normal, a Dark Reading Perspective
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
The Threat from the Internetand What Your Organization Can Do About It
The Threat from the Internetand What Your Organization Can Do About It
This report describes some of the latest attacks and threats emanating from the Internet, as well as advice and tips on how your organization can mitigate those threats before they affect your business. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-15105
PUBLISHED: 2020-07-10
Django Two-Factor Authentication before 1.12, stores the user's password in clear text in the user session (base64-encoded). The password is stored in the session when the user submits their username and password, and is removed once they complete authentication by entering a two-factor authenticati...
CVE-2020-11061
PUBLISHED: 2020-07-10
In Bareos Director less than or equal to 16.2.10, 17.2.9, 18.2.8, and 19.2.7, a heap overflow allows a malicious client to corrupt the director's memory via oversized digest strings sent during initialization of a verify job. Disabling verify jobs mitigates the problem. This issue is also patched in...
CVE-2020-4042
PUBLISHED: 2020-07-10
Bareos before version 19.2.8 and earlier allows a malicious client to communicate with the director without knowledge of the shared secret if the director allows client initiated connection and connects to the client itself. The malicious client can replay the Bareos director's cram-md5 challenge to...
CVE-2020-11081
PUBLISHED: 2020-07-10
osquery before version 4.4.0 enables a priviledge escalation vulnerability. If a Window system is configured with a PATH that contains a user-writable directory then a local user may write a zlib1.dll DLL, which osquery will attempt to load. Since osquery runs with elevated privileges this enables l...
CVE-2020-6114
PUBLISHED: 2020-07-10
An exploitable SQL injection vulnerability exists in the Admin Reports functionality of Glacies IceHRM v26.6.0.OS (Commit bb274de1751ffb9d09482fd2538f9950a94c510a) . A specially crafted HTTP request can cause SQL injection. An attacker can make an authenticated HTTP request to trigger this vulnerabi...