Menu

We use VPC endpoints for S3, are we compliant? VPC endpoint without a policy is a wormhole to every S3 bucket
📰

We use VPC endpoints for S3, are we compliant? VPC endpoint without a policy is a wormhole to every S3 bucket

DEV Community: aws·Bala Paranj·2 days ago
#ATgHpTCT
#devtoaws#devto#dev#endpoint#policy
Reading 0:00
15s threshold

✓ Human-authored analysis; AI used for formatting and proofreading.

One of the confident statements on r/aws: "We route all S3 traffic through a VPC endpoint, so our data stays on the private network." VPC endpoints do keep traffic off the public internet. But the confidence creates a blind spot.

The Default Policy Problem

When you create a VPC gateway endpoint for S3, AWS attaches a default policy:

{ "Statement" : [ { "Effect" : "Allow" , "Principal" : "*" , "Action" : "*" , "Resource" : "*" } ] }

Enter fullscreen mode

Exit fullscreen mode

Any principal on the VPC can reach ANY S3 bucket in ANY AWS account. Not just your buckets or buckets in your account. Any bucket, anywhere, that allows access from the calling principal.

The endpoint restricts the network path but not the destination . A compromised EC2 instance on your VPC can exfiltrate data to an attacker-controlled S3 bucket in a different account, and the traffic never touches the internet.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.