Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

AWS CloudTrail User Guide, Working with CloudTrail event history, describing a record of the past 90 days of management events in an AWS Region.
Screenshot: AWS CloudTrail User Guide, Working with CloudTrail event history, Amazon Web Services (fair use).

Response

Did You Know: AWS CloudTrail Event History Keeps Only 90 Days of Management Events in One Region, and the S3 Object Reads an Investigation Needs Are Not in It

Every AWS account gets CloudTrail event history without any setup, and responders often open it first. But it holds only the past 90 days of management events, one Region and one account at a time, and it never shows data events such as S3 GetObject. Trails do not log those either unless someone turned them on before the incident.

Noah Park, ResponseNew York3 min read

NEW YORK - When an AWS key leaks or an account starts behaving strangely, the first place many responders look is the Event history page in the CloudTrail console. It needs no setup. AWS says CloudTrail is enabled by default for every account, and event history provides "a viewable, searchable, downloadable, and immutable record of the past 90 days of management events in an AWS Region." There is no CloudTrail charge for viewing it.

That description carries three limits that matter in an investigation: 90 days, management events, and one Region.

AWS CloudTrail User Guide, Limitations of Event history.
Screenshot: AWS CloudTrail User Guide, Limitations of Event history, Amazon Web Services (fair use).

AWS lists them plainly. The Event history page only shows management events; it does not show data events, Insights events, or network activity events. It is limited to the past 90 days, and after that events are no longer shown. A search covers a single AWS account, returns events from a single Region, and cannot query multiple attributes: one attribute filter plus a time range. Event history does not aggregate events across an organization. Downloads are capped at 200,000 events per file, with the console offering additional files beyond that.

Management events are control plane operations, such as IAM AttachRolePolicy or creating a subnet. Data events are the operations performed on or in a resource. AWS's examples include S3 object-level activity such as GetObject, DeleteObject and PutObject, and Lambda function invocations. In a data theft case, those are often the events that answer what was taken.

AWS CloudTrail User Guide, Logging data events, stating that trails and event data stores do not log data events by default.
Screenshot: AWS CloudTrail User Guide, Logging data events, Amazon Web Services (fair use).

Creating a trail does not close that gap by itself. AWS says that by default, trails and event data stores log management events and do not include data or Insights events. Data events are often high volume and carry additional charges, and AWS says each resource type has to be added explicitly before CloudTrail records it. Event history is also separate from any trail: settings applied to a trail or event data store do not change it, and events cannot be deleted from it by hand.

AWS CloudTrail User Guide, Viewing recent management events with the console, noting the default Read only filter set to false.
Screenshot: AWS CloudTrail User Guide, Viewing recent management events with the console, Amazon Web Services (fair use).

The console adds one more trap. The Event history list opens with a default filter, Read only set to false, which hides read events. AWS notes the filter can be cleared to show both read and write events. An analyst scanning the default view for a stolen credential's activity sees what it changed, not what it looked at.

AWS CloudTrail User Guide, Working with CloudTrail trails, recommending multi-Region trails.
Screenshot: AWS CloudTrail User Guide, Working with CloudTrail trails, Amazon Web Services (fair use).

Region scope applies to trails too. AWS recommends multi-Region trails as a best practice because they capture activity in all enabled Regions. Every trail created in the console is multi-Region, but a single-Region trail is the default when a trail is created with the AWS CLI or the CloudTrail API.

For a response team, the checks are short. On day one of an incident, confirm whether an organization or multi-Region trail exists and where its logs land, because event history alone will not reach past 90 days. Search every enabled Region, not just the home Region. Clear the Read only filter before concluding a credential did nothing. Find out whether data events were enabled for the buckets and functions in scope; if they were not, CloudTrail cannot say which objects were read, and the team should look for other evidence. And before the next incident, decide which data events are worth paying for.

About the Author

Noah Park

Noah Park covers incident response, containment, and blue-team operations for SOCtember from New York.

Related stories

Response desk