Skip to content
AWS Security· Vaishnavi Merugu·Indexed by this site · Originally published· Defenses →· Its place in the scan record →

Use AWS STS GetScopedCredentials to narrow the permissions of an existing session

Scope down permissions of existing sessions using AWS STS GetScopedCredentials

AI summary

AWS launched a new STS API, GetScopedCredentials, which can narrow the permissions of existing temporary security credentials or shorten the session duration at runtime; the official positioning is as a building block for granting least privilege to agents, sub-agents, or workloads. The new credentials retain the IAM identity of the calling session; permissions are the intersection of the original session's effective permissions and the narrowing policy, and can only be reduced, not expanded; the session duration cannot exceed the remaining duration of the original session; it can be called recursively to narrow further, with at most three narrowing policies stacked per session. The article gives use cases such as restricting an agent's permissions (e.g., read-only access to a single S3 bucket) and issuing credentials to multi-tenant applications by tenant prefix; narrowing policies can be generated with IAM Policy Autopilot, and each call is recorded in CloudTrail. The API is available in all AWS commercial regions, AWS GovCloud (US), and China regions, with a launch quota of 200 requests per second per account per region.

Read originalaws.amazon.com