Google Cloud unauthorized service account activity

이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Goal

Detect when there is unauthorized activity by a service account in GCP.

Strategy

Monitor Google Cloud logs and detect when a service account makes an API request and the request returns the status code equal to 7 within the log attribute @data.protoPayload.status.code. The status code 7 indicates the service account did not have permission to make the API call.

Triage and response

  1. Investigate the service account:{{@usr.id}} that made the unauthorized calls and confirm if there is a misconfiguration in IAM permissions or if an attacker compromised the service account.
  2. If unauthorized, revoke access of compromised service account and rotate credentials.

Changelog

22 June 2022 - Updated query, rule case and triage.

PREVIEWING: brett.blue/embedded-collector-release