title: AWS API Call Denied
id: ae49359a-dd61-4b17-aa42-6f6f5eb72321
name: aws_cloudtrail_api_call_denied
status: experimental
description: Base rule for the enumeration correlation below. Not meant to alert on its own.
author: PurpleLog
date: 2026-10-17
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        errorCode:
            - 'AccessDenied'
            - 'Client.UnauthorizedOperation'
            - 'UnauthorizedOperation'
    condition: selection
level: informational
---
title: Permission Enumeration With An AWS Access Key
id: 21567798-26e9-40f1-8c32-9d8ebdd706a0
status: experimental
description: |
    Detects one access key, from one source IP, denied on at least 50 distinct AWS APIs within an hour,
    the footprint of permission brute-forcing tools after a key leak.
references:
    - https://summitroute.com/blog/2020/10/09/public_dataset_of_cloudtrail_logs_from_flaws_cloud/
author: PurpleLog
date: 2026-10-17
tags:
    - attack.discovery
    - attack.t1580
correlation:
    type: value_count
    rules:
        - aws_cloudtrail_api_call_denied
    group-by:
        - userIdentity.accessKeyId
        - sourceIPAddress
    timespan: 1h
    condition:
        field: eventName
        gte: 50
falsepositives:
    - Cloud security posture scanners running with a deliberately limited role
level: high
