Check ID:
Provider: AWS
Service:
Severity: HIGH
Categories:
Resource type:
ec2_transitgateway_auto_accept_vpc_attachmentsProvider: AWS
Service:
ec2Severity: HIGH
Categories:
trust-boundariesResource type:
AwsEc2TransitGatewayWhat this check verifies
EC2 Transit Gateways withAutoAcceptSharedAttachments=enable automatically approve cross-account VPC attachments.
The evaluation identifies transit gateways configured to auto-accept shared attachments.
Risk
Auto-accepting cross-account attachments can link untrusted VPCs to your routing domain, impacting:- Confidentiality: unintended visibility and data exfiltration
- Integrity: route injection or traffic tampering
- Availability: misrouting/blackholing and lateral movement
Recommendation
DisableAutoAcceptSharedAttachments and require explicit approval for every attachment.
Apply least privilege and separation of duties for approvers, limit shares to trusted accounts, and use defense in depth with segmentation and logging to audit the attachment lifecycle.
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/config/latest/developerguide/ec2-transit-gateway-auto-vpc-attach-disabled.html
- https://docs.aws.amazon.com/securityhub/latest/userguide/ec2-controls.html#ec2-23
- https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#tgw-modifying
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = ec2_transitgateway_auto_accept_vpc_attachments. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks