Missing cloud audit logs: CloudTrail, Activity Log, and Audit Logs coverage
Without audit logs, you cannot answer who did what in a cloud account. How to confirm CloudTrail, Azure Activity and Entra logs, and Google Cloud Audit Logs are on, retained, protected, and include data events.
Diagram
Confirming audit coverage
Step 1 of 4
AWS
Is there a multi-region organization trail?
$ aws cloudtrail describe-trails --query "trailList[].{name:Name,multi:IsMultiRegionTrail,org:IsOrganizationTrail}"
[{"name":"org-trail","multi":true,"org":true}]The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Management vs data events
- What fails
- Default logs record configuration changes, not reads of data.
- Who is affected
- Investigations that need to know what was read.
- What you would notice
- No data events on buckets with sensitive files.
- What you change
- Enable data events where the data matters.
Retention
- What fails
- Default retention is short (90 days of CloudTrail event history, and 7 to 30 days of Entra ID sign-in logs depending on license).
- Who is affected
- Investigations that start late.
- What you would notice
- Logs only in the default console view.
- What you change
- Ship logs to storage or a SIEM with a year or more of retention.
Tamper protection
- What fails
- Attackers stop or delete logs.
- Who is affected
- Every later investigation.
- What you would notice
- StopLogging or DeleteTrail events.
- What you change
- Alert on them and lock log storage.
Querying logs
CloudTrail Lake lets you query events with SQL without building a pipeline; the CloudTrail Lake lessons in the tool library show sample queries. In Azure, the same questions go to Log Analytics with KQL.
SELECT eventTime, userIdentity.arn, eventName, sourceIPAddress
FROM <event-data-store-id>
WHERE eventName IN ('StopLogging', 'DeleteTrail', 'PutEventSelectors')
ORDER BY eventTime DESCCheck yourself
Recognition and the fix. Nothing here is a procedure.
A breach investigation asks which files were read from a bucket. Which logging was needed?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.