More Info:
Verifies each application namespace has a default-deny ingress NetworkPolicy. Without one, every pod is reachable from every other pod.Risk Level
HighAddress
SecurityCompliance Standards
- Cloudanix Best Practice
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Identify non-system namespaces that lack a default-deny NetworkPolicy (run on any machine with kubectl access):
-
For each non-compliant application namespace (replace
YOUR_NAMESPACE), create a default-deny ingress NetworkPolicy manifest (run on any machine with kubectl access): -
Apply the default-deny ingress NetworkPolicy to the target namespace (run on any machine with kubectl access):
-
(Optional but recommended) For each application namespace, create additional NetworkPolicies that explicitly allow only the required ingress flows for your workloads (run on any machine with kubectl access). Example skeleton to edit before applying:
- Repeat steps 2–4 for each non-compliant application namespace you need to protect.
-
Verify that every non-system namespace now has at least one default-deny ingress NetworkPolicy (run on any machine with kubectl access):
Confirm there are no lines with
is_compliant=false.
Using kubectl
Using kubectl
Run these steps from any machine with kubectl access.If you prefer to apply to a specific namespace only, for example Verification (same automated check logic):
production:Automation
Automation

