Ensure Lambda functions restrict public access to enhance security measures.
Rule | Lambda functions should restrict public access |
Framework | NIST 800-53 Revision 4 |
Severity | ✔ Critical |
Rule Description
The Lambda functions in an AWS environment should have public access restricted to comply with the security requirements of NIST 800-53 Revision 4. Lambda functions are serverless compute resources that run code in response to events. Restricting public access to Lambda functions helps ensure that sensitive data and resources are not exposed to unauthorized individuals or entities.
Troubleshooting Steps (if applicable)
If Lambda functions are found to have public access enabled, follow these steps for troubleshooting:
Identify the Lambda functions with public access:
Verify that the public access restriction is actually required:
If public access to Lambda functions is not permitted, proceed with remediation steps.
Remediation Steps
To restrict public access for Lambda functions and comply with NIST 800-53 Revision 4, follow these steps:
Access the AWS Management Console.
Navigate to the Lambda service.
Select the Lambda function for which you want to restrict public access.
Click on the "Configuration" tab for the selected function.
Under the "Permissions" section, review the function's associated permissions. Ensure that there are no public (i.e., unauthenticated) permissions granted.
If there are public permissions present, edit the function's access permissions by following these sub-steps:
Repeat steps 5 and 6 for all Lambda functions with public access.
Code Samples (if applicable)
There is no specific code required to restrict public access for Lambda functions. Instead, you need to configure the access permissions using the AWS Management Console as described in the remediation steps.
Additional Notes