Hunts & Detections

Source dated · Updated

Original query

Elastic Security · Kibana Query Language · Elastic License 2.0

Finds unauthenticated requests to S3 from sources that are unusual for the bucket. Check whether the bucket intentionally allows public access. Elastic tags this rule with MITRE ATT&CK T1530, T1619, T1485, and T1565.001.

Telemetry AWS CloudTrail S3 telemetry ingested through the Elastic AWS integration. The New Terms rule groups by source.address and tls.client.server_name, with a five-day history window.

Upstream author Elastic

Copyright 2021 Elasticsearch B.V.

Kibana Query Language
data_stream.dataset: "aws.cloudtrail"
    and event.provider: "s3.amazonaws.com"
    and event.action: (
        "GetObject" or
        "PutObject" or
        "ListObjects" or
        "DeleteObject" or
        "ListBucket")
    and event.outcome: "success"
    and aws.cloudtrail.user_identity.type: ("AWSAccount" or "Unknown")
    and cloud.account.id: "anonymous"
    and not (
        event.action: "GetObject"
        and aws.cloudtrail.flattened.request_parameters.key: (*.svg or *.woff2 or *.jpg or *.css or *.ico or *.png or *index.html or *.gif or robots.txt or security.txt or *.webp)
    )