Initial Access: Dormant Service Account Key Created
Stay organized with collections
Save and categorize content based on your preferences.
This document describes a threat finding type in Security Command Center. Threat findings are generated by
threat detectors when they detect
a potential threat in your cloud resources. For a full list of available threat findings, see Threat findings index.
Overview
A dormant user-managed service
account key was created. In this context, a service account is
considered dormant if it has been inactive for more than 180 days.
How to respond
To respond to this finding, do the following:
Step 1: Review finding details
Open the Initial Access: Dormant Service Account Key Created
finding, as directed in Reviewing findings.
In the finding details, on the Summary tab, note the values of
following fields.
Under What was detected:
Principal email: the user who created the service account key
Under Affected resource:
Resource display name: the newly created dormant service account key
Project full name: the project where that dormant service account resides
Contact the owner of the Principal email field.
Confirm whether the legitimate owner conducted the action.
Step 3: Implement your response
The following response plan might be appropriate for this finding, but might also impact operations.
Carefully evaluate the information you gather in your investigation to determine the best way to
resolve findings.
Contact the owner of the project where the action was taken.
Remove the access of the owner of the Principal email if it is compromised.
Consider deleting the potentially compromised service account and rotate and delete
all service account access keys for the potentially compromised project. After
deletion, applications that use the service account for authentication lose
access. Before proceeding, your security team should identify all impacted
applications and work with application owners to ensure business continuity.
Work with your security team to identify unfamiliar resources, including
Compute Engine instances, snapshots, service accounts, and IAM
users. Delete resources not created with authorized accounts.
Respond to any notifications from Cloud Customer Care.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 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\nA dormant [user-managed service\naccount](/iam/docs/service-account-types#user-managed) key was created. In this context, a service account is\nconsidered dormant if it has been inactive for more than 180 days.\n\nHow to respond\n\nTo respond to this finding, do the following:\n\nStep 1: Review finding details\n\n1. Open the `Initial Access: Dormant Service Account Key Created` finding, as directed in [Reviewing findings](/security-command-center/docs/how-to-investigate-threats#reviewing_findings).\n2. In the finding details, on the **Summary** tab, note the values of\n following fields.\n\n Under **What was detected**:\n - **Principal email**: the user who created the service account key\n\n Under **Affected resource**:\n - **Resource display name**: the newly created dormant service account key\n - **Project full name**: the project where that dormant service account resides\n\nStep 2: Research attack and response methods\n\n1. Use [service account\n tools](/policy-intelligence/docs/service-account-usage-tools), like [Activity\n Analyzer](/policy-intelligence/docs/activity-analyzer-service-account-authentication), to investigate the activity of the dormant service account.\n2. Contact the owner of the **Principal email** field. Confirm whether the legitimate owner conducted the action.\n\nStep 3: Implement your response\n\n\nThe following response plan might be appropriate for this finding, but might also impact operations.\nCarefully evaluate the information you gather in your investigation to determine the best way to\nresolve findings.\n\n- Contact the owner of the project where the action was taken.\n- Remove the access of the owner of the **Principal email** if it is compromised.\n- Invalidate the newly created service account key in the [Service Accounts Page](https://console.cloud.google.com/iam-admin/serviceaccounts).\n- Consider [deleting the potentially compromised service account](/iam/docs/service-accounts-delete-undelete#deleting) and rotate and delete all service account access keys for the potentially compromised project. After deletion, applications that use the service account for authentication lose access. Before proceeding, your security team should identify all impacted applications and work with application owners to ensure business continuity.\n- Work with your security team to identify unfamiliar resources, including Compute Engine instances, snapshots, service accounts, and IAM users. Delete resources not created with authorized accounts.\n- Respond to any notifications from Cloud Customer Care.\n- To limit who can create service accounts, use the [Organization Policy Service](/resource-manager/docs/organization-policy/overview).\n- To identify and fix overly permissive roles, use [IAM\n recommender](/iam/docs/recommender-overview).\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)."]]