Detection rules › Sigma

Role Enumeration

Status
test
Severity
low
Log source
product aws, service cloudtrail
Author
Zach Mathis (@yamatosecurity)
Source
github.com/Yamato-Security/suzaku-rules

An attacker may have enumerated roles (groups of permissions(policies)) with aws iam list-roles.

MITRE ATT&CK coverage

Event coverage

ProviderEvent
AWS-iamListRoles

Rules detecting the same action

Other rules on this platform that filter on the same API call or operation.

Rule body yaml

title: Role Enumeration 
id: a74c0244-43fa-47ea-90bf-802500dd3140
status: test
description: An attacker may have enumerated roles (groups of permissions(policies)) with `aws iam list-roles`.
references:
    - https://attack.mitre.org/techniques/T1087/004/
author: Zach Mathis (@yamatosecurity)
date: 2025-04-24
modified: 2025-04-24
tags:
    - attack.discovery
    - attack.t1087.004 # Account Discovery: Cloud Accounts
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 'iam.amazonaws.com'
        eventName: 'ListRoles'
    condition: selection
falsepositives:
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: 'iam.amazonaws.com'
    eventName: 'ListRoles'

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.

FieldKindValues
eventNameeq
  • ListRoles
eventSourceeq
  • iam.amazonaws.com