Google Cloud unauthorized user activity

gcp

Classification:

compliance

Tactic:

이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.

Goal

Detect when unauthorized activity by a user is detected in Google Cloud.

Strategy

Monitor Google Cloud logs and detect when a user 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 user account did not have permission to make the API call.

Triage and response

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

Changelog

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