This rule ensures that S3 bucket logging is enabled for better cyber incident management and resilience.
Rule | S3 bucket logging should be enabled |
Framework | Federal Financial Institutions Examination Council (FFIEC) |
Severity | ✔ Low |
Rule Details
Description
This rule requires that S3 bucket logging is enabled for Federal Financial Institutions Examination Council (FFIEC) compliance. S3 bucket logging helps to track and monitor access to the bucket, providing a record of all API actions performed on objects in the bucket.
Purpose
Enabling S3 bucket logging for FFIEC compliance ensures that all interactions with sensitive data stored in the bucket are captured and logged. This allows for easier auditing, monitoring, and analysis of access to the bucket to meet regulatory requirements.
Troubleshooting Steps
If S3 bucket logging is not enabled or encounters any issues, the following troubleshooting steps can be taken:
Code
To enable S3 bucket logging for FFIEC compliance, you can use the AWS Command Line Interface (CLI) with the following AWS CLI command:
aws s3api put-bucket-logging --bucket <bucket-name> --logging-configuration '{"LoggingEnabled":{"TargetBucket":"<target-bucket-name>","TargetPrefix":"logs/"}}'
Replace
<bucket-name>
with the name of the S3 bucket you want to enable logging for and <target-bucket-name>
with the name of the bucket where you want to store the logs.Remediation Steps
To remediate the S3 bucket and enable logging for FFIEC compliance, follow these steps:
aws s3api put-bucket-logging --bucket <bucket-name> --logging-configuration '{"LoggingEnabled":{"TargetBucket":"<target-bucket-name>","TargetPrefix":"logs/"}}'
Replace
<bucket-name>
with the name of the S3 bucket you want to enable logging for and <target-bucket-name>
with the name of the bucket where you want to store the logs.aws s3api get-bucket-logging --bucket <bucket-name>
Ensure that the response shows the target bucket and prefix specified in the logging configuration.
By following these steps, you will have remediated the S3 bucket and enabled logging for FFIEC compliance.