Security and Compliance

An investigator finds an unauthorized API call made with an assumed role in a target account; multiple callers used identical role session names, and source identity was not configured. With complete CloudTrail records from both accounts, which correlation BEST identifies the principal that obtained the credentials used for that call?

Show the answer

Correct answerA. Match userIdentity.accessKeyId to responseElements.credentials.accessKeyId in a successful AssumeRole event, then inspect that event's caller.

AWhy this is right: Matching the temporary access key links the API call to the credential-issuing event and its recorded caller.

BWhy not this: Shared addresses and unrelated console sessions make IP and time correlation insufficient for this attribution.

CWhy not this: Identical session names can represent different credential sets and different callers.

DWhy not this: The role creator is not necessarily the principal that later assumed the role.

The temporary access key identifies the credential set used for the API call and can be matched to the successful AssumeRole response. Session names can be reused, so matching a name alone cannot distinguish these sessions.