Skip to content

See SQS access policies and queues open to anyone

Is a queue open to anyone? --acls tells you.

Terminal recording of kurkik sqs scan

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

Terminal window
kurkik sqs scan queues-prod --acls
queues-prod - Amazon SQS, as arn:aws:iam::400000000201:root
queues (1)
orders-queue visibility 30s, retention 4d, sse
policy allow * sqs:SendMessage open to anyone
How to build this setup yourself

queues-prod

Terminal window
awslocal sqs create-queue --queue-name orders-queue
awslocal sqs set-queue-attributes --queue-url http://localhost:14566/400000000201/orders-queue --attributes '{"Policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Sid\": \"send\", \"Effect\": \"Allow\", \"Principal\": \"*\", \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:us-east-1:400000000201:orders-queue\"}]}"}'

All flags: kurkik sqs scan · more Amazon SQS scan examples