Skip to content
Misconfiguration Write-up Intermediate

AWS Console Session Traceability: How Attackers Obfuscate Identity Through the AWS Console

The default AWS configuration without SourceIdentity allows an attacker who has stolen permanent access keys to assume a role and then create a federated console session, causing subsequent console actions to be logged with a different temporary access key than the one in the AssumeRole event. This breaks the usual link between the AssumeRole event and the actions, making it harder for defenders to trace the activity back to the compromised user.

Itay Harel Follow

Published on wiz.io

For any security operations team, a key question whenever a new alert pops up is inevitably the same: Who did it?

Itay Harel, on wiz.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the AWS Console derives a new temporary access key for console sessions that differs from the one returned by the AssumeRole API call, so CloudTrail logs for console actions do not contain the same access key ID as the AssumeRole event.

What the attacker needed

Stolen permanent access keys; permissions to assume a role; AWS account without SourceIdentity

The fix

Enable AWS SourceIdentity and require it in role trust policies so that the original identity is carried through role assumptions and appears in CloudTrail; if not enabled, use a correlation method based on principalId, userName, and session creation date to find the corresponding AssumeRole event.

How it was found

  1. Obtain permanent access keys of an IAM user with permission to assume roles.
  2. Use the stolen keys to call AssumeRole, optionally setting a misleading role session name.
  3. Create a federated console session using the assumed role.
  4. Perform actions through the AWS Console; these are logged with a different temporary access key than the one in the AssumeRole event.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

In AWS, when you assume a role, you get temporary credentials. Normally, the logs show which role assumption created those credentials, so you can trace actions back to the original user. But if you use the AWS Console after assuming a role, the logs show a different temporary key, so that link is lost, making it harder to find who really did something.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Itay Harel

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.