Learn · Cloud DFIR

Which CloudTrail events matter in an AWS investigation

Which CloudTrail events should I look at first during an AWS incident, and what will CloudTrail not show me?

Updated

  • AWS
LinkedInXSend to your team
On this page

Check what was logged before you search

CloudTrail is on by default, but the default is narrow. Event history gives you "the past 90 days of management events in an AWS Region", and the console view "only shows management events". It searches one account and one Region at a time.

For anything beyond that, find out whether a trail exists and where it delivers. A trail writes to an S3 bucket you choose and keeps logs for as long as the bucket does. By default a trail logs management events only; data events are an opt-in with extra cost.

CloudTrail Lake is not a fallback for new environments: AWS closed it to new customers on 31 May 2026.

Establish these three facts before scoping: which Regions had a trail, whether data events were enabled, and where the logs are stored.

The events to search first

Grouped by attacker objective, in the order we search them.

Scroll horizontally on narrow screens.

Objective

Event names

Defense evasion

StopLogging, DeleteTrail, UpdateTrail, PutEventSelectors, DeleteFlowLogs, DeleteLogGroup, DeleteDetector, UpdateDetector

Initial access

ConsoleLogin, GetSigninToken

Execution

SendCommand, StartSession

Persistence

CreateAccessKey, CreateUser, CreateLoginProfile, UpdateLoginProfile, CreateVirtualMFADevice, CreateSAMLProvider, CreateOpenIDConnectProvider, AuthorizeSecurityGroupIngress

Privilege escalation

PutUserPolicy, PutRolePolicy, PutGroupPolicy, AttachUserPolicy, AttachRolePolicy, AddUserToGroup, CreateRole, CreatePolicyVersion, SetDefaultPolicyVersion

Credential access

GetSecretValue, GetPasswordData, UpdateAssumeRolePolicy

Discovery

GetCallerIdentity, GetAccountAuthorizationDetails, ListUsers, ListRoles, ListBuckets

Lateral movement

AssumeRole, AssumeRoot

Exfiltration

CreateSnapshot, ModifySnapshotAttribute, ModifyImageAttribute, ModifyDBSnapshotAttribute, PutBucketPolicy, PutBucketAcl

Impact

RunInstances, PutBucketVersioning, DeleteAccountPublicAccessBlock, DeleteBucket, PutBucketLifecycleConfiguration, CopyObject (SSE-C re-encryption, a data event)

Two patterns deserve attention on their own. A burst of discovery calls from a principal that normally does none is often the first sign of a stolen key. And a snapshot whose attributes were modified to share it with another account is a common route for copying data out without touching S3.

The fields that tell the story

Scroll horizontally on narrow screens.

Field

What it tells you

eventName

The operation that was performed, such as CreateAccessKey or StopLogging. The most important field: every event in the table above is an eventName value.

userIdentity

Who made the call: user, role session, or AWS service. Follow role sessions back to the AssumeRole that created them.

eventSource

Which AWS service received the call, such as iam.amazonaws.com.

sourceIPAddress

Where the call came from. Calls made by AWS services show a service name instead of an IP.

userAgent

Console, CLI, SDK or a specific tool. A change in user agent for the same identity is worth explaining.

errorCode

Failed calls, including authorization failures. Repeated AccessDenied across many services usually means someone is mapping their permissions.

requestParameters

The request side of the call: what was asked for, such as the policy document attached or the account a snapshot was shared with.

responseElements

The response side of the same call: what AWS returned, such as the ID of a new access key or the ARN of a created role. Read it together with requestParameters.

additionalEventData

Occasionally useful, such as on ConsoleLogin, whether MFA was used.

Query it at scale

Event history is fine for a quick look and unworkable for a real investigation. Our preferred approach is Amazon Athena over the trail in S3, partitioned by Region and date to keep cost down. Never run an unbounded SELECT *; start with LIMIT 10 to learn the schema.

The same method works for every major AWS log source, not only CloudTrail. AWS documents the table definition for each one in the Athena user guide, including CloudTrail, VPC Flow Logs, S3 server access logs, Application Load Balancer, CloudFront, AWS WAF, Route 53 Resolver, GuardDuty and Network Firewall. In our experience, any of these sources can be loaded and queried within 10 minutes this way.

Invictus-AWS is built for environments where it is unclear what is running and which logs are enabled. It enumerates the account, collects configuration and logs, and runs a set of Athena queries over CloudTrail, writing one CSV per query. It needs read-only access plus permission to create its own Athena and Glue resources, which incur cost. See the documentation for the exact policy.

If you already know which logs are recorded and where, you do not need the tool: copy them out of S3 with aws s3 cp and load them into Athena as described above.

What you will still be missing

CloudTrail records control-plane calls. It does not record what happened inside an instance, the contents of objects read from S3 unless data events were on, or network traffic, which needs VPC Flow Logs. If the trail was stopped or its selectors narrowed, the gap starts at that event: record it as the limit of your evidence, and do not treat a quiet log after that point as a quiet attacker.

Related

Sources