HIGH AWS S3 Server Access Logs Data Exfiltration LTR-0016 ✓ validated

Detect Anonymous S3 Object Reads in Server Access Logs

Published · Updated

MITRE ATT&CK: T1530

Sigma Rule

title: S3 Anonymous Object Read
id: c9b48814-efc5-4f0c-9d57-2eca393911d2
status: experimental
description: >
  Detects an object download (REST.GET.OBJECT) that S3 served with status 200
  to a request carrying no credentials. S3 server access logs record such a
  request with "-" as the requester, the signature version and the
  authentication type. S3 only serves it when a bucket policy, an ACL or a
  public-access setting allows public reads.
references:
  - https://docs.aws.amazon.com/AmazonS3/latest/userguide/LogFormat.html
  - https://attack.mitre.org/techniques/T1530/
author: LogTriage
date: 2026/09/18
modified: 2026/10/20
logsource:
  product: aws
  service: s3
detection:
  object_read:
    operation: 'REST.GET.OBJECT'
    http_status: 200
  anonymous:
    requester: '-'
  signed:
    signature_version:
      - 'SigV2'
      - 'SigV4'
  condition: object_read and anonymous and not signed
falsepositives:
  - Buckets that are public by design (static websites, download mirrors)
  - CloudFront origin fetches without Origin Access Control
level: high
tags:
  - attack.collection
  - attack.t1530
How the rule decides

1 · Each event is compared with 3 selections. Every field in a selection must match; listed values are alternatives.

object_read
  • operation is REST.GET.OBJECT
  • and http_status is 200
anonymous
  • requester is -
signed Excluded
  • signature_version is any of SigV2SigV4

2 · An event counts when

object_readandanonymousandnotsigned

Alert high Checked on every deploy: fires on s3_access_attack.log, silent on s3_access_normal.log — both in the public sample dataset ↗︎

What this rule detects

S3 server access logs record one line per request. After the timestamp come the remote IP and the requester: an IAM principal’s ARN or canonical ID for an authenticated request, and - for an unauthenticated one. The same request also logs - as its signature version and authentication type.

This rule fires on an unauthenticated object download that succeeded: no credentials, REST.GET.OBJECT, status 200. That is only possible when the bucket grants public access, so against a bucket that should be private, it is confirmed data exposure, not an attempt.

Detection logic

Three selections, combined as object_read and anonymous and not signed:

  • object_read: operation: REST.GET.OBJECT with http_status: 200. Object content was requested and served, not bucket metadata such as REST.GET.VERSIONING, which appears in normal console traffic.
  • anonymous: requester: '-'. No principal presented credentials, so this cannot be a confused deputy or an over-permissioned role: there is no role.
  • signed: the request carried a SigV2 or SigV4 signature. Excluding signed requests says the same thing as the requester check from a second field, which keeps the rule correct in pipelines that store an empty requester instead of -.

There is no count threshold: one anonymous read of a private object is one incident.

Validated against a real sample

Validated against s3_access_attack.log (shipped with LogTriage), three requests against corp-data-bucket:

  • 185.220.101.42, with no credentials, downloads confidential/customers.csv: REST.GET.OBJECT, status 200, 5,242,880 bytes sent, user agent python-requests/2.28.0
  • The same address, still unauthenticated, downloads confidential/employees.csv a minute later: status 200, 1,048,576 bytes
  • Then 45.142.212.100, authenticated as arn:aws:iam::123456789:user/attacker, uploads malware/backdoor.sh (REST.PUT.OBJECT) via boto3/1.26.0

The rule fires on the two anonymous downloads. It stays silent on the upload, which is authenticated, and on the matching benign log, where every request is signed with SigV4 and carries a real requester ARN (arn:aws:iam::123456789:user/alice, .../bob).

False positives

The big one is definitional: buckets that are supposed to be public. A static website bucket or a public download mirror serves anonymous GETs as its entire job. Scope this rule to buckets that should be private, ideally from your S3 inventory rather than from exclusions inside the rule.

CloudFront origin fetches without Origin Access Control signing also appear anonymous; the fix is the OAC configuration, not a rule exclusion.

Frequently Asked Questions

What does a requester of '-' actually prove?
That the request carried no AWS credentials: no signature and no IAM principal. AWS writes `-` for the requester, the signature version and the authentication type of such a request. S3 only serves it when a bucket policy, an ACL or a public-access setting explicitly allows it, so an anonymous request with status 200 proves two things at once: the bucket is publicly readable, and someone unauthenticated is reading it. The only question is whether the bucket was meant to be public.
Why alert on the 200 success rather than on 403 AccessDenied probes?
Both are worth watching, but they mean different things. A burst of 403s is reconnaissance, someone enumerating bucket names or testing permissions, which is constant background noise on AWS. A 200 is exposure: the object's bytes actually left. This rule keys on the confirmed case because it demands an immediate response; 403 probing deserves a lower-severity rule with a count threshold.
How do S3 server access logs differ from CloudTrail data events for this detection?
Server access logs are free and request-level, and include the requester, operation, key, status and bytes sent, everything this rule needs, but delivery is best-effort and can lag by hours. CloudTrail S3 data events are billed per event, delivered reliably and structured as JSON; there an anonymous read appears as GetObject with the principal ID ANONYMOUS_PRINCIPAL. If you can afford data events on sensitive buckets, watch both feeds.
What is the response playbook when this rule fires?
First, stop the bleeding: turn on Block Public Access for the bucket (or the account), which overrides any policy or ACL that grants public reads. Second, scope the exposure: the same access log shows exactly which keys were fetched, by which addresses and how many bytes were sent; in the sample, two confidential CSV files totalling 6 MB. Third, treat the contents as compromised: rotate any credentials or tokens inside the exposed objects and notify as your data-handling obligations require. Only then investigate how the bucket became public.
The sample also uploads a shell script. Why doesn't this rule flag it?
Because that is a different behavior with a different response: an authenticated principal staging a payload (`REST.PUT.OBJECT` of a `.sh`, `.exe` or `.ps1` key) where other infrastructure might fetch and run it. It deserves its own rule, scoped to buckets that hold code, rather than an extra branch here that would inherit this rule's severity and response.

Related Resources

Reference

See this detection run on a real report

Try the live demo with a pre-loaded malicious log set — no signup required — or upload your own log file and get a full AI-reviewed threat report in minutes.