Back to all reviewers

Target core resources

bridgecrewio/checkov
Based on 2 comments
Yaml

When implementing network security checks for serverless functions like AWS Lambda, ensure you target the core function resources rather than just their endpoints. Security checks for configurations like CORS policies should be applied to the primary Lambda resources (`AWS::Lambda::Function`, `aws_lambda_function`) rather than only their URL interfaces...

Networking Yaml

Reviewer Prompt

When implementing network security checks for serverless functions like AWS Lambda, ensure you target the core function resources rather than just their endpoints. Security checks for configurations like CORS policies should be applied to the primary Lambda resources (AWS::Lambda::Function, aws_lambda_function) rather than only their URL interfaces (AWS::Lambda::Url, aws_lambda_function_url).

This ensures comprehensive coverage of potential security vulnerabilities across your serverless architecture.

Example correction:

# Instead of:
value:
  - "AWS::Lambda::Url"

# Use:
value:
  - "AWS::Lambda::Function"

This approach applies across infrastructure-as-code platforms including CloudFormation and Terraform.

2
Comments Analyzed
Yaml
Primary Language
Networking
Category

Source Discussions