> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-vpc-network-not-configured-with-dns-policy-with-logging-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP VPC network not configured with DNS policy with logging enabled

### Synopsis

| Field               | Value                                                               |
| ------------------- | ------------------------------------------------------------------- |
| Rule Type           | Detection                                                           |
| Finding Type        | GCP VPC network not configured with DNS policy with logging enabled |
| Finding ID          | 60000670                                                            |
| Generates a Finding | This detection rule also generates a finding                        |
| Severity            | Informational                                                       |
| Category            | CONFIGURATION                                                       |
| Cloud Providers     | GCP                                                                 |
| Platform Module     | CSPM                                                                |
| Asset Types         | GOOGLE\_VPC\_NETWORK                                                |

### Description

GCP VPC networks lacking a DNS policy with logging enabled pose a significant security risk. This misconfiguration hinders the monitoring of DNS queries within the network, limiting visibility into potential malicious activity.

Cloud DNS logging provides crucial insights into DNS requests made by clients within the VPC. Without enabled logging, anomalous domain name requests indicative of data exfiltration or command-and-control communication go undetected. Attackers can leverage this lack of visibility to bypass security controls and compromise systems.

The impact of this misconfiguration includes compromised data, system breaches, and potential lateral movement within the network. Enabling DNS logging provides crucial threat detection capabilities, allowing security teams to identify and respond to malicious activity in a timely manner. Proactive monitoring is vital for maintaining network security and integrity.

To mitigate this risk, configure a DNS policy for each VPC network and ensure that logging is enabled. Implement a firewall rule to block egress UDP/53 and TCP/443 traffic, forcing all DNS queries through the monitored Cloud DNS service. Regularly review and analyze DNS logs for suspicious activity.

### Remediation

To add DNS server policy with logging to a VPC network,

1. Login to GCP console
2. Navigate to service 'VPC network'(Left Panel)
3. Click on the alerting VPC network
4. Click on 'EDIT'
5. Under 'DNS server policy' dropdown, select an available service policy or 'create a new server policy' as required

   Link: <https://cloud.google.com/dns/docs/policies#creating>
6. Click on 'SAVE'

To enable logging to a DNS policy that is attached to a VPC follow the below reference,

1. Login to GCP console
2. Navigate to service 'VPC network'(Left Panel)
3. Click on the alerting VPC network
4. Click on the attached 'DNS server policy'
5. Click on 'EDIT POLICY'
6. Under section 'Logs' select 'On'
7. Click on 'SAVE'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-vpc-network-not-configured-with-dns-policy-with-logging-enabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
