Check provider logo

Ensure that lambda function permission has a source arn specified

AWS-0067

Severitycritical
Serviceaws/lambda
by Prowler

When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. Without this, any resource from principal will be granted permission – even if that resource is from another account. For S3, this should be the ARN of the S3 Bucket. For CloudWatch Events, this should be the ARN of the CloudWatch Events Rule. For API Gateway, this should be the ARN of the API

Risk

No content available

Run this check with Prowler CLI

prowler iac

Recommendation

Always provide a source arn for Lambda permissions

Remediation

Native IaC
Terraform
Other

When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. Without this, any resource from principal will be granted permission – even if that resource is from another account. For S3, this should be the ARN of the S3 Bucket. For CloudWatch Events, this should be the ARN of the CloudWatch Events Rule. For API Gateway, this should be the ARN of the API

References