Escalation dei privilegi: recupera informazioni su CSR Kubernetes con credenziali bootstrap compromesse
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento descrive un tipo di risultato di minaccia in Security Command Center. I risultati delle minacce vengono generati dai
rilevatori di minacce quando rilevano
una potenziale minaccia nelle tue risorse cloud. Per un elenco completo dei risultati relativi alle minacce disponibili, consulta l'Indice dei risultati relativi alle minacce.
Panoramica
Per eseguire l'escalation del privilegio, un utente potenzialmente malintenzionato ha eseguito una query per ottenere una richiesta di firma del certificato (CSR) con il comando kubectl utilizzando credenziali di bootstrap compromesse.
Di seguito è riportato un esempio di comando rilevato da questa regola:
Apri il Privilege Escalation: Get Kubernetes CSR with compromised bootstrap credentials
risultato come indicato in Revisione dei risultati.
Il riquadro dei dettagli del risultato si apre nella scheda Riepilogo.
Nella scheda Riepilogo, esamina le informazioni nelle seguenti sezioni:
Che cosa è stato rilevato, in particolare i seguenti campi:
Email entità: l'account che ha effettuato la chiamata.
Nome metodo: il metodo chiamato.
In Risorsa interessata:
Nome visualizzato risorsa: il cluster Kubernetes in cui si è verificata l'azione.
Link correlati, in particolare i seguenti campi:
URI Cloud Logging: link alle voci di log.
Metodo MITRE ATT&CK: link alla documentazione MITRE ATT&CK.
Risultati correlati: link a eventuali risultati correlati.
Passaggio 2: controlla i log
Se il nome del metodo, che hai annotato nel campo Nome metodo nei dettagli del risultato, è un metodo GET, procedi nel seguente modo:
Nella scheda Riepilogo dei dettagli del problema nella console
Google Cloud , vai a Esplora log facendo clic sul link nel campo
URI di Cloud Logging.
Controlla il valore nel campo protoPayload.resourceName per identificare la
richiesta di firma del certificato specifica.
Passaggio 3: ricerca di metodi di attacco e risposta
Esamina le voci del framework MITRE ATT&CK per questo tipo di risultato:
Privilege Escalation.
Se la CSR specifica è disponibile nella
voce di log, esamina la sensibilità del
certificato e se l'azione era giustificata.
Per sviluppare un piano di risposta, combina i risultati dell'indagine con la ricerca MITRE.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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)."]]