More Info:

CloudTrail captures API calls for AWS Lambda as events. The calls captured include calls from the AWS Lambda console and code calls to the AWS Lambda API operations.

Risk Level

Low

Address

Operational Maturity, Security

Compliance Standards

AWSWAF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “CloudTrail should be enabled for AWS Lambda” in AWS, follow these steps:

  1. Go to the AWS Management Console and log in to your account.
  2. Open the AWS Lambda console.
  3. Select the function for which you want to enable CloudTrail.
  4. Click on the “Configuration” tab.
  5. Scroll down to the “Advanced settings” section and click on “Edit”.
  6. In the “CloudWatch Logs” section, select “Enable CloudWatch Logs”.
  7. In the “CloudTrail” section, select “Enable CloudTrail logs”.
  8. Choose the S3 bucket where you want to store the CloudTrail logs.
  9. Click on “Save”.

Once you complete these steps, CloudTrail will be enabled for AWS Lambda and the logs will be saved to the specified S3 bucket. This will help you to monitor and audit the actions performed on your AWS Lambda functions, which is important for security and compliance purposes.

Additional Reading: