Ensure that your function URLs are secured with IAM authentication (AWS_IAM) in order to allow only authenticated IAM users and roles to invoke your Amazon Lambda functions via function URLs.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
A function URL should be used with caution, and only applied on Lambda functions with appropriate access control in place. When a function URL is configured with IAM authentication, Amazon Lambda uses Identity and Access Management (IAM) service to authenticate and authorize requests based on the IAM principal's identity policy and the function's resource-based policy. If the function URL is not using IAM authentication, Lambda doesn't perform any authentication before invoking your function, therefore to prevent exposing your function to the public and avoid implementing a custom authorization logic, your function URL should be configured with IAM authentication.
Audit
To determine if your Amazon Lambda functions are using IAM authentication for function URLs, perform the following operations:
Remediation / Resolution
To limit access to your Amazon Lambda function URL to authenticated IAM users and roles, perform the following operations:
References
- AWS Documentation
- AWS Lambda FAQs
- Lambda function URLs
- Creating and managing Lambda function URLs
- Security and auth model for Lambda function URLs
- Monitoring Lambda function URLs
- AWS Command Line Interface (CLI) Documentation
- lambda
- list-functions
- list-function-url-configs
- update-function-url-config
Unlock the Remediation Steps
Free 30-day Trial
Automatically audit your configurations with Conformity
and gain access to our cloud security platform.
You are auditing:
Enable IAM Authentication for Lambda Function URLs
Risk Level: High