Techniques
Sample rules
AWS STS GetSessionToken Usage
- source: elastic
- technicques:
- T1548
- T1550
Description
Identifies the use of GetSessionToken API calls by IAM users or Root Account. While this is a common and legitimate operation used to obtain temporary credentials, it also provides adversaries with a method to generate short-lived tokens for stealthy activity. Attackers who compromise IAM user access keys may call GetSessionToken to create temporary credentials, which they can then use to move laterally, escalate privileges, or persist after key rotation. This rule is intended as a BBR to establish patterns of typical STS usage and support correlation with higher-fidelity detections.
Detection logic
event.dataset: aws.cloudtrail
and event.provider: sts.amazonaws.com
and event.action: GetSessionToken
and event.outcome: success