> 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-kubernetes-cluster-application-layer-secrets-not-encrypted.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Kubernetes cluster Application-layer Secrets not encrypted

### Synopsis

| Field               | Value                                                          |
| ------------------- | -------------------------------------------------------------- |
| Rule Type           | Detection                                                      |
| Finding Type        | GCP Kubernetes cluster Application-layer Secrets not encrypted |
| Finding ID          | 60000266                                                       |
| Generates a Finding | This detection rule also generates a finding                   |
| Severity            | Medium                                                         |
| Category            | CONFIGURATION                                                  |
| Cloud Providers     | GCP                                                            |
| Platform Module     | CSPM                                                           |
| Asset Types         | GOOGLE\_KUBERNETES\_ENGINE\_CONTAINER\_CLUSTER                 |
| ATT\&CK Tactic      | TA0040 (TA0040)                                                |
| ATT\&CK Technique   | T1486 (T1486)                                                  |

### Description

Unencrypted application-layer secrets in Google Kubernetes Engine (GKE) clusters pose a significant security risk, allowing unauthorized access to sensitive data if the etcd database is compromised.

GKE clusters utilize etcd to store sensitive application secrets. Without application-layer encryption using Cloud KMS, these secrets are stored in plain text within etcd. A successful compromise of etcd, whether through a direct attack or an exploited misconfiguration elsewhere, would grant attackers immediate access to these sensitive secrets, potentially enabling lateral movement and data breaches.

The impact of this misconfiguration is severe, potentially leading to data theft, unauthorized access to applications, and disruption of services. Enabling application-layer encryption ensures that even if etcd is compromised, the secrets remain encrypted and inaccessible without the correct Cloud KMS key. This significantly enhances the confidentiality and integrity of sensitive data stored within the cluster.

To mitigate this risk, ensure that application-layer encryption is enabled for all GKE clusters. Regularly audit cluster configurations to verify that this setting remains enabled and properly configured. Implement strong access controls for Cloud KMS keys used for encryption to prevent unauthorized decryption.

### Remediation

**Manual steps:**

Google Kubernetes Engine Container Cluster - Manual remediation steps:

At this time, you cannot enable Application-layer Secrets Encryption for an existing cluster.

Creating a new cluster with Application-layer Secrets Encryption.

1. Go to the Kubernetes clusters page in the GCP Console and select CREATE CLUSTER.
2. Click Advanced options.
3. Check Enable Application-layer Secrets Encryption.
4. Select a customer-managed key from the drop down menu, or create a new KMS key.
5. When finished configuring options for the cluster, click 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-kubernetes-cluster-application-layer-secrets-not-encrypted.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.
