> 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-vpc-gateway-endpoint-policy-is-overly-permissive.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS VPC gateway endpoint policy is overly permissive

### Synopsis

| Field               | Value                                                |
| ------------------- | ---------------------------------------------------- |
| Rule Type           | Detection                                            |
| Finding Type        | AWS VPC gateway endpoint policy is overly permissive |
| Finding ID          | 60000569                                             |
| Generates a Finding | This detection rule also generates a finding         |
| Severity            | High                                                 |
| Category            | CONFIGURATION                                        |
| Cloud Providers     | AWS                                                  |
| Platform Module     | CSPM                                                 |
| Asset Types         | EC2\_VPC\_ENDPOINT                                   |

### Description

Overly permissive AWS VPC gateway endpoint policies enable unauthorized access to resources within a VPC. These policies, granting '\*' access to principals, allow any IAM user or service across all AWS accounts to access the endpoint.

VPC gateway endpoints provide private connectivity to AWS services. A misconfigured access policy, specifically when the 'Principal' is set to '\*', bypasses intended access controls. Attackers could exploit this to gain unauthorized access to sensitive data hosted within the VPC, potentially leading to data breaches or account compromise.

The impact of this misconfiguration includes data exfiltration, unauthorized resource modification, and service disruption. Restricting access to only necessary IAM users and services through a least-privilege approach ensures only authorized entities can interact with the endpoint, enhancing security posture.

Mitigation involves implementing least privilege access control. Review and refine the VPC endpoint policy to specify exact IAM users, roles, or AWS services permitted access. Regularly update these policies to reflect evolving security requirements and eliminate unnecessary permissions.

### Remediation

1. Log in to the AWS Console
2. In the console, select the specific region from the region drop-down on the top right corner, for which the alert is generated.
3. Navigate to the VPC dashboard
4. Go to 'Endpoints', from the left panel VIRTUAL PRIVATE CLOUD section
5. Select the reported VPC endpoint
6. On the 'Actions' drop-down button, click on the 'Manage policy'
7. On the 'Edit Policy' page, Choose 'Custom' policy
   1. Then add policy, without the 'Everyone' grantee (i.e. '*' or 'AWS': '*') from the Principal element value with an AWS account ID (e.g. '123456789'), an AWS account ARN (e.g. 'arn:aws:iam::123456789:root') or an IAM user ARN (e.g. 'arn:aws:iam::123456789:user/vpce-admin').
   2. Add a Condition clause to the policy statement to filter the endpoint access to specific entities.
8. Click on 'Save'


---

# 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-vpc-gateway-endpoint-policy-is-overly-permissive.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.
