Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› Why should guest access be disabled in AWS…
Governance, Ownership & Risk

Why should guest access be disabled in AWS Cognito identity pools?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Governance, Ownership & Risk

Guest access should be disabled because it allows anonymous users to receive credentials and interact with AWS resources without an authenticated identity. If enabled unnecessarily, it can expose storage, APIs, and other back-end services to abuse or data leakage. Keep unauthenticated identities out of the pool unless a specific public use case requires them.

Why guest access changes the trust model in Cognito identity pools

In Amazon Cognito identity pools, guest access means unauthenticated identities can still receive temporary AWS credentials. That changes the trust boundary from “only signed-in users can reach back-end resources” to “anonymous callers may be able to obtain scoped AWS access,” so the pool must be treated as an access-control decision, not a convenience setting.

Guest access is only appropriate when the application has a real public-use requirement, such as limited anonymous read access or pre-login onboarding. If the application does not need that pattern, disabling unauthenticated access reduces the number of identities that can touch downstream services and simplifies review of who is allowed to do what.

When guest access is enabled, the practical question is not just whether the identity pool is configured correctly, but whether every role, policy, and downstream resource attached to it is safe for anonymous use. For example, an identity pool can look harmless while the attached IAM role still exposes APIs, storage, or data paths that were never intended to be public.

When you compare the setting to broader identity design, it lines up with the same core principle covered in NHIMG’s IAM and IGA Basics: access should be granted because a use case requires it, not because the platform can hand out access by default. If the anonymous path is truly needed, scope it narrowly and review it as part of the access model rather than treating it as a separate exception.

What can go wrong if unauthenticated identities are left enabled

The main risk is overexposure. Guest identities can become a low-friction entry point to storage buckets, APIs, and application back ends if the attached permissions are broader than intended or if downstream services assume every caller is authenticated. That can lead to data leakage, unauthorized writes, unexpected cost, or abuse of public-facing capacity.

Guest access also increases the chance that application teams lose track of which resources are actually public. The more anonymous access is allowed, the harder it becomes to distinguish a legitimate public workflow from a misconfiguration, which matters when sensitive data, privileged endpoints, or internal-only services are reachable through the same identity pool.

This is where the control becomes closely related to cloud credential abuse patterns: if a public path can obtain AWS credentials, the security question shifts to what those credentials can reach and how quickly misuse would be detected. NHIMG’s Cloud Workload Identity Guide is useful here because the same blast-radius logic applies, even though the caller is anonymous rather than a workload.

For teams that want to understand the common failure modes around exposure, NHIMG’s Top 10 NHI Issues gives a useful lens on how excess privilege, weak isolation, and poor lifecycle control turn an identity mechanism into a security issue. The lesson for Cognito identity pools is straightforward: if anonymous access exists, it must be treated as a privileged design choice with a measurable blast radius.

When disabling guest access is the safer default

Disabling guest access is the safer default when the application can authenticate users before any AWS resource call, when no public browsing or anonymous onboarding is required, or when the back end contains data that should never be reachable without a known identity. In those cases, unauthenticated credentials add risk without adding meaningful product value.

If the application truly needs a public front door, the better pattern is to keep the anonymous surface narrow and deliberate. That means using separate roles, restrictive resource policies, and tight assumptions about what the unauthenticated path can read, write, or invoke. The goal is not to eliminate all anonymous interaction, but to prevent anonymous interaction from becoming a generic access path.

For teams managing the lifecycle of identities and access paths, NHIMG’s NHI Lifecycle Management Guide is a good reminder that provisioning choices, visibility, and offboarding all matter. A guest-enabled identity pool should be reviewed like any other identity source: who can use it, what it reaches, and how you would remove or constrain it later.

Risk and Threat Considerations

Guest access expands the attack surface because it gives unauthenticated users a path to obtain AWS credentials and probe resources that may not be designed for anonymous use. If the resulting permissions are too broad, an attacker does not need to compromise a named account first; they can target the public entry point directly and look for exposed data, writable endpoints, or misconfigured storage.

Failure mechanism: The identity pool issues credentials to callers that have not established an authenticated identity, and those credentials inherit permissions that reach beyond the intended public use case. A weak role policy, permissive resource policy, or shared back-end endpoint can then turn anonymous access into unauthorized access.

Impact: The likely outcomes are data leakage, service abuse, unwanted modification of cloud resources, and a larger space for reconnaissance before defenders notice the issue. If the guest path is not truly required, leaving it enabled creates avoidable exposure with no compensating security benefit.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CSA Cloud Controls Matrix, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
CSA Cloud Controls MatrixIAM — Identity and Access ManagementGuest identity pools are an IAM access-design issue for cloud resources.
Recommendation — Restrict guest roles to the minimum cloud permissions required for the public use case.
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)The question turns on whether access should require an authenticated identity before resource use.
AC-6 — Least PrivilegeGuest access risk depends on how much privilege the unauthenticated role can exercise.
Recommendation — Require authenticated identities before granting access beyond the minimal anonymous path. Minimise permissions on any unauthenticated role to the smallest workable scope.
ISO/IEC 27001:2022A.5.15 — Access controlDisabling guest access is fundamentally an access-control decision for cloud systems.
Recommendation — Apply access-control policy to disable unauthenticated access unless a use case requires it.
CIS Controls v8CIS-6 — Access Control ManagementThe issue is whether unauthenticated access paths are allowed into cloud resources.
Recommendation — Remove unnecessary anonymous access paths and review any remaining ones for necessity.

Practitioner Guidance

What to verify: Confirm whether the application actually needs anonymous AWS access before enabling guest identities. If the answer is “only for convenience” or “just in case,” disable it and require authenticated access for the first AWS call.

Decision rule: If a guest role can reach production data, invoke backend APIs, or write to shared storage, treat that as a high-risk public trust boundary and tighten the role before launch. If the public use case is genuine, keep the permissions narrowly scoped and review them as part of release governance.

Practitioner takeaway: The key question is not whether Cognito supports guest access, but whether your application can safely tolerate anonymous AWS credentials at all; if it cannot, disable the feature and remove the public trust path entirely.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org