More Info:

Your Amazon Lambda functions should be configured to allow access only to trusted AWS accounts in order to protect against unauthorized cross account access.

Risk Level

Medium

Address

Security

Compliance Standards

HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “Lambda Functions Should Not Allow Cross Account Access” in AWS using the AWS console, follow these steps:

  1. Sign in to the AWS Management Console.
  2. Open the AWS Lambda console.
  3. In the left navigation pane, choose “Functions”.
  4. Select the Lambda function that you want to remediate.
  5. Choose the “Permissions” tab.
  6. Scroll down to the “Resource-based policy” section.
  7. Click the “Edit” button.
  8. In the “Policy” editor, remove any statements that allow cross-account access.
  9. Click the “Save” button to save the updated policy.
  10. Verify that the updated policy does not allow cross-account access.

By following these steps, you have successfully remediated the misconfiguration “Lambda Functions Should Not Allow Cross Account Access” in AWS.

Additional Reading: