See SQS access policies and queues open to anyone
Is a queue open to anyone? --acls tells you.

The recording shows kurkik sqs scan on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik sqs scan queues-prod --aclsOutput
Section titled “Output”queues-prod - Amazon SQS, as arn:aws:iam::400000000201:rootqueues (1) orders-queue visibility 30s, retention 4d, sse policy allow * sqs:SendMessage open to anyoneHow to build this setup yourself
queues-prod
awslocal sqs create-queue --queue-name orders-queueawslocal 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
Copyright © 2026 Pavel Bodiachevskii