VOOZH about

URL: https://thenewstack.io/kinsing-malware-targets-kubernetes/

⇱ Kinsing Malware Targets Kubernetes - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-01-13 07:29:57
Kinsing Malware Targets Kubernetes
Cloud Native Ecosystem / Kubernetes / Security

Kinsing Malware Targets Kubernetes

Kinsing is an old-school Linux/Unix Executable and Link format (ELF) malware program that runs a cryptominer and attempts to spread itself to other containers and hosts.
Jan 13th, 2023 7:29am by Steven J. Vaughan-Nichols
👁 Featued image for: Kinsing Malware Targets Kubernetes

It’s always something! The Kinsing malware has long been known to Linux administrators, and, now — surprise! — it’s coming after Kubernetes as well.

Kinsing is an old-school Linux/Unix Executable and Link format (ELF) malware program, written in Go. Given a chance, it runs a cryptominer and attempts to spread itself to other containers and hosts. Over the years, it’s been used in attacks against Docker, Redis, and SaltStack. And, now, now, Kinsing hackers are coming after Kubernetes. I’m shocked, shocked to discover that cryptomining is going on in Kubernetes!

Not.

Sunders Bruskin, Microsoft Defender for Cloud security researcher, is reporting on how it’s now often targeting Kubernetes clusters using two different initial access vector techniques. These are the exploitation of weakly configured PostgreSQL containers and vulnerable images.

In other words, it’s about what you’d expect. Lock down your PostgreSQL settings and check your images for security weaknesses. It’s not that hard.

Microsoft found many images that were vulnerable to remote code execution.  These allowed attackers with network access to exploit the container and run their malicious payload. In particular,

The following application images were found to have vulnerable versions:

  • PHPUnit
  • Liferay
  • WebLogic
  • WordPress

Microsoft picked on Oracle WebLogic as a prime example. Much as I like to pick on Oracle, it’s not their fault. In 2020 Oracle disclosed three serious vulnerabilities that allowed remote code execution: CVE-2020-14882, CVE-2020-14750, and CVE-2020-14883. But has everyone adopted the fixed versions and built safe images? No. No, they haven’t.

Idiots.

Recently, Microsoft identified a widespread Kinsing campaign, which targeted vulnerable WebLogic servers. The attacks began by scanning IP addresses and looking for an open port that matches the WebLogic default port (7001). Once it finds a potential victim, it loads Kinsing in the system using curl and Bash.

Microsoft mentions, of course, that Microsoft Defender for Cloud, can identify this kind of behavior.

Examples of such alerts include:

  • A file was downloaded and executed – a file has been downloaded to the container, given execution privileges, and then executed.
  • Behavior similar to common Linux bots detected – execution of a process associated with common Linux botnets.
  • Detected suspicious file download – can identify the suspicious download of binaries that can pose a risk to the host.
  • Suspicious download, then run activity – looks for suspicious files that were downloaded and executed.

Other cloud security programs can do the same. You are using one, right? Right!?

Besides that, stop the infection from happening in the first place by using an image from a known, trusted registry and making sure you patched it up to the latest version. That would be, by the way, Oracle WebLogic Server 14.1.x.

The other popular way to sneak Kinsing in is to exploit weakly configured PostgreSQL instances. These misconfigurations include:

Using the “trust authentication” setting. This is NOT a good idea. As PostgreSQL states: “When trust authentication is specified, PostgreSQL assumes that anyone who can connect to the server is authorized to access the database with whatever database user name they specify (even superuser names).” Please, for the love of your cloud and little kittens, do not use trust authentication. It’s a security hole masquerading as a feature.

In addition, in some configurations, PostgreSQL will accept connections from any IP address. And when I say, “any,” I mean any.  For example, it can accept 0.0.0.0/0 as a good address. Oh, and in such configurations, attackers can freely connect to the PostgreSQL servers without authentication. Personally, I would do awful, awful things to anyone who let a PostgreSQL instance with a setting like that on a production machine. Heck, even a test instance!

Finally, some Kubernetes network configurations are prone to ARP poisoning. This enables an attacker to impersonate applications in the cluster. Therefore, even specifying a private IP address in the “trust” configuration can pose a security risk.

Let me make it simple for you. Use PostgreSQL’s best security practices. Make this your default for all PostgreSQL instances, and you’ll be a lot safer from not only Kinsing and all the other attacks out there waiting for you.

TRENDING STORIES
Steven J. Vaughan-Nichols, aka sjvn, has been writing about technology and the business of technology since CP/M-80 was the cutting-edge PC operating system, 300bps was a fast internet connection, WordStar was the state-of-the-art word processor, and we liked it.
Read more from Steven J. Vaughan-Nichols
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.