> 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-dataproc-serverless-session-is-using-default-network.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Dataproc Serverless Session is using default network

### Synopsis

| Field               | Value                                                    |
| ------------------- | -------------------------------------------------------- |
| Rule Type           | Detection                                                |
| Finding Type        | GCP Dataproc Serverless Session is using default network |
| Finding ID          | 60001536                                                 |
| Generates a Finding | This detection rule also generates a finding             |
| Severity            | Medium                                                   |
| Category            | CONFIGURATION                                            |
| Cloud Providers     | GCP                                                      |
| Platform Module     | CSPM                                                     |
| Asset Types         | GCLOUD\_DATAPROC\_SERVERLESS\_SESSION                    |

### Description

Dataproc Serverless sessions using the default network in GCP pose a significant security risk. This misconfiguration exposes resources to unintended network access and lacks essential security controls.

The default network in GCP provides broad, unrestricted access between all instances. This lack of network segmentation allows unauthorized communication between sensitive and non-sensitive workloads. An attacker exploiting a misconfigured application within one instance could easily pivot to other instances within the default network. This lack of isolation dramatically increases the attack surface and the potential for data breaches or system compromises.

The impact of this misconfiguration includes data breaches, unauthorized access to sensitive information, and compromised application integrity. Employing a custom VPC with appropriate firewall rules and network segmentation ensures that only authorized traffic can access resources. This practice enhances security posture and reduces the likelihood of successful attacks.

To mitigate this risk, use a custom Virtual Private Cloud (VPC) network for Dataproc Serverless. Configure appropriate firewall rules to restrict inbound and outbound network traffic to only authorized sources and destinations. Implement network segmentation by creating subnets for different workloads, further limiting the impact of potential breaches.

### Remediation

VPC Network cannot be changed for existing Dataproc Serverless Session. A new Dataproc Serverless Session should be created with appropriate network.

To create a new Dataproc Serverless Session using Session template, please refer to the steps below:

1. Login to the GCP console
2. Navigate to the 'Dataproc' service
3. In side panel, under 'Serverless', go to 'Interactive Templates'
4. Click on the template name to be used for creating the session
5. Click 'CREATE SESSION'

Following gcloud command can be used to create a new Dataproc Serverless Session:

```
gcloud beta dataproc sessions create command <session_name>
```

For more details on the command above, please refer to the link below:

<https://cloud.google.com/sdk/gcloud/reference/beta/dataproc/sessions/create>


---

# 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-dataproc-serverless-session-is-using-default-network.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.
