gcp.logging.audit-config-all-services
Data access audit logs are enabled for all services
Every project's IAM policy enables DATA_READ and DATA_WRITE audit logs for allServices, with no exempted members.
Assertion
exists c in auditConfigs where c.service == "allServices" and {DATA_READ, DATA_WRITE} ⊆ logTypes(c) and no auditLogConfig in c has exemptedMembersRationale
Admin Activity logs are always on, but they record configuration changes, not use. Who read which object, who queried which table, and who fetched which secret are Data Access logs, and those are off by default. Without them an investigation can establish that a credential was compromised but not what it was used for. Enabling them for all services at the project level means a new service is covered on the day it is first used.
Observation
The collector reads the project IAM policy and inspects auditConfigs. The
assertion requires an entry for allServices whose auditLogConfigs include
both DATA_READ and DATA_WRITE, and requires that no log type carries
exemptedMembers. An exemption for a service account that generates a lot of
noise is exactly the exemption an attacker would want, so exemptions fail the
control rather than being tolerated.
This control is planned: the definition is reviewed but the collector is not yet scheduled. Until it is, no claim is made about any project.
Remediation
Edit the project IAM policy to add an auditConfigs entry for allServices
with DATA_READ and DATA_WRITE, or set it through Terraform with
google_project_iam_audit_config. Manage volume with log sinks and exclusion
filters at the Logging layer, which keep the record of what was read while
controlling what is retained.