IAM default audit log config should not exempt any users Affecting Monitor service in Google


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Logging/ Accounts Monitoring

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-ControlsCIS-GoogleHIPAAISO-27001NIST-800-53PCI-DSS
  • Snyk IDSNYK-CC-00406
  • creditSnyk Research Team

Description

IAM default audit log config should not exempt any users. A project's default audit log config should not exempt any users, to ensure that user admin write operations and data access operations are appropriately logged.

How to fix?

IAM default audit log config should not exempt any users.

Example Configuration

resource "google_project_iam_audit_config" "allowed" {
  service = "allServices"
  project = "my-project"

  audit_log_config {
    log_type = "DATA_READ"
  }

  audit_log_config {
    log_type = "DATA_WRITE"
  }
}