Kubernetes Security (CKS): glossary
45 terms, in plain words, with where each one is taught.
- aescbc provider (aesgcm, secretbox, kms provider)
- Encryption providers for data at rest: aescbc / aesgcm / secretbox keep the key in the config file on the node; kms keeps it in an external key service, the production choice. Lesson 23.4
- AppArmor profile (apparmor_parser, aa-status, appArmorProfile)
- A Linux security module policy that limits what a program may read, write or run, enforced by the kernel. A pod's appArmorProfile Localhost names a profile that must already be loaded on its node. Lesson 23.15
- audit level (Metadata level, RequestResponse, level: None)
- How much an audit event records: None (nothing), Metadata (who, what, when, the answer), Request (plus the request body), RequestResponse (plus the response body). Secrets should never be logged above Metadata. Lesson 23.2
- audit Policy (audit policy, audit.k8s.io/v1 Policy, --audit-policy-file)
- The rules that decide how much of each API request the apiserver writes to its audit log: checked in order, the first match sets the level (None, Metadata, Request, RequestResponse); no match means not logged. Lesson 23.2
- autogen (Kyverno autogen, pod controller rules, podControllers)
- Kyverno writing a pod policy's rules for the pod controllers too (Deployments, StatefulSets, DaemonSets, Jobs, CronJobs), on their pod template, so a bad change is refused at the Deployment instead of leaving a ReplicaSet that cannot create pods. Lesson 23.21
- Calico node-to-node mesh (BGP 179, node-to-node mesh, BIRD)
- Calico's BGP sessions between every pair of nodes on TCP 179, carrying the routes to each node's pods. The node with the higher address opens the session, so the lower one must accept 179. Lesson 23.11
- CEL (Common Expression Language, has())
- The small expression language Kubernetes uses in admission policies and CRD validation: object.spec..., all / exists over lists, has() to test that a field exists (reading a missing field is an error). Lesson 23.25
- CIS Kubernetes Benchmark (CIS benchmark, CIS)
- A published list of hardening checks for the control plane, etcd and nodes (flags, file permissions). kube-bench runs them. Lesson 23.13
- CKS (Certified Kubernetes Security Specialist)
- The CNCF's hands-on Kubernetes security exam: 2 hours of tasks on real clusters, a passed CKA required. Six domains: cluster setup, cluster hardening, system hardening, microservice vulnerabilities, supply chain, monitoring/logging/runtime security. Lesson 23.1
- ClusterPolicy (kyverno.io/v1, Kyverno ClusterPolicy)
- The pre-1.19 Kyverno policy object (validate, mutate, generate, verifyImages rules); deprecated in Kyverno 1.19 and planned for removal in 1.20 in favour of the policies.kyverno.io types. Lesson 23.27
- conntrack (conntrack -D, established flow)
- For NetworkPolicy: Calico checks policy on a flow's first packet and conntrack lets the rest of that flow through, so a connection opened before a deny policy keeps working until its entry is deleted (conntrack -D on the node) or expires. Lesson 23.31
- cosign (cosign sign, cosign verify, image signature)
- The Sigstore tool that signs container images and verifies the signatures, proving an image is the one your pipeline built. Lesson 23.21
- CREATE (CONNECT)
- One of the four operations an admission rule can match: CREATE (a new object), UPDATE (a change), DELETE, CONNECT (exec, attach, port-forward). A pod policy on CREATE alone checks new pods; with UPDATE it also checks changes to existing ones. Lesson 23.25
- CVE severity (HIGH, CRITICAL, MEDIUM)
- How bad a CVE is rated: CRITICAL, HIGH, MEDIUM, LOW (or UNKNOWN). trivy shows the distribution's own rating where it has one and NVD's otherwise; --severity HIGH,CRITICAL keeps only the top two. Lesson 23.21
- default deny incoming (ufw default deny incoming, DEFAULT_INPUT_POLICY, default policy)
- The ufw default policy for traffic that matches no rule: deny drops it (the client times out), reject refuses it at once, allow lets it in. Lesson 23.11
- defence in depth (defense in depth)
- Layering controls so each assumes the one before it failed: signed images are still scanned, admitted pods are still watched at runtime. Lesson 23.1
- drop and execute (Drop and execute new binary in container, Executing binary not part of base image, EXE_UPPER_LAYER)
- An attacker writes a program into a running container - a file the image never had - and starts it. Falco's rule of that name (Critical) fires when the executed file sits in the container's writable overlay layer, i.e. it was written after the container started. Lesson 23.31
- EncryptionConfiguration (encryption at rest, --encryption-provider-config, k8s:enc)
- The apiserver config that encrypts chosen resources (usually Secrets) before they are written to etcd. The first provider encrypts new writes; all providers are tried for reads, so identity last still reads old unencrypted data. Lesson 23.4
- Falco (falco rule, runtime detection, Terminal shell in container)
- A runtime security tool that watches system calls on every node and raises an alert when a rule matches - for example a shell opened in a container or /etc/shadow read. Lesson 23.31
- host firewall (node firewall)
- Packet rules on a node that guard the node's own ports (SSH, the kubelet, the apiserver, etcd). It is a different layer from a NetworkPolicy, which filters pod traffic. Lesson 23.11
- ImageValidatingPolicy (ivpol, verifyImageSignatures, Kyverno verifyImages)
- The Kyverno 1.19 policy that checks image signatures at admission: matchImageReferences picks the images, attestors name the keys, and verifyImageSignatures in its CEL counts the attestors that verified each image (older clusters: a verifyImages rule in a ClusterPolicy). Lesson 23.21
- INPUT chain (INPUT, FORWARD, OUTPUT)
- The built-in iptables chains a packet passes on a node: PREROUTING first (where DNAT rewrites the destination), then INPUT if it is for the node itself or FORWARD if the node passes it on, for example to a pod; OUTPUT holds what the node sends itself. Lesson 23.11
- JNDI (JNDI lookup, Java Naming and Directory Interface)
- Java's way to look up an object by name in a directory service such as LDAP. Log4Shell abused it: log4j turned a logged ${jndi:ldap://...} string into a lookup that downloaded and ran the attacker's code.
- kube-bench (kube-bench run)
- Aqua Security's tool that runs the CIS Kubernetes Benchmark against a node: PASS / FAIL per automated check, WARN for manual ones, with a remediation for each. Lesson 23.13
- kubelet API (port 10250, 10250/tcp)
- The kubelet's HTTPS port 10250 on every node. The apiserver calls it for kubectl logs, exec, attach and port-forward, and metrics-server reads metrics there; only the control plane needs to reach it. Lesson 23.11
- KubeLinter (kube-linter, kube-linter lint, ignore-check.kube-linter.io)
- A linter for Kubernetes YAML and Helm charts that prints one finding per problem with the check name and its remediation (latest-tag, no-read-only-root-fs, run-as-non-root...) and fails on any finding. Lesson 23.23
- kubesec (kubesec scan, kubesec score)
- A scanner that scores a Kubernetes manifest: risky settings (privileged, SYS_ADMIN, host namespaces) subtract points as critical findings, hardening (runAsNonRoot, read-only root filesystem, dropped capabilities) adds points; 0 or less fails. Lesson 23.23
- Log4Shell (CVE-2021-44228, log4j-core 2.14.1)
- CVE-2021-44228 (December 2021): Apache log4j-core 2.x up to 2.14.1 evaluated JNDI lookups inside text it logged, so a crafted value in anything the application logs could make it load and run remote code. Fixed in 2.15.0; 2.17.1 also fixes the follow-ups (CVE-2021-45046, -45105, -44832). Lesson 23.21
- mutateDigest (validationConfigurations, verifyDigest, digest pinning)
- The ImageValidatingPolicy switches, all on by default: mutateDigest rewrites a matched image to image:tag@sha256:... at admission (even in Audit), verifyDigest fails an image without a digest, required fails an image no policy verified. The pod then runs exactly the build that was checked. Lesson 23.21
- MutatingPolicy (mpol, ApplyConfiguration, JSONPatch)
- A Kyverno 1.19 policy that changes a request before it is stored, by merging an object built in CEL (ApplyConfiguration) or a list of JSON patches; it runs before validation. Lesson 23.27
- NVD (National Vulnerability Database)
- The US National Vulnerability Database: every published CVE with a score and a severity. Scanners fall back to its rating when the distribution has not rated a CVE. Lesson 23.21
- omitStages (RequestReceived, ResponseComplete)
- A Policy field listing request stages not to log. Dropping RequestReceived keeps one event per request (ResponseComplete) instead of two. Lesson 23.2
- PolicyReport (polr, ClusterPolicyReport, policy report)
- The wgpolicyk8s.io report Kyverno writes per resource (named by its uid): one result per policy - pass, fail, warn, error, skip - so you can see what already violates a rule. Lesson 23.27
- preDNAT policy (preDNAT, HostEndpoint, host endpoint policy)
- A Calico GlobalNetworkPolicy with preDNAT: true applied to host endpoints: it filters traffic to a node before kube-proxy rewrites it, the way to restrict who may use a NodePort. Lesson 23.11
- Rekor (transparency log, tlog, Sigstore bundle)
- Sigstore's public, append-only log of signatures. cosign v3 records every signature there by default and packs the signature with its log entry into a bundle attached to the image; verify checks the entry too, and skipping it takes --insecure-ignore-tlog. Lesson 23.21
- release checksum (sha256sum --check, .sha256 file)
- The hash the Kubernetes release publishes next to each binary on dl.k8s.io; checking a download against it (sha256sum --check) proves the file is the one the release built. Lesson 23.7
- SBOM (software bill of materials, syft)
- A software bill of materials: the list of every package and library inside an image, with versions. syft writes one; kept with the release, it answers "which images contain this library?" without a new scan. Lesson 23.21
- seccomp profile (seccompProfile, SCMP_ACT_ERRNO, RuntimeDefault)
- A kernel filter on system calls: allowed, refused with an error, or kill. RuntimeDefault is the container runtime's list; a Localhost profile is a JSON file under /var/lib/kubelet/seccomp on the node. Lesson 23.17
- SOCKS5 (SOCKS, SOCKS proxy)
- A simple proxy protocol: the client asks a SOCKS server to open a connection on its behalf. curl can work through one; CVE-2023-38545 was a heap overflow in curl's SOCKS5 handshake. Lesson 23.21
- SPDX (spdx-json)
- A standard file format for an SBOM, from the Linux Foundation and also an ISO standard (5962); CycloneDX is the other common one. Lesson 23.21
- TEST-NET-3 (TEST-NET-1, TEST-NET-2, documentation address)
- Address blocks reserved for documentation and examples by RFC 5737: 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24. They are never routed on the internet, so a lab can use one as "somewhere outside".
- Trivy (trivy image, image scan)
- A scanner that lists known vulnerabilities (CVEs) in an image's packages with the version that fixes each; --exit-code makes it a CI gate. Lesson 23.21
- ufw (Uncomplicated Firewall, ufw allow, ufw status)
- Ubuntu's firewall command: it turns rules like "allow from 10.64.0.2 to any port 22 proto tcp" into iptables rules, checked in order, first match wins; installed but inactive by default. Lesson 23.11
- ValidatingAdmissionPolicy (VAP, ValidatingAdmissionPolicyBinding, validationActions)
- A built-in admission rule written in CEL that the apiserver checks itself, without a webhook; a Binding applies it to resources or namespaces and says whether a failure denies, warns or is only audited. Lesson 23.25
- ValidatingPolicy (vpol, Kyverno ValidatingPolicy)
- A Kyverno 1.19 admission rule written in CEL (policies.kyverno.io/v1) with validationActions in the policy itself: Deny refuses, Audit only records in PolicyReports, Warn admits with a warning. Lesson 23.27