Module 2 · Network Controls, Logging and Detection · Lesson 5 of 9

Finding the evidence in CloudTrail

Make an approved change, find its management event, and learn which actions your logging does and doesn't capture.

In this lesson · about 22 minutes

  • Search CloudTrail Event history by account, region and time
  • Read eventName, actor and resource from an event
  • Distinguish management events from data events

CloudTrail records API activity: who did what, to which resource, when, and from where. It's the first place to look after any unexpected change.

Two kinds of events

TypeExamplesLogged by default?
Management eventsCreating a bucket, changing a security group, attaching a policy, console loginsYes: the last 90 days are in Event history
Data eventsS3 GetObject/PutObject, Lambda invocationsNo: you must enable them on a trail (and they cost extra)

So if someone downloads every object in a bucket, Event history won't show it unless you'd already enabled S3 data events. Logging isn't retrospective: you can't turn it on today and see yesterday.

Reading an event

Key fields: eventTime, eventName (the API call), userIdentity (the actor), sourceIPAddress, awsRegion, requestParameters (what was changed) and errorCode (if it failed).

Hands-on lab (simulated terminal)

Practice challenge 04: find your change

In the last lesson you revoked the open SSH rule in us-east-1. Find that event. (Simulated CLI; the account is a dummy.)

Step 1 of 2. Type each command and press Enter. Nothing runs on your computer.

Practice challenge 04: find your change

1. Look up events with the event name RevokeSecurityGroupIngress in us-east-1.

learner@sandbox:~$

Check your understanding0 of 3 correct

Question 1

1.Will CloudTrail Event history show all S3 object reads?

Question 2

2.You enable data events today. Can you see who read a file last week?

Question 3

3.Your search returns nothing for a change you know happened. Which is NOT a likely reason?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

Noviq Academy is free and for learning. The AWS command line and console in this course are simulated with a made-up account and dummy data. If you practise in a real AWS account, use a dedicated sandbox, enable MFA and budget notifications, and delete everything when you finish: you are responsible for any charges. AWS and Amazon S3 are trademarks of Amazon.com, Inc.; this course is independent of AWS.