> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-transit-gateway-auto-accept-vpc-attachment-is-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Transit Gateway auto accept vpc attachment is enabled

### Synopsis

| Field               | Value                                                     |
| ------------------- | --------------------------------------------------------- |
| Rule Type           | Detection                                                 |
| Finding Type        | AWS Transit Gateway auto accept vpc attachment is enabled |
| Finding ID          | 60000817                                                  |
| Generates a Finding | This detection rule also generates a finding              |
| Severity            | Low                                                       |
| Category            | CONFIGURATION                                             |
| Cloud Providers     | AWS                                                       |
| Platform Module     | CSPM                                                      |
| Asset Types         | EC2\_TRANSIT\_GATEWAY                                     |
| ATT\&CK Tactic      | TA0112 (TA0112)                                           |
| ATT\&CK Technique   | T1685 (T1685)                                             |

### Description

AWS Transit Gateways with auto-accept enabled for VPC attachments pose a significant security risk. This misconfiguration allows unauthorized VPCs to connect to the Transit Gateway without explicit approval.

The Transit Gateway service's 'AutoAcceptSharedAttachments' setting controls automatic acceptance of VPC attachment requests. Disabling this setting ensures that all VPC attachment requests are reviewed and approved manually, preventing unauthorized access to the Transit Gateway and the resources it connects. Failure to disable this setting allows malicious actors to attach compromised VPCs, potentially leading to data breaches or lateral movement within the AWS environment.

The impact of this misconfiguration is the potential for unauthorized access to resources connected to the Transit Gateway, leading to data exfiltration, service disruption, or complete account compromise. Explicitly authorizing VPC attachments provides granular control and ensures only trusted VPCs can connect, enhancing security posture.

To mitigate this risk, disable the 'AutoAcceptSharedAttachments' setting on all Transit Gateways. Implement a process for reviewing and approving VPC attachment requests, ensuring only authorized accounts can connect. Regularly audit Transit Gateway configurations to detect and remediate any unintended auto-accept settings.

### Remediation

**Manual steps:**

EC2 Transit Gateway - Manual remediation steps:

To modify a transit gateway Auto accept shared attachments:

1. Open the Amazon VPC console at <https://console.aws.amazon.com/vpc/>.
2. On the navigation pane, choose Transit Gateways.
3. Choose the transit gateway to modify.
4. Under the 'Actions' dropdown, choose the 'Modify transit gateway' option.
5. On the 'Modify transit gateway' page, uncheck the 'Auto accept shared attachments' checkbox under the 'Configure cross-account sharing options' section.
6. Click 'Modify transit gateway' to update the changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-transit-gateway-auto-accept-vpc-attachment-is-enabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
