How to Find AWS Lambda Public Function
Publicly accessible services could expose sensitive data to bad actors.
This security check is part of the CIS Amazon Web Services Benchmarks and is rated severity high.
This guide assumes that you have already installed and configured Resoto to collect your AWS cloud resources.
Execute the following
searchcommand in Resoto Shell or Resoto UI:
> search is(aws_lambda_function) and function_url_config.auth_type not in [null, AWS_IAM]
kind=aws_lambda_function, ..., region=resoto-poweruser
kind=aws_lambda_function, ..., account=poweruser-team
searchcommand into the
> search is(aws_lambda_function) and function_url_config.auth_type not in [null, AWS_IAM] | dump
The command output will list the details of all non-compliant
Fix detected issues by following the remediation steps:
Define an authorizer for your Lambda Function.note
Please refer to the AWS Lambda documentation for details.