Skip to main content

πŸ›‘οΈ AWS MQ Broker is publicly accessible🟒

Logic​

Similar Policies​

Description​

Open File

Description​

This policy identifies AWS MQ brokers that are configured to be publicly accessible.

To reduce security exposure, Amazon MQ brokers deployed within your AWS account should not be accessible from the public internet. Publicly accessible brokers increase the risk of unauthorized access and potential data exposure.

Rationale​

Amazon MQ brokers should be deployed within private subnets to ensure access is restricted to resources inside the VPC or through secure connectivity mechanisms such as AWS Site-to-Site VPN, Client VPN, or AWS Direct Connect. Making a broker publicly accessible exposes it to external threats, including brute-force attacks and other malicious activity.

Audit​

This policy flags an AWS MQ Broker as INCOMPLIANT when the Publicly Accessible field is set to true.

Remediation​

Open File

Remediation​

Configure Amazon MQ Brokers to Be Private​

Amazon MQ brokers that are publicly accessible cannot be modified in place. To disable public access, the broker must be re-created with a configuration that restricts network access to private subnets within your VPC.

Using AWS CloudFormation​

Use AWS CloudFormation to provision a new Amazon MQ broker with public accessibility disabled.

CloudFormation Template (YAML)​
AWSTemplateFormatVersion: '2010-09-09'
Description: Disable public access for Amazon MQ brokers

Resources:
MQBroker:
Type: AWS::AmazonMQ::Broker
Properties:
BrokerName: {{broker-name}}
DeploymentMode: ACTIVE_STANDBY_MULTI_AZ
EngineType: ActiveMQ
EngineVersion: {{5.15.0}}
HostInstanceType: {{mq.m5.large}}
AutoMinorVersionUpgrade: true
Logs:
General: true
Audit: true
PubliclyAccessible: false
SecurityGroups:
- {{sg-id1}}
- {{sg-id2}}
SubnetIds:
- {{subnet-id1}}

... [see more](remediation.md)

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό AWS Well-Architected β†’ πŸ’Ό SEC08-BP04 Enforce access control8no data
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Public and Anonymous Access115no data