01Chapter 1: What CloudTrail records and why it matters for auditingAWS CloudTrail records API activity in your AWS account. Each record answers a basic audit question: who did what, when, from where, and on which resource. This chapter explains what CloudTrail captures, what it leaves out, and why that record is the base for the rest of this tutorial.6 min read
02Chapter 2: Reading a CloudTrail event recordThis chapter assumes you can read JSON, know the basics of IAM users, roles, and policies, and can run AWS CLI commands. Every CloudTrail feature in this tutorial, from Event history to alerts, works on the same unit: the event record. Once you can read one record, you can read all of them.6 min read
03Chapter 3: Management, data, and Insights eventsThis chapter explains the three event categories CloudTrail uses and how they decide what gets recorded. It assumes you can read a CloudTrail event record (the previous chapter), know basic IAM and S3 concepts, and can run AWS CLI commands. By the end you should be able to choose which categories to7 min read
04Chapter 4: Searching recent activity with Event historyThis chapter assumes you can read a CloudTrail event record (the previous chapter) and know the difference between management, data, and Insights events. You should also be comfortable running AWS CLI commands and filtering JSON output.6 min read
05Chapter 5: Creating a trail and choosing event selectorsThis chapter assumes you know the basics of IAM users, roles and policies, can read JSON, have created an S3 bucket, and can run AWS CLI commands. Earlier chapters covered the event record and the three event categories. Here you create a trail and decide which events it records.5 min read
06Chapter 6: How logs are delivered and organized in S3This chapter assumes you can read JSON, use the AWS CLI, and know what an S3 bucket, a prefix, and a bucket policy are. It also assumes you have created a trail, as covered in the previous chapter. Here you will learn what CloudTrail writes to S3, where each file lands, what permissions it needs, an5 min read
07Chapter 7: Multi-Region trails and organization trailsA single-Region trail in a single account leaves gaps. An attacker can work in a Region you never look at, and a compromised member account can carry on unseen. This chapter covers the two trail settings that close those gaps: the multi-Region trail and the organization trail.6 min read
08Chapter 8: Validating log file integrityLogs are only useful as evidence if you can show nobody changed them. This chapter explains how CloudTrail log file integrity validation detects modified, deleted, or forged log files. It also shows how to run the check and how to read the results. You will also learn what the check cannot tell you.7 min read
09Chapter 9: Querying historical events with CloudTrail Lake and AthenaEvent history only searches the last 90 days of management events, one attribute at a time. This chapter covers the two ways to run SQL over longer periods and over more event types: CloudTrail Lake and Amazon Athena reading the logs your trail delivers to S3.5 min read
10Chapter 10: Alerting on sensitive API callsThis chapter shows how to turn CloudTrail records into notifications, so you learn about a risky change when it happens and not during a later review. It assumes you can read a CloudTrail event record, you have a trail running, and you can create an Amazon SNS topic and use the AWS CLI. The examples6 min read
11Chapter 11: Protecting the trail and its logsA trail is only useful as evidence if an attacker cannot switch it off, edit its logs, or read them without permission. This chapter covers four controls: the S3 bucket policy, encryption with AWS KMS, IAM permissions on CloudTrail itself, and detection of tampering.6 min read
12Chapter 12: Putting it together: investigating a suspicious changeThis chapter walks through one investigation from alert to report, using the pieces from earlier chapters. It assumes you can read a CloudTrail event record, know the difference between Event history and a trail, and have a trail delivering to S3 with log file validation enabled. It also assumes you6 min read
13Chapter 13: Cost and coverage considerationsThis chapter assumes you have read the earlier chapters on event categories, trails, S3 delivery, and multi-Region and organization trails. You should be comfortable with the AWS CLI and with reading JSON. Cost and coverage pull against each other: every event you record adds to the bill, and every 6 min read