More Info:

Your AWS Simple Notification Service (SNS) topics should not allow Everyone to publish in order to protect against attackers or unauthorized users that can publish malicious messages to your topics.

Risk Level

Medium

Address

Security

Compliance Standards

HITRUST, AWSWAF, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

Sure, here are the step-by-step instructions to remediate the SNS topic global publishing misconfiguration in AWS:

  1. Open the AWS Management Console and navigate to the SNS service.
  2. Click on the SNS topic that needs to be remediated.
  3. In the topic details page, click on the “Access Policy” tab.
  4. Click on the “Edit” button to modify the access policy.
  5. In the access policy editor, remove the following statement:
{
  "Effect": "Allow",
  "Principal": "*",
  "Action": "SNS:Publish",
  "Resource": "arn:aws:sns:*:*:*"
}
  1. Click on the “Save Changes” button to save the updated access policy.
  2. Verify that the access policy no longer allows global publishing by checking that the Principal is no longer set to "*".
  3. Repeat these steps for any other SNS topics that need to be remediated.

That’s it! By following these steps, you have successfully remediated the SNS topic global publishing misconfiguration in AWS.

Additional Reading: