Kinesis stream should have adequate data retention
Description
This control checks whether an Amazon Kinesis data stream has a data retention period greater than or equal to the specified time frame. The control fails if the data retention period is less than the specified time frame. Unless you provide a custom parameter value for the data retention period, Security Hub uses a default value of 168 hours. In Kinesis Data Streams, a data stream is an ordered sequence of data records meant to be written to and read from in real time. Data records are stored in shards in your stream temporarily. The time period from when a record is added to when it is no longer accessible is called the retention period. Kinesis Data Streams almost immediately makes records older than the new retention period inaccessible after decreasing the retention period.
Remediation
To remediate Kinesis stream data retention, you need to increase the retention period to meet the minimum requirements.
Steps
- Navigate to the Amazon Kinesis console
- Select the Kinesis data stream
- Go to 'Configuration' tab
- Click 'Edit' for data retention settings
- Increase the retention period to at least 168 hours (7 days)
- Save the configuration
- Verify the retention period is updated
- Monitor the stream for data retention compliance
- Consider setting up alerts for retention period changes
- Document the retention policy for audit purposes