harden-k8slisted
Install: claude install-skill umbrasec-labs/umbra-blue
# Kubernetes Cluster Attacks - Defensive Methodology
> **Tier 2 - methodology skill.** No bespoke UMBRASEC detection rule ships with this skill yet. It gives the defender's method, the log sources and signals, and the hardening, and points to public rule sources. Promotion to Tier 1 (a sourced, tuned UMBRASEC rule) is tracked in [COVERAGE.md](https://github.com/umbrasec-labs/umbra-blue/blob/main/COVERAGE.md). Do not treat the content below as citing a UMBRASEC rule; there is none for this threat yet.
## TL;DR
A Kubernetes cluster is a credential and a control plane in one. Most post-compromise damage runs through the API server, so most of the defense is RBAC that grants too little to matter, admission control that refuses the dangerous pod, and an audit log that records every verb. Turn on **API server audit logging** (`--audit-policy-file`, `--audit-log-path`, or the managed-platform equivalent) and watch five things: **permission enumeration** (`SelfSubjectAccessReview` and `SelfSubjectRulesReview`, the `kubectl auth can-i --list` call), **RBAC changes** that bind a subject to `cluster-admin` or the `system:masters` group, **interactive access** to workloads (the `pods/exec` and `pods/attach` subresources), **dangerous pod admission** (`securityContext.privileged`, `hostPID`/`hostNetwork`/`hostIPC`, `hostPath` mounts), and **secret harvesting** (`get`/`list` on `secrets` across namespaces). Harden by stripping wildcard and `cluster-admin` RBAC, disabling automatic servi