Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckLogGroupCustomerKey = rules.Register( scan.Rule{ AVDID: "AVD-AWS-0017", Provider: providers.AWSProvider, Service: "cloudwatch", ShortCode: "log-group-customer-key", Summary: "CloudWatch log groups should be encrypted using CMK", Impact: "Log data may be leaked if the logs are compromised. No auditing of who have viewed the logs.", Resolution: "Enable CMK encryption of CloudWatch Log Groups", Explanation: `CloudWatch log groups are encrypted by default, however, to get the full benefit of controlling key rotation and other KMS aspects a KMS CMK should be used.`, Links: []string{ "https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html", }, Terraform: &scan.EngineMetadata{ GoodExamples: terraformLogGroupCustomerKeyGoodExamples, BadExamples: terraformLogGroupCustomerKeyBadExamples, Links: terraformLogGroupCustomerKeyLinks, RemediationMarkdown: terraformLogGroupCustomerKeyRemediationMarkdown, }, CloudFormation: &scan.EngineMetadata{ GoodExamples: cloudFormationLogGroupCustomerKeyGoodExamples, BadExamples: cloudFormationLogGroupCustomerKeyBadExamples, Links: cloudFormationLogGroupCustomerKeyLinks, RemediationMarkdown: cloudFormationLogGroupCustomerKeyRemediationMarkdown, }, Severity: severity.Low, }, func(s *state.State) (results scan.Results) { for _, group := range s.AWS.CloudWatch.LogGroups { if group.KMSKeyID.IsEmpty() { results.Add( "Log group is not encrypted.", group.KMSKeyID, ) } else { results.AddPassed(&group) } } return }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
- log_group_customer_key.cf.go
- log_group_customer_key.go
- log_group_customer_key.tf.go
- require_cloudtrail_change_alarm.go
- require_cmk_disabled_alarm.go
- require_config_configuration_change_alarm.go
- require_console_login_failure_alarm.go
- require_iam_policy_change_alarm.go
- require_nacl_change_alarm.go
- require_network_gateway_change_alarm.go
- require_non_mfa_login_alarm.go
- require_root_user_usage_alarm.go
- require_route_table_change_alarm.go
- require_s3_bucket_policy_change_alarm.go
- require_security_group_change_alarm.go
- require_unauthorised_api_call_alarm.go
- require_vpc_change_alarm.go
Click to show internal directories.
Click to hide internal directories.