Detection rules › Sigma
Attempt To 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 | T1078.004 Valid Accounts: Cloud Accounts |
| Persistence | T1078.004 Valid Accounts: Cloud Accounts |
| Privilege Escalation | T1078.004 Valid Accounts: Cloud Accounts |
| Stealth | T1078.004 Valid Accounts: Cloud Accounts |
Rules detecting the same action
Other rules on this platform that filter on the same API call or operation.
- Get Credentials For Identity (Sigma)
Rule body yaml
title: Attempt To Get Credentials For Identity
id: 535c3745-3883-4cc8-a635-1a56cc3d6384
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'
errorCode: 'AccessDenied'
condition: selection
falsepositives:
level: medium
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
eventName: 'GetCredentialsForIdentity'
errorCode: 'AccessDenied'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.