Google Cloud: Service Account Disabled or Deleted via IAM Audit Events

Identifies GCP IAM audit events where service accounts are disabled or deleted via serviceAccounts.disable/delete.

FreeReviewedSigma · Medium · v4
Product
gcp
Service
gcp.audit
Author
Austin Songer @austinsonger (SigmaHQ), DRL 1.1
Published
2021-08-14
Updated
2026-07-31
title: "Google Cloud: Service Account Disabled or Deleted via IAM Audit Events"
id: 30d4a92d-1578-4b1d-bd56-bbb7138e4041
status: test
description: This rule identifies Google Cloud IAM service account disablement or deletion actions by matching audit method names that end with .serviceAccounts.disable and .serviceAccounts.delete. Attackers may disable or remove service accounts to break access paths or to cover tracks after gaining control. The detection relies on GCP audit log telemetry that records the IAM method name for these account lifecycle changes.
references:
  - https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts
  - https://github.com/SigmaHQ/sigma/blob/master/rules/cloud/gcp/audit/gcp_service_account_disabled_or_deleted.yml
author: Austin Songer @austinsonger, Huntrule Team
date: 2021-08-14
modified: 2022-10-09
tags:
  - attack.impact
  - attack.t1531
logsource:
  product: gcp
  service: gcp.audit
detection:
  selection:
    gcp.audit.method_name|endswith:
      - .serviceAccounts.disable
      - .serviceAccounts.delete
  condition: selection
falsepositives:
  - Service Account being disabled or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
  - Service Account disabled or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium
license: DRL-1.1
related:
  - id: 13f81a90-a69c-4fab-8f07-b5bb55416a9f
    type: derived