logo

Database

Gcp Logging Not Enabled

Description

Detects Google Cloud Storage buckets that do not have audit logging enabled. Cloud Storage audit logging is critical for security monitoring, incident investigation, and maintaining compliance by tracking who accesses bucket data and what changes are made.

Weakness:

200 - Traceability loss

Category: Functionality Abuse

Detection Strategy

    Enumerates all Cloud Storage buckets in the GCP project

    For each bucket, checks if the logging configuration is present

    Reports a vulnerability if a bucket's logging configuration is not set (logging_lock_bucket is None)

    Identifies the specific bucket using its path and project ID in the vulnerability report