Read a sample: 1. Thinking Like a Cloud Investigator
A security engineer begins a workday with a question from an operations lead: “Did someone take our customer export?”
An alert has identified unusual activity involving an AWS role used by an application. The team has a CloudTrail record showing that the role session made a successful request to change a storage-related configuration. A second record shows an unsuccessful attempt to list objects in an Amazon S3 bucket. An engineer also sees network traffic from an application workload to an unfamiliar external address.
The facts are uncomfortable, but they do not yet answer the operations lead’s question. A successful configuration change is not the same thing as an object download. An unsuccessful listing request does not establish that every other request failed. Network traffic to an unfamiliar address is worth investigating, but connection metadata alone does not reveal the content transferred.
The immediate temptation is to assemble these observations into a single story: an intruder used the role, opened access to the bucket, and sent customer data outside the environment. That story might eventually be supported. It might also be wrong in several places. The role session could have belonged to an authorized deployment; the configuration change might not have affected the relevant objects; the network traffic might have involved an unrelated service. The failed listing attempt could be significant even if the first two observations are benign.
The investigator’s job is not to avoid forming a theory. It is to form theories that can be tested, preserve the distinction between records and interpretations, and make decisions without pretending that uncertainty has disappeared.
This chapter introduces a repeatable method for doing that. The examples are hypothetical, and the questions are original practice material rather than representations of actual exam questions. The method will recur throughout the book as the cases move from individual event records to identity paths, cross-account activity, evidence preservation, and incident reporting.
“Was the environment compromised?” is an understandable opening question, but it is too broad to guide the first search. Compromise can refer to unauthorized credential use, a malicious configuration change, access to data, execution on a workload, or several other conditions. Each requires different evidence.
A better first step is to translate the concern into a small set of answerable questions:
- Which principal or session made the observed configuration request?
- What did the request attempt to change, and did the recorded outcome indicate success?
- What access did the resulting configuration permit, considering the other applicable controls?
- Is there evidence that relevant objects were requested or retrieved?
- What can the available network records establish about the external connection?
- Which important sources are unavailable, incomplete, or not yet reviewed?
These questions separate activity from impact. They also expose dependencies. Before deciding whether a configuration change exposed customer data, the team needs to identify the resource, understand the change, and determine whether the data was present and accessible under the effective controls. Before connecting network traffic to that change, the team needs a reason to associate the workload and time window with the relevant activity.
Scope is part of the question. Specify the accounts, Regions, resources, identities, and approximate time window under review where they are known. Avoid making the scope so narrow that it excludes plausible related activity. A window beginning only at the alert time, for example, may miss a role assumption or earlier configuration change. At the same time, an unlimited search across every record can delay decisions and overwhelm the team with unrelated events.
A useful working question for the opening case might be:
> During the relevant incident window, did the application role session or a related principal obtain unauthorized access to the customer export, and what evidence supports or limits that assessment?
This wording does not assume an attacker, a successful retrieval, or a particular mechanism. It also makes room for an answer that is less satisfying than yes or no: “We observed a failed listing request, but the available records do not establish whether an object was retrieved through another request path.”
That answer can still support action. It tells responders what they know, what remains possible, and which evidence gap matters.
AWS investigations often draw on several kinds of records. Each source answers different questions, and none should be treated as a universal account of the incident.
In the opening case, the team might consider the following:
- AWS CloudTrail event records for recorded API activity, including identity context, request details, and outcome information where present. Whether a particular action is available depends on the event type, configuration, scope, and retention. - S3 access-related records, if configured and retained, to investigate requests involving the bucket and objects. The team must determine what each available logging source covers rather than assuming all object activity was captured. - Configuration evidence, including AWS Config records where available and relevant resource settings, to understand what changed and what access the configuration could permit. - Network records, such as VPC Flow Logs where configured, to examine recorded traffic metadata associated with the workload. These records do not by themselves identify the contents of a transfer. - Workload and application logs to understand what the application was doing, which process or request may have initiated activity, and whether an expected operational task explains the observations. - Identity and operational records, such as role trust and permission information, deployment records, and…