AWS STS GetFederationToken with AdministratorAccess in Request
Description
Identifies successful calls to AWS STS GetFederationToken where request parameters reference AdministratorAccess. This API returns temporary security credentials for a federated user with permissions bounded by the calling IAM user and any inline session policy passed in the request. Supplying or referencing the AWS managed AdministratorAccess policy (or an equivalent string in the policy payload) can grant broadly privileged temporary credentials and may indicate privilege abuse or dangerous automation.
Query · kuery
event.dataset: "aws.cloudtrail"
and event.provider: "sts.amazonaws.com"
and event.action: "GetFederationToken"
and event.outcome: "success"
and aws.cloudtrail.request_parameters: *AdministratorAccess*
Investigation fields
Pivot points the source recommends for triage.
@timestampuser.nameuser_agent.originalsource.ipaws.cloudtrail.user_identity.arnaws.cloudtrail.user_identity.typeaws.cloudtrail.user_identity.access_key_idevent.actionevent.outcomecloud.account.idcloud.regionaws.cloudtrail.request_parametersaws.cloudtrail.response_elements
Known false positives
- Highly unusual for legitimate workflows to embed or reference full administrator access in GetFederationToken session policies; if found, it is often legacy or misconfigured tooling. Confirm with the owning team and replace with least-privilege session policies. Tune only after documented approval.
Analyst notes
Investigating AWS STS GetFederationToken with AdministratorAccess in Request
GetFederationToken issues temporary credentials (typically up to 36 hours) for a federated user name you specify.
The effective permissions are the intersection of the IAM user’s permissions and the optional session policy in the
request. Including AdministratorAccess in Policy (or a policy ARN / JSON that names it) is almost always
over-privileged for federation use cases. For first-time GetFederationToken usage without this policy signal, see
AWS First Occurrence of STS GetFederationToken Request by User.
Note: AWS documents that GetFederationToken must be called with long-term IAM user credentials (not role
temporary credentials). Pivot on aws.cloudtrail.user_identity.arn and access_key_id accordingly.
Possible investigation steps
- Parse
aws.cloudtrail.request_parametersforname,policy, anddurationSeconds. - Confirm whether the IAM user should perform federation or if the key may be compromised.
- Search CloudTrail for subsequent events using
response_elements.credentials.accessKeyIdfrom the same response (if logged). - Correlate with IAM changes, data-plane access, or other STS calls from the same
source.ipin a ±30 minute window.
False positive analysis
- Typos or test accounts in non-production: still validate and narrow session policies.
Response and remediation
- Revoke or rotate the IAM user access keys involved; enforce least privilege on the user and replace broad session policies.
- GetFederationToken