Reconnaissance and Enumeration

A tester finds a long-term AWS access key pair (key ID beginning AKIA) in an exposed backup file. The rules of engagement allow validating the key but forbid changing resources or reading production data. Which approach is BEST?

Show the answer

Correct answerC. Run sts get-caller-identity, then review the principal's attached IAM policies

AWhy not this: Access keys authenticate API calls, not console logins, so a key ID is not a console username.

BWhy not this: Reads production data, which the rules of engagement forbid, and is not needed to prove the key is valid.

CWhy this is right: Validates the key and identifies the principal read-only, then policy review scopes its permissions within the rules.

DWhy not this: Creating a key modifies the account's IAM resources, which the rules forbid, and adds a persistence artifact.

sts get-caller-identity confirms the key is valid and names the account and principal without needing permissions or changing anything; reviewing the attached policies then scopes its access. Downloading bucket contents breaks the ban on reading production data.