Skip to content

AWS Cognito identity pool allows unauthenticated guest access

Description

This policy checks whether AWS Cognito identity pools allows unauthenticated guest access. Guest access poses a security risk as it could enable unauthorized individuals to access sensitive data or functionality. Disabling guest access helps maintain system and data security.

Code Example

go
resource "aws_cognito_identity_pool" "example" {
  ...
+  allow_unauthenticated_identities = false
}

Remediation

Terraform

  • Resource: aws_cognito_identity_pool
  • Arguments: allow_unauthenticated_identities

To fix this issue:

Set the `allow_unauthenticated_identities` property is set to false within the `aws_cognito_identity_pool` resource, as displayed in the example below.

Rule Details

FieldValue
IDIAC-0413
SeverityMEDIUM
IaC TypeCloudformation
FrameworksTerraform, TerraformPlan, CloudFormation
Checkov IDCKV_AWS_366

References