Escalada de privilegios: obtener CSR de Kubernetes con credenciales de arranque vulneradas
Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
En este documento se describe un tipo de hallazgo de amenazas en Security Command Center. Los hallazgos de amenazas los generan los detectores de amenazas cuando detectan una amenaza potencial en tus recursos de la nube. Para ver una lista completa de las detecciones de amenazas disponibles, consulta el índice de detecciones de amenazas.
Información general
Para aumentar los privilegios, un agente potencialmente malicioso ha consultado una solicitud de firma de certificado (CSR), con el comando kubectl, utilizando credenciales de arranque vulneradas.
A continuación, se muestra un ejemplo de un comando que detecta esta regla:
Para responder a esta observación, sigue estos pasos:
Paso 1: Revisa los detalles de la detección
Abre la Privilege Escalation: Get Kubernetes CSR with compromised bootstrap credentials
detección siguiendo las instrucciones de la sección Revisar las detecciones.
Se abre el panel de detalles del resultado en la pestaña Resumen.
En la pestaña Resumen, consulte la información de las siguientes secciones:
Qué se detectó, especialmente los siguientes campos:
Correo principal: la cuenta que ha hecho la llamada.
Nombre del método: el método al que se ha llamado.
En Recurso afectado:
Nombre visible del recurso: el clúster de Kubernetes en el que se ha producido la acción.
Enlaces relacionados, especialmente los siguientes campos:
URI de Cloud Logging: enlace a las entradas de registro.
Método MITRE ATT&CK: enlace a la documentación de MITRE ATT&CK.
Hallazgos relacionados: enlaces a los hallazgos relacionados.
Paso 2: Consulta los registros
Si el nombre del método, que has anotado en el campo Nombre del método de los detalles del hallazgo, es un método GET, haz lo siguiente:
En la pestaña Resumen de los detalles de la detección en la consola de Google Cloud , vaya a Explorador de registros haciendo clic en el enlace del campo URI de Cloud Logging.
Compruebe el valor del campo protoPayload.resourceName para identificar la solicitud de firma de certificado específica.
Paso 3: Investiga los métodos de ataque y respuesta
Revisa las entradas del framework ATT&CK de MITRE para este tipo de hallazgo:
Escalada de privilegios.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-10 (UTC)."],[],[],null,["| Premium and Enterprise [service tiers](/security-command-center/docs/service-tiers)\n\nThis document describes a threat finding type in Security Command Center. Threat findings are generated by\n[threat detectors](/security-command-center/docs/concepts-security-sources#threats) when they detect\na potential threat in your cloud resources. For a full list of available threat findings, see [Threat findings index](/security-command-center/docs/threat-findings-index).\n\nOverview\n\nTo escalate privilege, a potentially malicious actor queried for a [certificate\nsigning request](https://kubernetes.io/docs/reference/access-authn-authz/certificate-signing-requests/) (CSR), with the `kubectl` command, using\ncompromised bootstrap credentials.\n\nThe following is an example of a command that this rule detects: \n\n kubectl --client-certificate kubelet.crt --client-key kubelet.key --server \u003cvar translate=\"no\"\u003eYOUR_SERVER\u003c/var\u003e get csr \u003cvar translate=\"no\"\u003eCSR_NAME\u003c/var\u003e\n\nHow to respond\n\nTo respond to this finding, do the following:\n\nStep 1: Review finding details\n\n1. Open the `Privilege Escalation: Get Kubernetes CSR with compromised bootstrap credentials`\n finding as directed in [Reviewing findings](/security-command-center/docs/how-to-investigate-threats#reviewing_findings).\n The details panel for the finding opens to the **Summary** tab.\n\n2. On the **Summary** tab, review the information in the following sections:\n\n - **What was detected** , especially the following fields:\n - **Principal email**: the account that made the call.\n - **Method name**: the method that was called.\n - Under **Affected resource** :\n - **Resource display name**: the Kubernetes cluster where the action occurred.\n - **Related links** , especially the following fields:\n - **Cloud Logging URI**: link to Logging entries.\n - **MITRE ATT\\&CK method**: link to the MITRE ATT\\&CK documentation.\n - **Related findings**: links to any related findings.\n\nStep 2: Check logs\n\nIf the method name, which you noted in the **Method name** field in the finding\ndetails, is a `GET` method, do the following:\n\n1. On the **Summary** tab of the finding details in the Google Cloud console, go to **Logs Explorer** by clicking the link in the **Cloud Logging URI** field.\n2. Check the value in the `protoPayload.resourceName` field to identify the specific certificate signing request.\n\nStep 3: Research attack and response methods\n\n1. Review MITRE ATT\\&CK framework entries for this finding type: [Privilege Escalation](https://attack.mitre.org/tactics/TA0004/).\n2. If the specific CSR is [available in the\n log entry](#privilege_escalation_get_csr_logs), investigate the sensitivity of the certificate and whether the action was warranted.\n3. To develop a response plan, combine your investigation results with MITRE research.\n\nWhat's next\n\n- Learn [how to work with threat\n findings in Security Command Center](/security-command-center/docs/how-to-investigate-threats).\n- Refer to the [Threat findings index](/security-command-center/docs/threat-findings-index).\n- Learn how to [review a\n finding](/security-command-center/docs/how-to-investigate-threats#reviewing_findings) through the Google Cloud console.\n- Learn about the [services that\n generate threat findings](/security-command-center/docs/concepts-security-sources#threats)."]]