{ "id": "cks-network-policy", "title": "Default Deny Network Policy", "category": "Network Security", "difficulty": "Medium", "type": "task", "weight": 5, "description": "## Network Policies\n\nIn a zero-trust architecture, you should deny all traffic by default and explicitly allow what is needed.\n\n**Your task:**\n\nCreate a NetworkPolicy named `default-deny-all` in the `default` namespace that denies all ingress and egress traffic for all pods in the namespace.\n\n```bash\n# Verify your policy:\nkubectl get networkpolicy default-deny-all\n```", "hints": [ { "title": "Default Deny YAML", "body": "Use a podSelector with an empty matchLabels `{}` to select all pods, and provide empty lists for ingress and egress.", "command": "cat <