TMAegis
gcp 관련 규칙 더 보기

TMA-GCP-1.10

Ensure That Cloud KMS Cryptokeys Are Not Anonymously or Publicly Accessible

높음레벨 1수동 검토gcp

설명

It is recommended that the IAM policy on Cloud KMS cryptokeys should restrict anonymous and/or public access. Granting permissions to allUsers or allAuthenticatedUsers allows anyone to access the dataset. Such access might not be desirable if sensitive data is stored at the location. In this case, ensure that anonymous and/or public access to a Cloud KMS cryptokey is not allowed.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

From Google Cloud CLI 1. List all Cloud KMS Cryptokeys. gcloud kms keys list --keyring=[key_ring_name] --location=global -- format=json | jq '.[].name' 2. Ensure the below command's output does not contain allUsers or allAuthenticatedUsers. gcloud kms keys get-iam-policy [key_name] --keyring=[key_ring_name] -- location=global --format=json | jq '.bindings[].members[]'

조치 방법

조치 방식: 가이드 또는 인프라 패치

From Google Cloud CLI 1. List all Cloud KMS Cryptokeys. gcloud kms keys list --keyring=[key_ring_name] --location=global -- format=json | jq '.[].name' 2. Remove IAM policy binding for a KMS key to remove access to allUsers and allAuthenticatedUsers using the below command. gcloud kms keys remove-iam-policy-binding [key_name] -- keyring=[key_ring_name] --location=global --member='allAuthenticatedUsers' -- role='[role]' gcloud kms keys remove-iam-policy-binding [key_name] -- keyring=[key_ring_name] --location=global --member='allUsers' --role='[role]'

속성

운영 체제
모두
태그
access-controlcloudcryptogcp
참고 자료
CIS Google Cloud Platform Foundation Benchmark v5.0.0 - 1.10 Ensure That Cloud KMS Cryptokeys Are Not Anonymously or Publicly Accessible