TL;DR: Kubernetes runtime security is shaped less by detection volume than by where enforcement happens, according to ARMO’s comparison with Sweet Security. ARMO’s in-cluster model can turn observed workload behaviour into NetworkPolicies and seccomp profiles, which makes least privilege evidence-based rather than guessed.
At a glance
What this is: This comparison argues that Kubernetes runtime security is decided by enforcement placement, with ARMO favouring in-cluster control over gateway-first control.
Why it matters: For IAM and cloud security teams, the distinction matters because workload-level enforcement changes what can actually be constrained, especially for Kubernetes-native least privilege and runtime hardening.
Context
Kubernetes runtime security is not just about seeing attacks, but about deciding where a control can actually stop them. In this comparison, the architectural gap is between gateway enforcement and in-cluster enforcement, with the latter acting on the workload’s real system calls, file access, and network behaviour.
That distinction matters because runtime policies are only as strong as the layer that can observe and restrict the behaviour being performed. In Kubernetes environments, the enforcement point also determines whether least privilege becomes a policy guess or a cluster-validated control, which is directly relevant to workload identity and NHI governance when agents or services operate inside the cluster.
Key questions
Q: What breaks when Kubernetes runtime enforcement sits only at a gateway?
A: Gateway-only enforcement can inspect traffic that crosses the boundary, but it misses actions that happen inside the cluster, such as local file access, process creation, and kernel-level system calls. That leaves a gap where malicious or unintended workload behaviour can still execute even when the gateway sees the request. The control is useful, but it is not enough for runtime hardening.
Q: Why does in-cluster enforcement reduce runtime risk more effectively?
A: Because it constrains the workload at the point of execution, not just at the point of transit. When restrictions apply to system calls, file access, and outbound connections inside the cluster, the workload cannot simply route around them. That makes least privilege operational rather than theoretical, especially for dynamic services and AI-adjacent workloads.
Q: How should teams validate Kubernetes hardening policies before enforcement?
A: Teams should observe real workload behaviour first, derive candidate restrictions from that evidence, and test them in audit mode before blocking anything. That approach catches legitimate but infrequent activity, such as scheduled jobs or month-end tasks, before enforcement starts. Validation should focus on whether the policy matches actual runtime use, not on whether it looks strict on paper.
Q: When do NetworkPolicies and seccomp profiles add more value than gateway inspection?
A: They add more value when the risk lives inside the workload rather than in the traffic that reaches it. NetworkPolicies control which connections a pod can make, while seccomp profiles restrict system calls that a process can issue. Those controls are most useful when you need to shrink blast radius based on observed runtime behaviour, not just screen inbound requests.
Technical breakdown
Why kernel-level enforcement changes Kubernetes runtime control
Kernel-level enforcement means the control sits where the workload actually executes, not where traffic happens to pass. In this model, eBPF instrumentation can observe system calls, process launches, file reads, and outbound connections directly from the kernel. That matters because runtime abuse often never leaves the workload boundary as a distinct network event. If a malicious prompt or compromised service logic causes harmful behaviour, the decisive question is whether the platform can restrict the action at execution time, not merely inspect intent at a gateway.
Practical implication: place runtime controls where they can constrain execution, not only where they can inspect traffic.
How observe-to-enforce turns behaviour into Kubernetes policies
Observe-to-enforce starts by learning what a workload actually does, then derives restrictions from that evidence. In Kubernetes, that can produce NetworkPolicies from observed connections and seccomp profiles from observed system-call patterns. The value is not automation for its own sake, but the fact that the policy is anchored in runtime behaviour rather than a human’s guess about what the workload should need. That is especially useful for application and agent workloads whose permissions are hard to predict from static design documents.
Practical implication: validate observed workload behaviour before enforcing policies that restrict network paths or system calls.
Why gateway enforcement cannot replace cluster-native hardening
A gateway can govern what crosses a boundary, but it cannot on its own describe what a workload does inside the cluster. That leaves a structural gap for runtime hardening, because many harmful actions are local to the container, pod, or node. Gateway-first enforcement may still help for prompt streams or routed operations, but it does not generate the cluster-native controls that reflect actual execution. For Kubernetes runtime, that difference defines how deeply least privilege can be enforced and how much of the attack surface remains outside the control plane.
Practical implication: do not treat gateway inspection as a substitute for cluster-native policy generation and enforcement.
NHI Mgmt Group analysis
Enforcement location is the decisive runtime-security design choice. In Kubernetes, detection and correlation are useful but secondary if the control cannot act where the workload executes. A gateway can inspect routed traffic, but it cannot fully govern the runtime behaviour that happens inside the cluster. For practitioners, the important question is not which platform sees more, but which one can constrain the actual behaviour that drives blast radius.
Behaviour-derived policy is more defensible than manually guessed hardening. When a platform observes real workload execution and turns it into NetworkPolicies or seccomp profiles, least privilege becomes a verified outcome rather than a design assumption. That matters for teams governing dynamic services, agents, and workloads whose effective permissions are easy to overstate on paper. The practitioner conclusion is to prefer policy generation grounded in runtime evidence.
Gateway controls and cluster controls solve different parts of the problem. A prompt gateway may help with routed AI operations, while in-cluster controls address the system calls, file access, and egress actions the workload actually performs. The mistake is to collapse those two layers into one architecture decision. Teams should map the control to the failure mode instead of assuming one boundary can secure every runtime path.
For Kubernetes-heavy environments, runtime security is increasingly a workload-governance problem. As containers, services, and AI-adjacent workloads proliferate, security posture depends on whether the platform can continuously translate observed behaviour into enforceable constraints. That shifts the programme from alerting alone toward governance of what each workload is allowed to do. The practitioner takeaway is to treat runtime enforcement as policy execution, not just detection.
What this signals
Kubernetes runtime security is becoming a policy-placement problem. Security teams should expect more pressure to prove that runtime controls sit where they can actually constrain execution, not only where they can inspect traffic. That shift matters because Kubernetes-native hardening is strongest when it is derived from observed workload behaviour rather than from static assumptions.
Cluster-generated least privilege is the more durable model for dynamic workloads. When policies reflect what workloads really do, teams can reduce overbroad access without guessing at future need. For programmes that already manage identities, secrets, and service accounts, that turns runtime security into a direct extension of access governance rather than a separate alerting layer.
Enforcement placement will increasingly shape control effectiveness for AI-adjacent workloads. As agents and services run inside Kubernetes, the ability to constrain behaviour at the cluster level will matter more than the ability to filter requests at a front-door gateway. Teams should prepare for architecture reviews that ask where the control can actually stop the action, not just where it can see it.
For practitioners
- Define the enforcement boundary before buying Decide whether your primary risk is traffic crossing a gateway or behaviour executed inside the cluster, then choose controls that can act at that layer. If runtime abuse happens locally in the workload, gateway-only inspection will leave a gap.
- Use observed behaviour to build policy Start with visibility mode, capture real network connections and system calls, and only then promote generated restrictions into enforcement. This reduces the chance of blocking legitimate monthly jobs or infrequent operational tasks.
- Separate prompt inspection from workload hardening Treat prompt or operation gateways as one layer and Kubernetes-native restrictions such as NetworkPolicies and seccomp profiles as another. Map each layer to the specific failure it can stop, rather than assuming either layer is sufficient alone.
- Verify least privilege from runtime evidence Review whether the policies in production reflect actual workload behaviour rather than assumed application design. If permissions remain broader than observed use, the cluster still carries unnecessary blast radius.
Key takeaways
- Kubernetes runtime security is not decided by detection volume alone. The control layer that matters most is the one that can stop harmful behaviour where it actually occurs.
- Behaviour-derived hardening changes least privilege from a design assumption into a validated policy outcome. That is especially important for workloads whose real permissions are broader than their intended use.
- Gateway inspection and cluster-native enforcement solve different problems. Teams that rely on only one layer risk leaving either transit controls or execution controls ungoverned.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | TA0006; TA0008 — Credential Access; Lateral Movement | Runtime abuse often depends on local execution and movement after initial access. |
| Recommendation — Map runtime abuse paths to credential access and lateral movement to prioritise cluster-level containment. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article centres on how runtime enforcement constrains workload permissions. |
| Recommendation — Use PR.AA-05 to align Kubernetes policies with observed workload permissions and actual access needs. | ||
| CIS Controls v8 | CIS-5 — Account Management | The comparison repeatedly returns to over-permissioned service accounts and runtime privilege scope. |
| Recommendation — Review service account scope and revoke permissions that workloads never exercise. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Least privilege is the core control principle behind the in-cluster enforcement argument. |
| Recommendation — Apply AC-6 to enforce workload permissions at the point of execution, not just at network ingress. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | The article touches workload and service-account governance in Kubernetes runtime environments. |
| Recommendation — Treat overprivileged service accounts as NHI scope issues and reduce permissions to observed runtime need. | ||
Key terms
- In-cluster enforcement: In-cluster enforcement means the security control acts inside the Kubernetes cluster or on the workload itself, rather than only at an external proxy or gateway. This brings policy closer to execution and can reduce the gap between observing risky behavior and stopping it.
- Observe-to-Enforce: A policy generation approach that starts by monitoring workload behaviour and then converts that behaviour into blocking rules. It is useful when teams need evidence-based policy, because audit mode can validate the controls before they are activated.
- Seccomp Profile: A seccomp profile is a Linux control that restricts which system calls a workload can execute. When generated from observed behaviour, it becomes a workload-specific execution guardrail that reduces kernel attack surface while preserving normal application function.
- Network Policy: A Kubernetes Network Policy is a rule that controls which pods can communicate with each other and with external endpoints. It is a policy object, not a complete security boundary, and its effectiveness depends on accurate labels, current topology, and continuous maintenance as the cluster changes.
Deepen your knowledge
NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore nhimg.org for resources that connect identity governance to the broader security disciplines your programme depends on.
Published by the NHIMG editorial team on August 18, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org