Investigating Suspect AWS Credentials with CloudTrail and GuardDuty

Investigating AWS Credentials requires connecting Identity, Audit Logs, API actions, Resources, Regions, and Sessions. Start by preserving evidence and building a Timeline, then perform documented Containment.
Cloud investigation requires connecting identities, Control Plane, resources, keys, sessions, and security services. Since activity is distributed across services and regions, a Timeline and understanding permissions are critical. This article focuses on investigating AWS Credentials and is intended for Cloud and SOC analysts. The goal is to provide a working methodology that can be applied in practice, during professional interviews, and in a work environment, without settling for a dictionary definition.
The main challenge is that data is almost always partial. CloudTrail, GuardDuty, IAM principal can point to a direction, but their meaning depends on time, asset, user, and expected activity. Therefore, we will build the investigation around an investigative question, required evidence, and clear criteria for completion.
The practical scenario in the article is: investigating simulated API calls from an unusual location. All examples are lab data or descriptions of processes. When dealing with Penetration Testing, Web, or Cloud, one must only work with explicit authorization, a defined Scope, and the ability to stop the test.




