<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on Kubernetes Fail</title><link>https://kubernetes.fail/tags/security/</link><description>Recent content in Security on Kubernetes Fail</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 15 Apr 2024 09:15:00 +0200</lastBuildDate><atom:link href="https://kubernetes.fail/tags/security/index.xml" rel="self" type="application/rss+xml"/><item><title>RBAC Misconfiguration Leads to Security Breach</title><link>https://kubernetes.fail/posts/rbac-misconfiguration/</link><pubDate>Mon, 15 Apr 2024 09:15:00 +0200</pubDate><guid>https://kubernetes.fail/posts/rbac-misconfiguration/</guid><description>&lt;h2 id="security-incident"&gt;Security Incident&lt;/h2&gt;&#10;&lt;p&gt;An overly permissive RBAC configuration allowed an attacker to:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Gain access through a compromised developer account&lt;/li&gt;&#10;&lt;li&gt;Escalate privileges using cluster-admin binding&lt;/li&gt;&#10;&lt;li&gt;Deploy cryptocurrency mining containers&lt;/li&gt;&#10;&lt;li&gt;Access sensitive data from other namespaces&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="how-it-happened"&gt;How It Happened&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Default namespace had cluster-admin role binding&lt;/li&gt;&#10;&lt;li&gt;No network policies between namespaces&lt;/li&gt;&#10;&lt;li&gt;No pod security policies enforced&lt;/li&gt;&#10;&lt;li&gt;Developer accounts had excessive permissions&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="immediate-actions"&gt;Immediate Actions&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Revoked all compromised credentials&lt;/li&gt;&#10;&lt;li&gt;Deleted malicious pods&lt;/li&gt;&#10;&lt;li&gt;Isolated affected nodes&lt;/li&gt;&#10;&lt;li&gt;Rotated all cluster certificates&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="long-term-fixes"&gt;Long-term Fixes&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Implemented principle of least privilege&lt;/li&gt;&#10;&lt;li&gt;Enabled network policies&lt;/li&gt;&#10;&lt;li&gt;Deployed pod security admission&lt;/li&gt;&#10;&lt;li&gt;Regular RBAC audits&lt;/li&gt;&#10;&lt;li&gt;Developer security training&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>