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.

Lesson 18 of 29 · 10 min read · practice only with authorization

Diagram

Confirming audit coverage

Follow the path. One example at a time.

Step 1 of 4

AWS

Is there a multi-region organization trail?

Illustration: AWS
$ 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.

  1. 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.
  2. 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.
  3. 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 DESC

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

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.

  1. MapCloud security fundamentals: shared responsibility, identity, and the audit trailWhat the provider secures and what you do, why identity is the cloud perimeter, and the first read-only commands to understand an AWS, Azure, or Google Cloud account you are responsible for.

Practice

  1. LabTenant deskTwo companies, one API. See what changes when the server checks ownership.

Glossary

  1. CardMissing cloud audit logsWithout a management trail you cannot answer who created a key or opened a firewall.