Where each cluster stands on the CIS Benchmarks and the Pod Security Standards

Palari scores the CIS Benchmarks and the Pod Security Standards from the same rules as its findings, so a failing control names the objects that fail it now. A control Palari can’t see says so, and the score leaves it out. Your agent answers where a cluster stands from that report, instead of reading the Benchmark and judging each control itself.

Where a cluster stands changes with every deploy

Why not just run a benchmark scan before the audit?

  • 5.2.2 passed on the day of the scan. Three deploys later, a privileged Deployment fails it, and the report still says pass.

    A scan is the cluster on the day it ran

    A benchmark scan reads the cluster once, and so does the person who checks its Manual controls beside it. Every deploy and every new namespace after that changes the objects the controls are about, while the report stays as it was. An auditor reading it weeks later can’t tell what changed since.

  • The Benchmark leaves its policy controls to a person

    The CIS Kubernetes Benchmark marks every control in its Policies section Manual: who can read Secrets, whether containers run privileged or as root, whether each namespace has a NetworkPolicy. These are the controls about what your team deploys every day, and a person would have to check them object by object.

  • On a managed control plane, much of the Benchmark isn’t yours to check

    Nearly half the CIS Kubernetes Benchmark is about the control plane: the API server’s flags, etcd, the scheduler’s files. On a managed cluster such as LKE, the provider runs them, and nothing in the cluster shows them. A report has to say which controls nobody in the cluster can check. Otherwise its score covers more than was checked.

  • An agent’s own reading can’t be checked

    Ask an agent whether a cluster meets the CIS Benchmark, and it works from what it remembers of the controls and the objects it can list, deciding itself which ones apply. Its answer names no object behind any control, so an auditor can’t check it.

Kubernetes applies the Pod Security Standards only as Pods are created

The Kubernetes documentation says the standards “define three different policies to broadly cover the security spectrum”. Its Pod Security Admission applies a namespace’s level as Pods arrive: its restrictions “are applied at the namespace level when pods are created”. A Pod admitted before its namespace enforced a level, or in a namespace that only warns, keeps running as it is. Palari’s K8S-031 names each namespace where no admission policy enforces a level, and the Baseline and Restricted reports judge the Pod template of every workload that runs now.

Palari judges each control its rules cover, most of the Policies section among them, from the findings on the objects that run now. It names the controls it can’t see.

Where does your cluster stand on the CIS Kubernetes Benchmark?

A customer’s security review asks it, and the platform team hands it to its agent:

Where does prod stand on the CIS Kubernetes Benchmark, and what fails?

From the cluster’s objects and the Benchmark, the agent has to:

  1. Which controls apply

    Work out the distribution and the Benchmark that fits, and which of its controls the provider runs.

    • Node every one
    • /version the server’s
    • Pod any of the control plane’s

    prod runs on LKE, which shows none.

  2. Each control’s check

    Turn every control into a check of the objects it’s about, down to each Pod’s security context and each namespace’s labels.

    • Pod and every workload every one
    • Role, ClusterRole every one
    • Every binding every one
    • NetworkPolicy every one
    • Namespace every one
  3. The nodes

    Read the files and the kubelet’s settings on every node, which the Kubernetes API doesn’t serve.

    That takes a Job on each node, or a shell on it.

  4. The answer

    Count what passes, say what it couldn’t check, and answer the same way when the auditor asks again.

    No file holds the answer, so the agent works it out again.

With Palari, it’s one command. It returns the score, then each control with its status and how many objects fail it:

$ palari posture compliance show cis-kubernetesCIS Kubernetes Benchmark v2.0.1 in prod scores 68.2; 42 of 61 assessable controls pass, 19 fail. CONTROL   STATUS        SEVERITY   FAILING   TITLE1.2.1     not_visible   -          -         The API server refuses anonymous requests5.2.2     fail          critical   3/412     Privileged containers aren't admitted5.2.7     fail          medium     41/412    Containers don't run as root

How to read the run

  1. The first line is the answer. It gives the score and how many of the controls Palari can assess pass and fail, and it goes into a status update as it is.

  2. The score weighs failures by severity, critical most. It counts the objects each rule passed and failed, so it isn’t the share of controls that pass, which the line gives beside it.

What a scan before the audit can’t say

  1. A control Palari can’t see stays on the list. 1.2.1 is about the API server’s flags. LKE runs prod’s control plane, so nothing in the cluster shows them. The report marks the control not_visible, and the score leaves it out.

  2. A failing control names its objects, as they run now. 5.2.2 fails because 3 of the 412 objects its rule judged run a privileged container. Each is a finding with its fix. Once the last one is fixed, the control passes.

What the report doesn’t say. K8S-032, the finding that web’s load balancer accepts any address, is on both of prod’s attack paths. No control of the four frameworks maps it, so no report shows it. The attack paths show what someone could reach through it. What to fix first, by what each path reaches

How it works

Six steps from the scope to the auditor

Your team owns the two ends. Palari runs the four steps between them each time a report opens.

A fix resolves its finding, and the control’s failing count drops. Then back to step 3.

  1. Choose the scope

    One cluster, every cluster with a label, or one namespace’s objects.

  2. Pick the frameworks

    Palari tells each cluster’s distribution and scores each framework over the clusters in scope that it applies to, such as the CIS Amazon EKS Benchmark on EKS.

  3. Judge each control from its rules

    A control fails while one of its rules has an open finding about it. Palari’s own rules judge the objects, and kube-bench’s and Trivy Operator’s checks judge the nodes’ files.

  4. Name what it can’t see

    A control without evidence doesn’t pass. It says why: a managed control plane, say, or AWS settings on EKS, since Palari doesn’t read your cloud account. It also names what would show it, such as a scanner on the nodes. A manual control says how a person checks it.

  5. Score each framework

    Each framework scores from 0 to 100, from the objects its rules passed and failed, weighted by severity.

  6. Export it, or accept a finding

    Export the CSV for your auditor. Give a finding that can wait an exception, with a reason and an end date. The report then leaves its object out of the rule’s count, neither passing nor failing, and says how many are muted.

The frameworks, and the clusters each applies to

On GKE and AKS, only the Pod Security Standards apply: Palari ships no CIS Benchmark for them. No other standard, such as SOC 2 or PCI DSS, maps to Palari’s rules. A control’s title is in Palari’s words, and a CIS control keeps the Benchmark’s number, so your auditor can look up its text.

The compliance frameworks, and the clusters each applies to
Framework Applies to
CIS Kubernetes Benchmark v2.0.1 Upstream Kubernetes, k3s, RKE2 and LKE
CIS Amazon EKS Benchmark v1.4.0 EKS
Pod Security Standards: Baseline v1.37 Every cluster
Pod Security Standards: Restricted v1.37 Every cluster

Palari keeps no past reports: export each one at the end of the period it covers.

For agents

Your agent answers from the report and proposes the fix

Your agent reads the report Palari works out from the findings, so its answer names the objects behind each failing control.

  • The score with its counts. The agent gives the controls that pass and fail beside the score: the Agent Skill tells it a score isn’t the whole framework.

  • Then what Palari can’t judge. The agent says how many controls are not visible, manual or not assessed, and why. Where a scanner on the nodes would show more, it offers one and doesn’t set it up unasked.

  • The fix goes where the objects are deployed. From a failing control, it lists the findings and proposes the change in the repository that deploys them, for your team to review. When one rule fails on many objects, as K8S-005 does on 41 in prod, it says whether one shared chart would fix most of them.

    CLI and the Agent Skill
  • Never a mute to raise the score. A mute raises the score and fixes nothing, and the Agent Skill rules it out. Exceptions stay with your team’s admins: the agent signs in as a viewer.

$ palari posture compliance show cis-kubernetes --jq '.breadcrumbs[].cmd'palari posture findings list --framework cis-kubernetes --control 5.2.2 --cluster prodpalari posture compliance show cis-kubernetes --cluster prod --csv
Neither command changes anything.

Each answer names the reads that come next:

  1. The findings of the first failing control

  2. The report as CSV

The Agent Skill’s “Where a framework stands” workflow starts from palari posture compliance list.

For people

Your team reads the same report in the console

Your team signs in with your identity provider, so whoever answers the auditor doesn’t need cluster access.

Each framework’s report, failures first

The Compliance page has a report for each framework that applies to the clusters in scope. It shows the failing evaluations by severity and the most severe failing rules first, then every control with its status, severity and rules.

The console’s CIS Kubernetes Benchmark v2.0.1 report: a score of 82.8 out of 100, weighted by severity, and 40 of 80 controls passing, with 3 partly assessed, 31 not visible, 19 manual and 1 not assessed. Beside them, the failing evaluations by severity, 16 of 193 critical, and the five most severe failing rules, led by K8S-003 hostPath volume and K8S-001 Privileged container. Below, a filter by status and the controls one by one, the first six, on the control plane’s static Pod manifests, not visible.
On a demo cluster, which is built to be insecure.

Each control, with the rules behind it

Open a control to see each rule mapped to it, with how many objects the rule judged and how many fail, and a link to the failing findings. Findings filters the other way, by framework and control, and each finding names the controls it fails.

A control of the CIS Kubernetes Benchmark report open in the console: 5.1.2, “Few can read Secrets”, failing at high severity, Level 1. The Benchmark marks it manual, and Palari assesses it by its rules, K8S-024 and K8S-025, counting only their findings with capabilities=read_secrets: 6 of 57 objects fail the first and 1 of 17 the second, each with a link to its failing findings.
On a demo cluster, which is built to be insecure.

What you hand the auditor

Export any report to CSV, with each control’s note, such as how to check a manual one. When the auditor asks why a finding is still open, its exception gives the reason, who made it and the end date. Palari’s audit log records the exception too.

A report isn’t an audit, and Palari isn’t certified by the Center for Internet Security.

Where compliance sits in Palari

  • Inventory

    Each cluster’s distribution, which picks its frameworks, and the objects the rules judge.

  • Findings

    The evidence behind each failing control: the object, what the rule saw and the fix.

  • kube-bench and Trivy Operator

    Once one runs on the nodes, its checks of the nodes’ files count under the controls they judge, beside Palari’s rules.

  • Exposure management

    Beside the report: what someone could reach, and the trend to show the board.

Because the report reads the findings, one fix changes the findings list and the report at once, and the attack paths at the next graph build.

See where one of your clusters stands, control by control

You install Palari with Helm in your own cluster, and it reads the cluster with list and watch only. Once its rules have run, Palari scores the frameworks that apply to the cluster. Each failing control names its objects. Put your agent on the first line of defense: it investigates, your team decides.