mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-07 09:48:58 +00:00
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
title: AWS IAM Backdoor Users Keys
|
|
id: 0a5177f4-6ca9-44c2-aacf-d3f3d8b6e4d2
|
|
status: experimental
|
|
description: Detects AWS API key creation for a user by another user. Backdoored users can be used to obtain persistence in the AWS environment. Also with this alert, you can detect a flow of AWS keys in your org.
|
|
author: faloker
|
|
date: 2020/02/12
|
|
modified: 2020/09/01
|
|
references:
|
|
- https://github.com/RhinoSecurityLabs/pacu/blob/master/modules/iam__backdoor_users_keys/main.py#L6
|
|
logsource:
|
|
service: cloudtrail
|
|
detection:
|
|
selection_source:
|
|
- eventSource: iam.amazonaws.com
|
|
selection_eventname:
|
|
- eventName: CreateAccessKey
|
|
filter:
|
|
userIdentity.arn|contains: responseElements.accessKey.userName
|
|
condition: all of selection* and not filter
|
|
fields:
|
|
- userIdentity.arn
|
|
- responseElements.accessKey.userName
|
|
- errorCode
|
|
- errorMessage
|
|
falsepositives:
|
|
- Adding user keys to their own accounts (the filter cannot cover all possible variants of user naming)
|
|
- AWS API keys legitimate exchange workflows
|
|
level: medium
|
|
tags:
|
|
- attack.persistence
|
|
- attack.t1098
|