
§03/KSPM
Kubernetes Security Posture Management
Kubernetes cluster security is not a deployment checkpoint — it is a continuous engineering discipline. We implement KSPM using KubeVigil (our open-source tool), Kyverno policy-as-code, and CIS benchmark alignment to produce audit evidence as a byproduct of operations, not as a scramble before the auditor arrives. The deploy path runs through the controls — CI gate, then Kyverno admission — rather than past them, and every failure has a stated outcome and an owner.
§01/POSTURE DRIFT
Why Kubernetes security degrades without discipline
A cluster that passes a security review on day one rarely maintains that posture without active management. Configuration drift accumulates through routine operations: a namespace created without a network policy, a pod deployed with a permissive security context because a developer needed to unblock a deploy, a cluster-admin binding added temporarily and never removed. Each individual deviation is small. The aggregate, over twelve months of normal cluster operations, is often severe.
CIS Kubernetes Benchmark assessments of clusters that have been in production for more than a year consistently reveal patterns: excessive RBAC permissions, privileged pod security contexts, missing resource limits, unscanned container images, and network policies that permit unrestricted east-west traffic. These are not misconfigurations from a single bad actor — they are the natural result of a development workflow that did not have security gates at the right points. KSPM is the discipline of placing those gates and keeping them in place.
Drift only has meaning against a reference. In a GitOps setup the reference is the desired state in the manifest repository: Argo CD or Flux reconciles the cluster toward it and reports where the observed state departs from it — a hand-applied change, a manual scale, a field edited in place. A posture scan answers a different question (is the configuration safe?), and the two are reported separately so a safe-but-drifted cluster and an unsafe-but-in-sync one are not confused.


≤ 4h
Evidence assembly time per control (representative target)
for clusters with GitOps + policy-as-code in place — vs. days of manual assembly for teams without automated evidence capture
§02/CONTINUOUS SCANNING
KubeVigil — open-source posture monitoring
KubeVigil is our open-source (Apache-2.0) Kubernetes Security Posture Management tool. It scans live clusters via the Kubernetes API or accepts YAML manifests for pre-deployment scanning, maps each finding to a remediation action, and outputs structured results that integrate with CI pipelines, monitoring dashboards, and AI assistants through an MCP server. It is free to use, fork, and extend — we maintain it as the reference implementation of our KSPM practice.
We use KubeVigil as the continuous posture baseline for every KSPM engagement. An initial scan produces the baseline finding set against the CIS Kubernetes Benchmark and a set of custom rules relevant to the client's environment. Findings are triaged by severity and exploitability — not all Critical findings are equally urgent, and not all Low findings are equally ignorable. The triage output drives the remediation roadmap.
In addition to scheduled scans, KubeVigil integrates with CI/CD pipelines to scan manifests before they are applied to the cluster — shifting the detection point left. A finding at admission time is cheaper to remediate than a finding in a production cluster carrying live traffic.
Each gate states what it does on failure, because advisory versus blocking is the most consequential rollout decision. The CI gate starts advisory and is promoted to blocking on Critical findings and on new findings relative to an accepted baseline (KubeVigil's baseline and fail-on-new mode), with lower severities staying advisory; a blocked pull request carries the findings in the PR. Image scanning is separate from manifest scanning: an SBOM is generated per image, scanned for vulnerabilities, and signed with cosign so the signature can be verified at admission. Two of the highest-value live findings are over-permissive RBAC (cluster-admin bindings and wildcard verbs) and secrets hygiene (secrets in environment variables, unencrypted etcd); both are checked on every scan.
For a fleet, the scan runs per cluster and its structured output is aggregated into a score per cluster and a rollup by business unit or tenant. That aggregation is engagement work built on KubeVigil's JSON output and your metrics stack; it is not a feature of the open-source tool, and we describe it as what we build, not what the tool ships.
§03/POLICY-AS-CODE
Kyverno — admission control that enforces at deploy time
Kyverno is a Kubernetes-native policy engine that enforces security and operational constraints at admission time — before resources are created or updated in the cluster. Its policies are written as YAML (no Rego to learn), which means platform engineers can write and review policies without a dedicated policy language background.
We build a policy library covering the high-value enforcement points: image provenance (only images from approved registries, signature verified with Cosign at admission); resource limits (CPU and memory requests/limits required on all pods); pod security context restrictions (no privileged containers, no hostPID, no hostNetwork unless explicitly exempted); and RBAC constraints (cluster-admin binding requires a manual approval gate). Policies live in a reviewed policy-as-code repository and are unit-tested against fixture manifests (Kyverno CLI or conftest) before they ship. They are deployed in audit mode first on a pilot cluster — finding and logging violations without blocking — then promoted to enforcement once every open violation is fixed or covered by a time-boxed exception, and only then rolled out across the fleet through GitOps. This sequencing avoids the failure mode of deploying enforcement policies that immediately break existing workloads. When admission denies a deploy, the message names the policy and the field, and goes to the workload owner.
§04/CIS BENCHMARKS
CIS Kubernetes Benchmark alignment and remediation mapping
The CIS Kubernetes Benchmark provides a structured, community-maintained control framework for Kubernetes security configuration. It covers the API server, etcd, kubelet, network policies, RBAC, pod security standards, and logging configuration. We use it as the primary remediation reference frame for KSPM engagements because it is widely understood by auditors, is maintained with each major Kubernetes version, and provides a defensible documented standard for compliance claims.
Each CIS finding from the baseline scan is mapped to a concrete remediation action: a configuration change, a Kyverno policy, a RBAC binding removal, or a documented exception with business justification. The remediation plan is prioritised by risk — exploitability and blast radius — not by finding count. A single Critical finding with a clear exploit path receives more attention than twenty Medium findings with limited impact. The output is a remediation roadmap with owner assignments, effort estimates, and target completion dates. Findings are ticketed to the workload owner and fixed through a pull request to the manifest repository — not routed through CI, which is where findings are caught, not where they are fixed — with an SLA and ageing visible to the platform and security teams.
§05/AUDIT EVIDENCE
Security posture as continuous compliance evidence
The gap between what a compliance framework requires and what most Kubernetes operations teams can demonstrate at audit time is a documentation and process problem, not a security problem. A well-configured cluster with strong security posture generates compliance evidence through every operation — every GitOps commit is a change record, every Kyverno policy rejection is an enforcement event, every KubeVigil scan is a posture snapshot. The challenge is structuring that evidence so it can be presented to an auditor without requiring manual reconstruction under time pressure.
Traceability runs as a pipeline, not a single box: a control (SOC 2, HIPAA, ISO 27001, DORA as relevant) is tested by a check (a policy or scan rule), which produces an artefact (a policy event, a scan result, a GitOps commit), which is collected into the evidence package. Open exceptions are listed with their scope, approver and expiry. We deliver an evidence package that maps each applicable compliance control (SOC 2, HIPAA Security Rule, ISO 27001, DORA as relevant) to a concrete system artefact: a GitOps commit range, a Kyverno policy, a KubeVigil scan result, a Kubernetes audit log entry. For organisations with recurring audit cycles, we design the evidence collection to be automated — each audit cycle draws from the same continuous data sources. This is the EVIDENCE-BY-DEFAULT pillar expressed operationally: compliance evidence as a byproduct of operations, not a pre-audit scramble. One boundary is explicit: this is posture management, not runtime security. Detecting a compromise in a running workload (Falco or Tetragon) is a separate engagement scope, and continuous posture should not be read as runtime protection.
Deliverables
KubeVigil deployment and baseline scan
Open-source KSPM tool deployed to your cluster (or per cluster across a fleet) with a full baseline CIS Kubernetes Benchmark scan, RBAC and secrets posture findings, triage report, and finding severity classification.
Kyverno policy library
Admission control policies for image provenance (cosign signature verification), resource limits, pod security context, RBAC constraints — in a tested policy-as-code repository, deployed in audit mode then promoted to enforcement once open violations are fixed or waived.
CIS Kubernetes Benchmark report
Scored benchmark assessment with per-control finding details, remediation mapping, effort estimates, and a prioritised remediation roadmap.
Admission webhook configuration
Kyverno ClusterPolicy and Policy configurations (validation and mutation rules), tested against your workloads in audit mode before enforcement promotion — with native ValidatingAdmissionPolicy generation where the cluster version supports it.
Compliance evidence package
Control-to-artefact mapping for your applicable framework (SOC 2 / HIPAA / ISO 27001 / DORA) with pointers to GitOps history, policy findings, and scan results.
Continuous monitoring runbook
Scheduled scan configuration, alert routing for Critical findings, ticketing with owner and SLA, fleet scoring and rollup, periodic review cadence, and a waiver workflow with scope, approver and expiry for policy exemptions.
Stack
Trade-off
Policy enforcement strictness vs. deployment velocity — and why the trade-off is smaller than it appears
The standard objection to admission control policies is that they slow deployments: a policy violation blocks a deploy, and if the policy is poorly scoped, it creates friction for valid workloads. This is true of policies deployed without a structured adoption process — enforcement-first policies in a cluster with existing violations cause immediate production disruption. It is not true of a policy adoption process that starts in audit mode, finds and remediates existing violations, and only promotes to enforcement when the finding count reaches zero. The second objection is that restrictive policies block legitimate operational needs — a debug container needs hostPID, a network monitoring agent needs hostNetwork. These are handled through structured exemption workflows: a documented, reviewed exception with a defined scope and an expiry date, tracked as a git commit. An auditor reviewing the cluster's posture can see both the policies that enforce and the exceptions that exist, and trace each exception to its approval record.
Architecture
§06/FAQ
Questions, answered plainly.
The questions we hear most from CTOs, engineering directors, and founders considering a sovereignty engagement.
What is KSPM, and how does it differ from a one-time security audit?
Kubernetes Security Posture Management is the continuous discipline of measuring, enforcing, and reporting on the security configuration of a Kubernetes cluster. A one-time security audit produces a point-in-time finding set; KSPM produces a continuous measurement that detects drift as it occurs. In a cluster under active development, new workloads and configuration changes create new findings continuously — a point-in-time audit is out of date within weeks. KSPM addresses this by making posture measurement an ongoing operational function, not a periodic review event.
How does KubeVigil differ from commercial KSPM platforms?
KubeVigil is open-source (Apache-2.0) — the source code is inspectable, the findings logic is auditable, and there is no vendor lock-in or per-node pricing. Commercial KSPM platforms offer broader feature sets — cloud account scanning, image registry scanning, compliance dashboard visualisation — at per-node price points that scale with cluster size. For teams whose KSPM requirement is Kubernetes security posture and policy-as-code, KubeVigil covers the core use case. We use commercial tools where the scope requires it; we do not recommend them where they do not add value over the open-source alternative.
Which compliance frameworks does KSPM address?
Kubernetes security posture directly satisfies controls from SOC 2 Type II (System and Availability Criteria, Change Management), HIPAA Security Rule (Technical Safeguards, Audit Controls, Access Control), ISO 27001 (A.12 Operations Security, A.14 System Acquisition), and DORA Title II (ICT risk-management framework — ICT security, vulnerability management, and incident detection). We map each applicable control to the specific system artefact that satisfies it — a Kyverno policy, a KubeVigil scan result, a Kubernetes audit log entry — so the evidence is structured for the auditor, not just asserted.
How do Kyverno policies affect our CI/CD pipeline?
Kyverno policies deployed as admission webhooks run at apply time — when a manifest is submitted to the Kubernetes API server. In practice, the developer experience is similar to a failing test: the violation message identifies the specific policy and the specific field that failed, the fix is usually straightforward, and the enforcement gate prevents the issue from reaching production. We integrate KubeVigil scanning earlier — at the CI stage — so manifest violations are caught before they reach the cluster admission webhook, giving teams faster feedback.
What does a policy exemption look like in practice?
An exemption is a documented policy exception: the specific workload, the specific policy it exempts from, the business justification, the approver, and an expiry date. Kyverno supports exemptions through policy exceptions with a defined scope — the exception applies only to the named workload, not to the policy broadly. Every exemption is a git commit — reviewable, auditable, and time-bounded. An auditor can see both the policies that enforce and the exceptions that exist, and trace each exception to its approval record. This is preferable to an absent policy because it makes the privilege explicit.
How frequently should KSPM scans run?
KubeVigil supports both scheduled scans and CI-triggered scanning on manifest changes. We configure scheduled scans at a minimum daily cadence — sufficient to detect configuration drift introduced by direct API calls, manual kubectl operations, or cluster upgrades that change default configurations. For clusters with active development, we supplement daily scheduled scans with CI-triggered scanning on every merged PR that modifies Kubernetes manifests. Critical findings generate immediate alerts; non-critical findings accumulate in the weekly posture report. The full scanning cadence is documented in the continuous monitoring runbook we deliver as a final engagement deliverable.
§00/The Five Pillars
Executive Briefing
Thirty minutes to clarify your infrastructure risk
Walk us through your vendor footprint and regulatory constraints. We will tell you honestly where sovereignty creates leverage — and where it does not. No pitch deck. No obligation.