Detection rules › Sigma
Get Credentials For Identity
Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | |
| Persistence | |
| Privilege Escalation | |
| Stealth |
Telemetry coverage
Rules detecting the same action
These rules filter on the same operation.
Rule body
title: Get Credentials For Identity
id: 41b73340-8b0d-438f-9d35-ae0b4a21f136
status: experimental
description: |
Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers.
references:
- https://hackingthe.cloud/aws/exploitation/cognito_identity_pool_excessive_privileges/#exploitation
- https://traildiscover.cloud/#CognitoIdentity-GetCredentialsForIdentity
author: Zach Mathis (@yamatosecurity)
date: 2025-04-23
modified: 2025-04-23
tags:
- attack.credential-access
- attack.t1078.004 # Valid Accounts: Cloud Accounts
logsource:
product: aws
service: cloudtrail
detection:
selection:
eventName: 'GetCredentialsForIdentity'
filter:
errorCode: 'AccessDenied'
condition: selection and not filter
falsepositives:
level: high
Stages and Predicates
Stage 0: condition
selection and not filterStage 1: selection
selection:
eventName: 'GetCredentialsForIdentity'
Stage 2: not filter
filter:
errorCode: 'AccessDenied'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
errorCode | eq | AccessDenied | excludes:errorCode field:"errorCode" value:"AccessDenied" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
eventName | eq |
| field:"aws::eventName" kind:eq value:"GetCredentialsForIdentity" |