High
AppSync
Regional
AWS AppSync GraphQL APIs should not be authenticated with API keys
NIST 800-53
Description
Flags AppSync GraphQL APIs that use API key authentication. API keys are hard-coded values that, if compromised, expose the endpoint to unauthorized access; stronger authentication methods should be used instead.
Remediation
Replace API key authentication with more secure authentication methods such as AWS IAM, Amazon Cognito User Pools, OpenID Connect, or AWS Lambda authorizers.
Steps
- Identify AppSync GraphQL APIs using API key authentication
- Choose an appropriate alternative authentication method (AWS IAM, Cognito, OpenID Connect, or Lambda)
- Update the API authentication configuration
- Update your application code to use the new authentication method
- Test the updated authentication flow
- Remove or disable the API key authentication
Compliance
NIST 800-53