| name | cis-gke-v190-5.6.1 |
| description | Enable VPC Flow Logs and Intranode Visibility (Automated) |
| category | cis-gke |
| version | 1.9.0 |
| author | cyberstrike-official |
| tags | ["cis","gke","kubernetes","gcp","networking","vpc","flow-logs","intranode-visibility","traffic-monitoring"] |
| cis_id | 5.6.1 |
| cis_benchmark | CIS Google Kubernetes Engine (GKE) Benchmark v1.9.0 |
| tech_stack | ["kubernetes","gcp","gke"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
5.6.1 Enable VPC Flow Logs and Intranode Visibility (Automated)
Profile Applicability
Description
Enable VPC Flow Logs and Intranode Visibility to see pod-level traffic, even for traffic within a worker node.
Rationale
Enabling Intranode Visibility makes intranode pod to pod traffic visible to the networking fabric. With this feature, VPC Flow Logs or other VPC features can be used for intranode traffic.
Impact
Enabling it on existing cluster causes the cluster master and the cluster nodes to restart, which might cause disruption.
Audit
Using Google Cloud Console:
- Go to Kubernetes Engine by visiting: https://console.cloud.google.com/kubernetes/list
- Select the desired cluster, and under the
Cluster section, make sure that Intranode visibility is set to Enabled.
Using Command Line:
Run this command:
gcloud container clusters describe <cluster_name> --zone <compute_zone> --format json | jq '.networkConfig.enableIntraNodeVisibility'
The result should return true if Intranode Visibility is Enabled.
Remediation
Enable Intranode Visibility:
Using Google Cloud Console:
- Go to Kubernetes Engine by visiting: https://console.cloud.google.com/kubernetes/list.
- Select Kubernetes clusters for which intranode visibility is disabled.
- Within the
Details pane, under the Network section, click on the pencil icon named Edit intranode visibility.
- Check the box next to
Enable Intranode visibility.
- Click
SAVE CHANGES.
Using Command Line:
To enable intranode visibility on an existing cluster, run the following command:
gcloud container clusters update <cluster_name> --enable-intra-node-visibility
Enable VPC Flow Logs:
Using Google Cloud Console:
- Go to Kubernetes Engine by visiting: https://console.cloud.google.com/kubernetes/list.