Enable Policy Analyzer and IAM Recommender
Specification & Description
Activate Google Cloud Policy Analyzer and IAM Recommender at the organization level to continuously analyze effective access, discover overprivileged accounts, identify unused permissions, and safely enforce least-privilege IAM bindings across all projects.
Technical Specifications
Google Cloud Policy Intelligence provides two foundational IAM governance capabilities that should be activated organization-wide:
-
Policy Analyzer: Evaluates effective access across your entire resource hierarchy. It answers complex questions like "Which external users can read this BigQuery dataset?", "Who can impersonate this deployment service account?", and "What effective permissions does a specific engineer have across all folders?" It traces group memberships, inherited bindings, and service account impersonation chains.
-
IAM Recommender: Continuously analyzes rolling 90-day Cloud Audit Logs per principal (users, groups, and service accounts). When an identity holds broad permissions that are never exercised (e.g., assigned roles/editor but only calling Cloud Storage APIs), the recommender suggests safe, tailored role reductions.
-
Unused Service Account Discovery: Identifies active service accounts with zero API activity over 90 days, flagging them for safe disabling and decommissioning.
-
Policy Simulator: Validates proposed permission removals against historical activity before applying them in production, guaranteeing that legitimate workload traffic is not disrupted.
Security Rationale
Role accumulation is a primary cause of privilege creep in growing organizations. Developers and operational service accounts are frequently granted broad administrative roles during initial provisioning and never scoped down. Overprivileged identities dramatically expand the blast radius if credentials are leaked: an attacker who compromises a single service account can exploit unused admin permissions to move laterally and access sensitive data. Together, Policy Analyzer and IAM Recommender provide data-driven evidence of effective access paths and actual permission usage, eliminating the guesswork and fear of breaking production workloads when right-sizing IAM policies.
Business & Security Impact
Enables continuous visibility into excess permissions and inactive service accounts. Applying recommendations tightens permissions without breaking workloads because suggestions are derived from verified 90-day telemetry. High-impact production changes should be validated via Policy Simulator prior to applying.
Policy Exceptions (1)
Break-glass emergency identities and disaster recovery service accounts that are intentionally idle during standard operations are exempt from automated 90-day inactivity deletion, provided they are documented in the emergency access register and tested semi-annually.
Operational & Implementation Notes
IAM Recommender requires a minimum of 90 days of continuous Cloud Audit Logging to establish high-confidence recommendations. In newly created landing zone projects, the recommender will gather telemetry before producing role reduction suggestions. Always pair recommender reviews with Policy Simulator to prevent accidental removal of seasonal or monthly cron job permissions.
Compliance Framework Mappings (5)
Regulatory baselines and industry standards mapped to this control specification.
| Framework / Standard | Mapped Requirements & Controls | Controls |
|---|---|---|
CIS Google Cloud Platform Foundation Benchmark v3.0CIS GCP | 1.11.15 | 2 |
NIST 800-53 Rev 5NIST 800-53 | AC-2(2)AC-6IA-2 | 3 |
ISO 27001:2022ISO 27001 | A.8.2A.8.5 | 2 |
PCI DSS v4.0PCI DSS | 7.2.17.2.2 | 2 |
SOC 2SOC 2 | CC6.1CC6.3 | 2 |
* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.
Automated Detection & Rule Logic
Detection Engine: gcp-api • Automated: Yes
Run Policy Analyzer to discover effective administrative access across the organization hierarchy, and query the Recommender API for active recommendations under google.iam.policy.Recommender across all projects. Flag principals with active recommendations in the 'ACTIVE' state older than 30 days as candidates for least-privilege review.
Preventative Enforcement Policies
Remediation Guide & Automation
Enable the Recommender and Cloud Asset APIs at the organization level, establish centralized BigQuery exports, run Policy Analyzer to inspect effective access paths, and systematically apply IAM role downsizing recommendations on a regular sprint cadence.
Step-by-Step Instructions
- Enable recommender.googleapis.com and cloudasset.googleapis.com across your centralized governance project.
- Grant roles/recommender.iamAdmin and roles/cloudasset.viewer to the central cloud security team at the organization root.
- Run Policy Analyzer to inspect effective access graphs and identify excessive administrative permissions on sensitive folders.
- Review high-priority role reduction recommendations in the Google Cloud Console (IAM > Policy Intelligence > Recommender).
- Test proposed role changes in staging projects using IAM Policy Simulator to verify no required permissions are missing.
- Apply approved recommendations via gcloud, Terraform, or the Cloud Console to revoke unused permissions.
- Disable and subsequently delete service accounts flagged as having zero activity over the trailing 90 days.
Cross-Cloud Policy Equivalence
Equivalent controls across multi-cloud provider platforms.