> 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-vertex-ai-workbench-instance-is-using-default-service-account-with-the-editor-role.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Vertex AI Workbench Instance is using default service account with the editor role

### Synopsis

| Field               | Value                                                                                  |
| ------------------- | -------------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                              |
| Finding Type        | GCP Vertex AI Workbench Instance is using default service account with the editor role |
| Finding ID          | 60001464                                                                               |
| Generates a Finding | This detection rule also generates a finding                                           |
| Severity            | Medium                                                                                 |
| Category            | CONFIGURATION                                                                          |
| Cloud Providers     | GCP                                                                                    |
| Platform Module     | CSPM                                                                                   |
| Asset Types         | WORKBENCH\_INSTANCE                                                                    |

### Description

GCP Vertex AI Workbench instances using the default service account with the 'editor' role represent a significant security misconfiguration. The default service account, automatically created upon Compute Engine API enablement, possesses broad permissions.

Compute Engine Default service account is automatically created, with an autogenerated name and email address, and added to your project when you enable the Compute Engine API. This service account is granted the IAM basic Editor role if you have not disabled this behavior explicitly. An attacker gaining control of an instance with such high priviledged service account attached could exploit these elevated privileges.

This misconfiguration could lead to data breaches, service disruptions, and significant financial losses. Restricting permissions to the principle of least privilege ensures that only necessary access is granted, minimizing the impact of a potential compromise. This best practice reduces the attack surface and limits the damage from any security incident.

To mitigate this risk, explicitly assign custom service accounts with restricted roles to Vertex AI Workbench instances. Use of 'Compute Engine default service account' especially when the editor role is granted to the service account should be avoided

### Remediation

1. Login to the GCP console
2. Navigate to the 'Vertex AI' service
3. In side panel, under 'Notebooks', go to 'Workbench'
4. Under 'INSTANCES' tab, select 'VIEW' as 'INSTANCES'
5. Click on the alerting instance
6. Under the 'SYSTEM' tab, in front of 'VM details', click on the 'View in Compute Engine' link
7. Stop the VM by clicking on the 'STOP' button. Click the 'STOP' button on the confirmation dialogue.
8. Once the the VM has been stopped, click on the 'EDIT' button
9. Under 'Identity and API access', use the dropdown to select a non-default service account as per needs
10. Click on 'Save'
11. Click on 'START/RESUME' from the top menu


---

# 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-vertex-ai-workbench-instance-is-using-default-service-account-with-the-editor-role.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.
