GCP_CUSTOM_PRIVILEGED_ROLE
Summary
Description
Identification
gcloud CLI
# List all custom roles in a project
PROJECT_ID="my-project"
gcloud iam roles list --project=$PROJECT_ID --format=json
# Inspect a specific custom role's permissions
CUSTOM_ROLE="projects/${PROJECT_ID}/roles/CustomProjectRole"
gcloud iam roles describe $(basename $CUSTOM_ROLE) --project=$PROJECT_ID --format=json | \
jq '.includedPermissions[]'
# Find who is assigned custom roles in a project
gcloud projects get-iam-policy $PROJECT_ID --format=json | \
jq '.bindings[] | select(.role | contains("/roles/")) | {role: .role, members: .members}'GCP Console
Exploitation
Mitigation
Detection
Log Type
Method
Key Fields
References
Last updated
Was this helpful?