🛡️ Google GCE Network DNS Policy Logging is not enabled🟢
- Contextual name: 🛡️ GCE Network DNS Policy Logging is not enabled🟢
- ID:
/ce/ca/google/vpc/network-dns-policy-logging - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logic
Similar Policies
- Cloud Conformity: Enable Cloud DNS Logging for VPC Networks
Description
Description
Cloud DNS logging records the queries from the name servers within your VPC to Cloud Logging. Logged queries can come from Compute Engine VMs, GKE containers, or other GCP resources provisioned within the VPC.
Rationale
Security monitoring and forensics cannot depend solely on IP addresses from VPC flow logs, especially when considering the dynamic IP usage of cloud resources, HTTP virtual host routing, and other technology that can obscure the DNS name used by a client from the IP address. Monitoring Cloud DNS logs provides visibility to DNS names requested by clients within the VPC. These logs can be monitored for anomalous domain names and evaluated against threat intelligence.
Note: For full capture of DNS queries, the firewall must block egress UDP/53 (DNS) and TCP/443 (DNS over HTTPS) to prevent clients from using external DNS resolvers.
Impact
Enabling Cloud DNS logging might result in your project being charged for additional log usage.
Audit
From Google Cloud CLI
- List all VPC networks in a project:
... see more
Remediation
Remediation
From Google Cloud CLI
Add New DNS Policy With Logging Enabled
For each VPC network that needs a DNS policy with logging enabled:
gcloud dns policies create enable-dns-logging \
--enable-logging \
--description="Enable DNS Logging" \
--networks={{vpc-network-name}}The
{{vpc-network-name}}value can include one or more networks in a comma-separated list.Enable Logging for Existing DNS Policy
For each VPC network that has an existing DNS policy that needs logging enabled:
gcloud dns policies update {{policy-name}} \
--enable-logging \
--networks={{vpc-network-name}}The
{{vpc-network-name}}value can include one or more networks in a comma-separated list.