Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 2.01 KB

sns-topic-policies.md

File metadata and controls

27 lines (23 loc) · 2.01 KB

CloudSploit

AWS / SNS / SNS Topic Policies

Quick Info

Plugin Title SNS Topic Policies
Cloud AWS
Category SNS
Description Ensures SNS topics do not allow global send or subscribe.
More Info SNS policies should not be configured to allow any AWS user to subscribe or send messages. This could result in data leakage or financial DDoS.
AWS Link http://docs.aws.amazon.com/sns/latest/dg/AccessPolicyLanguage.html
Recommended Action Adjust the topic policy to only allow authorized AWS users in known accounts to subscribe.

Detailed Remediation Steps

  1. Log in to the AWS Management Console.
  2. Select the "Services" option and search for SNS.
  3. In the left navigation panel, select Topics under SNS Dashboard.
  4. Select the Topic by clicking on the ID.
  5. In the Topic configuration page, scroll down and click on "Access policy" tab.
  6. Check the value of "Prinicipal" key. If it's set to (*) everyone then this topic allows access to everyone.
  7. To change the access policy, click on the "Edit" button at the top of the page.
  8. On the "Edit topic" page, scroll down to "Access policy" and in the "JSON editor" change the "Principal" key with the correct IAM role ARN eg. arn:aws:iam::066531304300:user/dev27.
  9. Click on "Save changes" button at the bottom of the page.
  10. Repeat step 3-9 for all other SNS Topics across all regions.