Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
cognito_identity_pool_guest_access_disabledProvider: AWS
Service:
cognitoSeverity: MEDIUM
Categories:
identity-accessResource type:
OtherWhat this check verifies
Amazon Cognito identity pools are evaluated for guest access to unauthenticated identities. The assessment considers theallow_unauthenticated_identities setting and whether an unauthenticated role can be assumed by guests.
Risk
With guest access, unauthenticated users receive temporary credentials, reducing confidentiality and integrity controls. Overly permissive unauthenticated roles enable data reads/writes, API abuse, and resource consumption, risking data exposure, unauthorized changes, and cost amplification.Recommendation
Disable guest access by settingallow_unauthenticated_identities to false unless strictly required.
If needed:
- Enforce least privilege with tight resource scopes and conditions
- Shorten session lifetimes and rate-limit usage
- Prefer authenticated flows (user pools or federated IdPs)
- Monitor access for defense in depth
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
aws cognito-identity update-identity-pool —identity-pool-id <example_resource_id> —identity-pool-name <example_resource_name> —no-allow-unauthenticated-identities
References
- https://docs.aws.amazon.com/location/latest/developerguide/authenticating-using-cognito.html
- https://support.icompaas.com/support/solutions/articles/62000233674-ensure-cognito-identity-pool-has-guest-access-disabled
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = cognito_identity_pool_guest_access_disabled. 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