Detection rules › Sigma

Potential Bucket Enumeration on AWS

Status
test
Severity
low
Log source
product aws, service cloudtrail
Author
Christopher Peacock @securepeacock, SCYTHE @scythe_io
Source
github.com/SigmaHQ/sigma

Looks for potential enumeration of AWS buckets via ListBuckets.

MITRE ATT&CK coverage

Event coverage

ProviderEvent
AWS-s3ListBuckets

Rules detecting the same action

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

Rule body yaml

title: Potential Bucket Enumeration on AWS
id: f305fd62-beca-47da-ad95-7690a0620084
related:
    - id: 4723218f-2048-41f6-bcb0-417f2d784f61
      type: similar
status: test
description: Looks for potential enumeration of AWS buckets via ListBuckets.
references:
    - https://github.com/Lifka/hacking-resources/blob/c2ae355d381bd0c9f0b32c4ead049f44e5b1573f/cloud-hacking-cheat-sheets.md
    - https://jamesonhacking.blogspot.com/2020/12/pivoting-to-private-aws-s3-buckets.html
    - https://securitycafe.ro/2022/12/14/aws-enumeration-part-ii-practical-enumeration/
author: Christopher Peacock @securepeacock, SCYTHE @scythe_io
date: 2023-01-06
modified: 2024-07-10
tags:
    - attack.discovery
    - attack.t1580
    - attack.t1619
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 's3.amazonaws.com'
        eventName: 'ListBuckets'
    filter:
        userIdentity.type: 'AssumedRole'
    condition: selection and not filter
falsepositives:
    - Administrators listing buckets, it may be necessary to filter out users who commonly conduct this activity.
level: low

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    eventSource: 's3.amazonaws.com'
    eventName: 'ListBuckets'

Stage 2: not filter

filter:
    userIdentity.type: 'AssumedRole'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
userIdentity.typeeqAssumedRole

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
  • ListBuckets
eventSourceeq
  • s3.amazonaws.com