Investigating AWS CloudTrail Logs: What to Look for First
How CloudTrail records are structured, which events signal a leaked key or risky change, and how to review trail files quickly without setting up Athena.

The account's flight recorder
Every action in an AWS account is an API call, whether it comes from the console, the command line, a pipeline or another AWS service. CloudTrail records those calls: who made them, from which IP address and region, with which parameters, and whether they succeeded or were denied. When an access key appears on a public code site, a bill jumps overnight or a bucket suddenly becomes public, CloudTrail is where the story is written.
Reading a record
Each record has an eventTime, an eventSource such as iam.amazonaws.com, an eventName such as CreateAccessKey, an awsRegion and a sourceIPAddress. The userIdentity block says who acted: an IAM user, an assumed role session, the root user or an AWS service, along with the account and, for console sessions, whether MFA was used. errorCode and errorMessage appear when a call failed. requestParameters and responseElements carry the details, such as which policy was attached or which ports were opened. readOnly separates harmless describe and list calls from changes.
Events that usually matter
Some patterns come up in almost every investigation. Root user activity should be rare and deliberate. Console logins without MFA, or failed console logins from unfamiliar addresses, point at stolen passwords. A new access key, a new login profile or an attached administrator policy is how an intruder keeps access. StopLogging, trail updates, deleting GuardDuty detectors or stopping AWS Config are attempts to blind you. Bucket policy, ACL and public access block changes can expose data. Security group rules that allow 0.0.0.0/0 open servers to the internet. Scheduling a KMS key for deletion can make data unrecoverable. A burst of AccessDenied errors often means someone is exploring what a stolen credential can do, and new instances in regions you never use are a classic sign of cryptocurrency mining.
Reviewing the files
The AWS CloudTrail Log Analyzer opens trail files directly in your browser. Download the gzipped objects for the time window from your trail's S3 bucket, or export from the Event history page or CloudWatch Logs, then select all files at once. Records are merged into one table sorted by time, with a timeline that shows errors in red.
The findings tab applies eleven review rules covering the patterns above and sorts them by severity. Clicking one opens the full JSON record so you can see exactly which user, key, policy or bucket was involved. Filters for principal or ARN, service, region, event name, errors and write-only events let you follow one identity through the whole period. The top lists rank principals, event names, source IPs, regions, error codes and user agents, which quickly reveals an unfamiliar tool or address. You can tell the analyzer which regions you normally use, adjust the access-denied threshold and switch off rules that are noisy for your setup. Findings and filtered events export as CSV for the incident record.
Practical tips
Write down the time window first and collect a little more than you think you need, since attackers often test a key hours before they act. Remember that global services such as IAM log in us-east-1. Look at user agents: a pipeline that always uses one SDK version will stand out against a manual command-line session. After the review, rotate or delete the affected keys, remove anything the intruder created, and check other regions and accounts in the organisation too.
Limits
The analyzer only sees the records you load, so missing data events or a disabled trail leave real gaps. Its rules are leads for a person to judge, and infrastructure-as-code tools legitimately make many IAM changes. For months of data or continuous monitoring use Athena, CloudTrail Lake or a SIEM, and keep GuardDuty enabled. For a fast, private first look at a few thousand to tens of thousands of records, a browser tab is enough.



