Medium Cognito Regional

Cognito identity pools should not allow unauthenticated identities

FSBP

Description

Flags Cognito identity pools that allow unauthenticated (guest) identities by having AllowUnauthenticatedIdentities set to true.


Remediation

Disable unauthenticated identities for your Cognito identity pools to prevent anonymous access to AWS resources.

Steps

  1. Navigate to the Amazon Cognito console
  2. Go to the Identity pools section
  3. Select the identity pool that allows unauthenticated access
  4. Edit the identity pool configuration
  5. In the 'Authentication providers' section, uncheck 'Enable access to unauthenticated identities'
  6. Save the configuration changes
  7. Verify that unauthenticated access is now disabled
  8. If unauthenticated access is necessary, ensure proper IAM role restrictions are in place

Compliance

FSBP