> 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-cognito-identity-pool-allows-unauthenticated-guest-access.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Cognito identity pool allows unauthenticated guest access

### Synopsis

| Field               | Value                                                         |
| ------------------- | ------------------------------------------------------------- |
| Rule Type           | Detection                                                     |
| Finding Type        | AWS Cognito identity pool allows unauthenticated guest access |
| Finding ID          | 60000877                                                      |
| Generates a Finding | This detection rule also generates a finding                  |
| Severity            | Medium                                                        |
| Category            | CONFIGURATION                                                 |
| Cloud Providers     | AWS                                                           |
| Platform Module     | CSPM                                                          |
| Asset Types         | AMAZON\_COGNITO\_IDENTITY\_POOL                               |
| ATT\&CK Tactic      | TA0001 (TA0001)                                               |
| ATT\&CK Technique   | T1078 (T1078)                                                 |

### Description

Unauthenticated guest access in AWS Cognito identity pools enables unauthorized users to assume roles within your AWS account, potentially leading to data breaches and account compromise.

AWS Cognito identity pools manage user authentication and authorization. Allowing unauthenticated guest access bypasses security controls, granting these users the permissions associated with the assumed role. Attackers could exploit this misconfiguration to access sensitive data or perform malicious actions without proper authentication.

The impact of this misconfiguration could range from data exfiltration to full account takeover. Restricting unauthenticated access ensures that only authenticated and authorized users can access your AWS resources, thereby reducing the risk of unauthorized activity. Implementing strong authentication mechanisms is crucial for maintaining data integrity and security.

To mitigate this risk, disable unauthenticated guest access in all AWS Cognito identity pools. Implement robust authentication methods such as multi-factor authentication (MFA) and regularly review and restrict the permissions granted to assumed roles to the principle of least privilege.

### Remediation

**Manual steps:**

Amazon Cognito Identity Pool - Manual remediation steps:

To deactivate guest access in an identity pool,

1. Log in to AWS console
2. Navigate to the reported resource region by selecting the region from the dropdown in the top right corner.
3. Navigate to the Amazon Cognito dashboard
4. Under 'Identity pools' section, select the reported identity pool
5. In 'User access' tab, under 'Guest access' section
6. Click on 'Deactivate' button to deactivate the guest access configured.

NOTE: Before you deactivate unauthenticated guest access, it is must to have at-least one authenticated access configured in your identity pool.


---

# 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-cognito-identity-pool-allows-unauthenticated-guest-access.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.
