Logging and Monitoring
Section 2 of the CIS Google Cloud Platform Foundation Benchmark v5.0.0 is Logging and Monitoring and holds 17 of the benchmark's 93 controls, from audit logging and log export to alerts on configuration changes. ConfigCobra assesses it with a read-only service account across your organization or a selected list of projects.
About this section
Section 2 of the CIS Google Cloud Platform Foundation Benchmark v5.0.0 is Logging and Monitoring. It holds 17 of the benchmark's 93 controls and covers how a Google Cloud organization records what happens in it, where those records go and who is told when something sensitive changes. The services involved are mainly Cloud Logging and Cloud Monitoring, together with the audit and transparency features around them.
Reading the control titles, the section falls into five themes. The first is audit coverage: configuring Cloud Audit Logging across all services and users (2.1), and enabling Workspace/Cloud Identity data sharing for admin audit logging (2.2). The second is keeping the evidence: sinks that export copies of all log entries (2.3) and Bucket Lock retention policies on the storage buckets that receive them (2.4). The third and largest is alerting through log-based metric filters, with eight controls (2.5 to 2.12) that alert on changes to project ownership, audit configuration, custom roles, VPC firewall rules, network routes, VPC networks, Cloud Storage IAM permissions and Cloud SQL instance configuration. The fourth is extra log sources and visibility: Cloud DNS logging for all VPC networks (2.13), Cloud Asset Inventory (2.14) and logging for HTTP(S) load balancers (2.17). The fifth is control over Google's own access to your data, through Access Transparency (2.15) and Access Approval (2.16).
The section mixes both profiles. Controls such as the audit logging, log export and project-ownership alerts are Level 1, while Bucket Lock retention, the network and storage alerts, Access Transparency, Access Approval and load balancer logging are Level 2, the stricter profile. Several controls only make sense when read together: an alert is only useful if the audit logs behind it are switched on and kept.
ConfigCobra assesses the section through a read-only service account with viewer-level roles. It can cover every project in the organization or a selected list of projects, and it never changes anything in your environment. Severity shown for each control is a ConfigCobra estimate used to prioritise remediation, since CIS publishes no severity. For a failing control, ConfigCobra generates a copy-paste remediation script or portal steps that you apply yourself, and remediation impact analysis shows the affected resources and identities, the effect, a confidence level and a prepare step before you change anything. Scheduled scans (daily, weekly or monthly) or ad hoc scans, drift alerts when a control regresses, email notifications and the Google Cloud resource inventory keep the picture current.
The 17 controls
| CIS ID | Check | Profile |
|---|---|---|
| 2.1 | Configure Cloud Audit Logging across all services and users | Level 1 |
| 2.2 | Enable Workspace/Cloud Identity data sharing for admin audit logging | Level 1 |
| 2.3 | Configure sinks to export copies of all log entries | Level 1 |
| 2.4 | Apply Bucket Lock retention policies to log-export storage buckets | Level 2 |
| 2.5 | Alert on project-ownership assignments/changes via log metric filter | Level 1 |
| 2.6 | Alert on audit-configuration changes via log metric filter | Level 1 |
| 2.7 | Alert on custom-role changes via log metric filter | Level 1 |
| 2.8 | Alert on VPC firewall-rule changes via log metric filter | Level 2 |
| 2.9 | Alert on VPC network-route changes via log metric filter | Level 2 |
| 2.10 | Alert on VPC network changes via log metric filter | Level 2 |
| 2.11 | Alert on Cloud Storage IAM permission changes via log metric filter | Level 2 |
| 2.12 | Alert on Cloud SQL instance configuration changes via log metric filter | Level 2 |
| 2.13 | Enable Cloud DNS logging for all VPC networks | Level 1 |
| 2.14 | Enable Cloud Asset Inventory | Level 1 |
| 2.15 | Enable Access Transparency | Level 2 |
| 2.16 | Enable Access Approval | Level 2 |
| 2.17 | Enable logging for HTTP(S) load balancers | Level 2 |
Check all 17 controls on your Google Cloud
ConfigCobra runs this section with the rest of the CIS Google Cloud Platform Foundation Benchmark v5.0.0, read-only.