More Info:

Your Amazon Lambda functions should not have administrative permissions in order to promote the Principle of Least Privilege.

Risk Level

High

Address

Security

Compliance Standards

PCIDSS, HIPAA

Triage and Remediation

Remediation

Sure, here are the step-by-step instructions to remediate the misconfiguration of Lambda Functions having administrative permissions in AWS:

  1. Open the AWS Management Console and navigate to the AWS Lambda service.

  2. Select the Lambda function for which you want to remediate the misconfiguration.

  3. In the “Configuration” tab, click on the “Permissions” section.

  4. Under the “Execution role” section, click on the role name to open the “IAM Console”.

  5. In the “IAM Console”, click on the “Permissions” tab.

  6. Click on the “Attach policies” button.

  7. Search for the policy “AWSLambdaBasicExecutionRole” and select it.

  8. Click on the “Attach policy” button to attach the policy to the role.

  9. Remove any other policies that provide administrative permissions to the Lambda function.

  10. Save the changes and exit the “IAM Console”.

By following these steps, you will remediate the misconfiguration of Lambda Functions having administrative permissions in AWS.

Additional Reading: