talira

KubeArmor

Runtime Security Enforcement System

open sourceApache-2.0self-hostablefree

KubeArmor restricts what pods, containers and hosts can do at runtime (which processes run, which files they read or write, which network operations they make) and blocks a violation inline, before it happens, rather than killing the process afterwards. It enforces its policies through Linux security modules (AppArmor, SELinux or BPF-LSM, whichever a node has) behind one policy format, and uses eBPF to emit alerts and telemetry tagged with the container, pod and namespace. Policies are Kubernetes resources for pods, whole clusters and nodes, and it also runs in systemd mode to protect plain containers, VMs and bare-metal hosts. AccuKnox maintains it; it's a CNCF Sandbox project under Apache-2.0, written in Go.

Ways to install

Problems it solves

  • block a process from running inside a pod before it starts, not kill it after the fact
  • allow only a known list of executables to run in our containers
  • stop a compromised container from touching certificate bundles and other critical paths
  • enforce least-privilege file and network access for Kubernetes workloads without changing the pods
  • write AppArmor or SELinux profiles for our pods without learning each LSM's syntax
  • one runtime policy that works across nodes with different security modules
  • harden Kubernetes workloads against MITRE ATT&CK techniques with ready-made policies
  • apply CIS or STIG style hardening rules to running containers
  • restrict which processes on a node can open network connections
  • protect VMs and bare-metal Linux hosts with the same runtime policies as our cluster
  • see which processes, file accesses and network connections each pod makes, to build a policy
  • get alerts with pod and namespace names when a workload violates its security policy
  • runtime sandboxing for containers on edge and IoT devices
  • stop an attacker from running a downloaded binary inside a compromised container
  • send runtime security alerts to OpenTelemetry, Prometheus, Kafka or an ELK stack

Features

  • inline blocking through Linux security modules: AppArmor, SELinux and BPF-LSM
  • process, file and network allow-lists and deny rules per workload
  • security policy resources for pods and containers, clusters and hosts, plus network policies for hosts
  • alerts and telemetry from eBPF with container, pod and namespace identity
  • deploys as a Kubernetes DaemonSet, a containerized install or in systemd mode on VMs and bare metal
  • kubearmor-operator Helm chart, the documented Kubernetes install
  • karmor CLI to install, configure and observe KubeArmor
  • policy templates library, including MITRE, STIG and CIS based rules
  • doesn't modify the pods it protects and needs no container runtime changes
  • adapters for OpenTelemetry, Prometheus, Kafka, Grafana and ELK dashboards
View 2 more
  • Rancher UI extension and a GitHub Action
  • support matrix covering managed Kubernetes services, OpenShift and many Linux distributions on x86_64 and ARM; a separate GKE Autopilot guide

Limitations

  • Doesn't block on RHEL or CentOS 8.4 and older: Kubernetes nodes on those get observability only, without enforcement2

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what KubeArmor does.

  1. Tetragon eBPF-based Security Observability and Runtime Enforcement
  2. Falco Cloud Native Runtime Security
  3. Tracee Linux Runtime Security and Forensics using eBPF

Compare KubeArmor with the top 3