Other Articles
- Cloud SQL – Configure Private IP
- Cloud SQL – Monitor CPU Utilization
- Cloud SQL – Enable Deletion Protection
- Cloud SQL – Enable Disk Encryption
- Cloud SQL – Enable Automated Backups
- Cloud SQL – Enable Log Export
- Cloud SQL – Enforce Password Validation
- Cloud SQL – Protect From Internet Access
- Cloud SQL – Enforce Secure Transport
- Compute Engine – Block Project-Wide SSH Keys
- Compute Engine – Disable IP Forwarding
- Compute Engine – Disable Public IP Addresses
- Compute Engine – Disable Serial Port Access
- Compute Engine – Enable Confidential Computing
- Compute Engine – Enable OS Login
- Compute Engine – Enable Shielded VM
- Compute Engine – Restrict Default Service Account
- General – Deny Public Access to KMS Keys
- General – Enforce Duties Separation
- General – Enforce KMS Key Rotation
- General – Restrict Admin Roles on Service Accounts
- Cloud Run – Configure Timeout Settings
- Cloud Storage – Enable Bucket Encryption
- Cloud Storage – Enable Bucket Logging
- Cloud Storage – Enable Bucket Versioning
- Cloud Storage – Enforce Uniform Bucket-Level Access
- Cloud Storage – Restrict Public Access
- IAM Users – Enforce GCP-Managed Keys
- IAM Users – Rotate External User-Managed Service Account Keys
- GKE – Enable Private Nodes
- GKE – Restrict Control Plane Access
- GKE – Enable Workload Identity
- GKE – Disable Legacy ABAC
- GKE – Enable Network Policy
- GKE – Enable Shielded Nodes
- GKE – Enable Node Auto-Upgrade and Auto-Repair
- GKE Cluster – Enable Cluster Logging
- General – Configure a Log Sink
- General – Configure Log Bucket Retention
- Cloud SQL – Enable High Availability
- Cloud SQL – Configure Maintenance Window
- Cloud Storage – Configure Bucket Retention or Lifecycle
- General – Enable Security Command Center
- Compute Engine – Enable Instance Deletion Protection
- VPC Firewall – Restrict Public SSH and RDP Access
- VPC Firewall – Restrict Public Database Access
- VPC Network – Avoid the Default Network
- VPC Network – Enable Subnet Flow Logs
General – Enable Cloud Audit Logs
Secure Configuration Checks > GCP
This check ensures that Cloud Audit Logs record admin reads, data reads and data writes for all services in the project. No member may be exempted from these logs.
Check Details
- Resource: Google Cloud Project
- Check: Enable Cloud Audit Logs
- Risk: Without these logs, you cannot see who read or changed your data. Misuse and breaches can go undetected.
Remediation via Google Cloud Console
-
Log in to the Google Cloud Console and navigate to
IAM & Admin > Audit Logs.
-
Click Set default configuration.
-
On the Log Types tab, select Admin Read,
Data Read and Data Write.
Click Save.
- On the Exempted principals tab, remove every principal that is listed. Click Save.
- In the service list, open each service that has its own configuration. Make sure all three log types are selected and that no principals are exempted.
Remediation via Google Cloud CLI
-
Open the Google Cloud Console and launch
Cloud Shell.
-
Download the IAM policy of the project:
gcloud projects get-iam-policy <PROJECT_ID> --format=yaml > policy.yaml
-
Edit
policy.yamlwithnano policy.yamland add this block:auditConfigs: - service: allServices auditLogConfigs: - logType: ADMIN_READ - logType: DATA_READ - logType: DATA_WRITE
If an
auditConfigsblock already exists, replace it. Delete everyexemptedMembersentry. -
Apply the updated policy:
gcloud projects set-iam-policy <PROJECT_ID> policy.yaml
Replace
<PROJECT_ID>with your project ID. The command replaces the whole policy, so always start from the policy that you downloaded. -
Verify the audit configuration:
gcloud projects get-iam-policy <PROJECT_ID> --format="yaml(auditConfigs)"
Default Value
Admin Activity audit logs are always on and cannot be turned off. Data Access audit logs are off by default, except for BigQuery. They can produce a large volume of logs.
Updated on 09 November, 2026