Skip to content

Lesson 13 of 14 · 16m

Audit Logs: What's on by Default and What Isn't

GCP Admin Activity and Azure Activity Log log control plane by default — data reads are silent until you configure them.

What "the cloud logs it" actually means

GCP Cloud Audit Logs come in types, and the types are the trap. Admin Activity — every control-plane write: setIamPolicy, firewall creation, instance creation, key operations, SA key mints — is always on, cannot be disabled, kept 400 days in the _Required bucket, free. Data Access — object reads, secretmanager.versions.access, the calls that happen inside your data — is off by default for almost every service (BigQuery is the exception). You enable it per service or for all services per project, via IAM → Audit Logs or the API, and you pay for the volume in the _Default bucket — 30-day retention — or wherever sinks send it. Two sibling types exist for completeness: System Event and Policy Denied.

Sink destinations are a deliberate choice: BigQuery for querying protoPayload directly, a GCS bucket for cold archive — pair it with a retention policy where immutability matters — and Pub/Sub for streaming into a SIEM. Azure Monitor is the other side of the tradeoff: diagnostic settings into Log Analytics bill per GB ingested, so "log everything" is a budget conversation as much as a checkbox.

Azure's split is the same shape in different clothes. Activity Log is control plane only: subscription-scoped ARM operations, 90-day in-place retention, exportable via a subscription diagnostic setting. Data plane — blob downloads, Key Vault get secret, queue receives — requires a Diagnostic Setting configured on each individual resource sending to Log Analytics, a storage account, or Event Hub. Create a storage account today and nothing records blob reads — ever — until you write that setting. Entra sign-in and audit logs live in a third place with license-dependent retention windows.

The gap is where breaches live

Run it through the breach scenario. An attacker exfiltrates a GCS bucket using a leaked service account key. Admin Activity shows nothing — no admin operations happened. Data Access wasn't enabled. The reads leave no trace; you learn about it when the data surfaces. Azure equivalent: blob exfiltration from an account with no diagnostic settings — the Activity Log is silent because downloading blobs is not a control-plane event. The wrong mental model is "the cloud logged the breach." The defaults log administration, not consumption. Exfiltration is consumption.

The evidence that moved a provider

Storm-0558, disclosed July 11, 2023: a Chinese APT held a stolen consumer signing key and forged enterprise Entra tokens to read Exchange Online mailboxes across roughly 25 organizations, US government among them. The activity surfaced through audit logging anomalies — customers with sufficient logging depth saw the unusual access; Microsoft's own detections flagged it. The aftermath is the instructive part: Microsoft expanded audit logging availability to lower license tiers precisely because only well-licensed customers could see the indicators of compromise. Logging depth is detection capability, not paperwork.

Log the minting, not just the reading

Highest-signal events aren't reads — they're the credential operations that precede escalation: generateAccessToken, signBlob, signJwt, service account key create/delete on GCP; listKeys, runCommand, roleAssignments/write on Azure. Minting calls are rare in healthy systems. An org sink filtering for them is a cheap tripwire.

Land it

Enable Data Access logging on services holding crown jewels — storage, Secret Manager, KMS — and budget the volume. Build an org-level aggregated sink with includeChildren to BigQuery so every project, including ones that don't exist yet, lands in one queryable place. On Azure, enforce diagnostic settings through Azure Policy and ship Entra logs out before retention eats them. If you can't answer "who read this object last quarter" today, you won't answer it after the incident either.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.