Skip to content

See SNS access policies and topics open to anyone

Can anyone publish to your topic? --acls tells you.

Terminal recording of kurkik sns scan

The recording shows kurkik sns scan on the demo sandbox; its data differs from this example.

Terminal window
kurkik sns scan topics-prod --acls
topics-prod - Amazon SNS, as arn:aws:iam::400000000901:root
topics (1)
orders
policy allow * sns:Publish open to anyone
subscriptions: not read (--consumers)
How to build this setup yourself

topics-prod

Terminal window
awslocal sns create-topic --name orders
awslocal sns set-topic-attributes --topic-arn arn:aws:sns:us-east-1:400000000901:orders --attribute-name Policy --attribute-value '{"Version": "2012-10-17", "Statement": [{"Sid": "publish", "Effect": "Allow", "Principal": "*", "Action": "sns:Publish", "Resource": "arn:aws:sns:us-east-1:400000000901:orders"}]}'

All flags: kurkik sns scan · more Amazon SNS scan examples