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
| Type | Examples | Logged by default? |
|---|---|---|
| Management events | Creating a bucket, changing a security group, attaching a policy, console logins | Yes: the last 90 days are in Event history |
| Data events | S3 GetObject/PutObject, Lambda invocations | No: 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.
1. Look up events with the event name RevokeSecurityGroupIngress in us-east-1.
Check your understanding0 of 3 correct
Quiz score: 0 of 3
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.