S3 bucket does not have server-access logging enabled

Severity
Low
Service
S3
Check ID
S3_LOGGING_DISABLED

What this check finds

Without server-access logging, there is no record of who accessed objects in the bucket, what operations were performed, or from which IP address. This makes forensic investigation of data breaches impossible.

Passing looks like: S3 server-access logging enabled.

How to fix it

Enable server-access logging on the bucket and specify a target bucket and prefix.

AWS CLI

  1. aws s3api put-bucket-logging --bucket BUCKET_NAME --bucket-logging-status '{"LoggingEnabled":{"TargetBucket":"LOG_BUCKET","TargetPrefix":"BUCKET_NAME/"}}'

Names in capitals are placeholders for your own resource. Review a command before you run it.

AWS console

S3 → Bucket → Properties → Server access logging → Enable.

Compliance controls it is evidence for

A failing result counts against these controls in KloudLytics; a passing one is evidence towards them. How compliance mapping works

Compliance controls mapped to S3 bucket does not have server-access logging enabled
FrameworkControls
PCI-DSS v4.0.1
  • 10.2 Audit logs are implemented to support the detection of anomalies and suspicious activity
HIPAA Security Rule
  • 164.312(b) Implement hardware, software, and procedural mechanisms to record activity
NIST SP 800-53 Rev5 (Moderate)
  • AU-2 Event Logging
NIST Cybersecurity Framework 2.0
  • PR.PS-04 Log records are generated for monitoring
ISO/IEC 27001:2022 Annex A
  • A.8.15 Logging

Checked on every scan

KloudLytics runs this check each time it scans a connected AWS account, through a read-only role, and lists every affected resource with its region. On Pro and Business a fix is written for the specific resource rather than the general case above. The exact access it needs

More S3 checks

All S3 checks

Find out what is actually exposed in your AWS environment.

Connect one AWS account and run your first security assessment.

No credit card · Agentless · Read-only