AWS MQ Broker is not encrypted by Customer Managed Key (CMK) misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AWS_209
Category - Subcategory
Storage - Encryption
Provider
AWS
Severity
LOW
Framework
Terraform
Mapped CSPM/KSPM Rule
052988c4-ae35-4725-997b-02a888356274
Impact
This rule identifies MQBrokers which are encrypted with default KMS keys and not with Keys managed by Customer. It is a best practice to use customer managed KMS Keys to encrypt your MQBroker data. It gives you full control over the encrypted data.
How to Fix
[source,go]
resource "aws_mq_broker" "pass" { broker_name = "example"
configuration { id = aws_mq_configuration.fail.id revision = aws_mq_configuration.fail.latest_revision }
engine_type = "ActiveMQ" engine_version = "5.15.13" host_instance_type = "mq.t2.micro" security_groups = [aws_security_group.test.id]
user { username = "ExampleUser" password = "MindTheGapps" }
encryption_options { use_aws_owned_key = false kms_key_id = aws_kms_key.example.arn } }
Last updated
Was this helpful?
