auditing-gcp-iam-permissions

Audit GCP IAM bindings and primitive roles for least-privilege access.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Axxxxxxaaann/KAIRI-Skills --skill auditing-gcp-iam-permissions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auditing-gcp-iam-permissions
Source: https://github.com/Axxxxxxaaann/KAIRI-Skills/tree/main/skills/auditing-gcp-iam-permissions
Command: npx skills add https://github.com/Axxxxxxaaann/KAIRI-Skills --skill auditing-gcp-iam-permissions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-cloud-asset, google-cloud-resource-manager, google-cloud-iam, and includes scripts (resource) and references (resource) components.

What problem does it solve?

GCP IAM configurations often contain overly permissive bindings, primitive roles, and unmanaged service account keys that lead to security risks and potential lateral movement. This skill helps security engineers systematically discover, analyze, and remediate IAM access issues at scale.

Core Features & Use Cases

  • Enumerates IAM bindings across organizations and projects to reveal who has access to what.
  • Flags primitive roles (Owner, Editor, Viewer) and broadly-shared bindings for remediation planning.
  • Audits service accounts and user-managed keys to identify risky assets and key sprawl.
  • Leverages Policy Analyzer and IAM Recommender outputs to guide least-privilege hardening.

Quick Start

Run the agent to scan your organization and generate a JSON report of IAM bindings and service accounts.

Frequently Asked Questions about auditing-gcp-iam-permissions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit GCP IAM permissions to enforce least privilege?

To audit GCP IAM permissions for least privilege, enumerate bindings across your organization and projects to flag primitive roles and broadly-shared access. This process identifies risky permissions and extracts service-account health for remediation.

What is the best way to find risky IAM bindings and primitive roles in GCP?

Finding risky IAM bindings in GCP involves enumerating permissions across projects and organizations to flag primitive roles like Owner, Editor, and Viewer. This reveals overly permissive access and highlights assets needing least-privilege hardening.

Can I audit GCP service accounts and user-managed keys at scale?

Yes, you can audit GCP service accounts and user-managed keys at scale by extracting identity health and key sprawl metrics. This identifies unmanaged keys and risky assets that enable potential lateral movement within your cloud environment.

Does this approach use Policy Analyzer and IAM Recommender for GCP hardening?

Yes, GCP least-privilege hardening leverages Policy Analyzer and IAM Recommender outputs to guide remediation. This analyzes identities and bindings to systematically reduce overly permissive access across your organization's resources.

What GCP libraries are needed to enumerate IAM bindings and analyze identities?

Enumerating IAM bindings and analyzing identities requires the google-cloud-asset, google-cloud-resource-manager, and google-cloud-iam libraries. These dependencies enable asset searches, policy analysis, and key audits across your GCP environment.

How do I generate a JSON report of GCP IAM bindings and service accounts?

To generate a JSON report of GCP IAM bindings and service accounts, run an automated scan against your organization. This extracts and structures the permission data, providing a baseline for analyzing identities and planning remediation.