{
  "Provider": "aws",
  "CheckID": "awslambda_function_url_cors_policy",
  "CheckTitle": "Check Lambda Function URL CORS configuration.",
  "CheckType": [],
  "ServiceName": "lambda",
  "SubServiceName": "",
  "ResourceIdTemplate": "arn:partition:lambda:region:account-id:function/function-name",
  "Severity": "medium",
  "ResourceType": "AwsLambdaFunction",
  "Description": "Check Lambda Function URL CORS configuration.",
  "Risk": "Publicly accessible services could expose sensitive data to bad actors.",
  "RelatedUrl": "https://docs.aws.amazon.com/secretsmanager/latest/userguide/lambda-functions.html",
  "Remediation": {
    "Code": {
      "CLI": "aws lambda update-function-url-config --region AWS_REGION --function-name FUNCTION-NAME --auth-type AWS_IAM --cors 'AllowOrigins=https://www.example.com,AllowMethods=*,ExposeHeaders=keep-alive,MaxAge=3600,AllowCredentials=false'",
      "NativeIaC": "",
      "Other": "",
      "Terraform": ""
    },
    "Recommendation": {
      "Text": "Grant usage permission on a per-resource basis and applying least privilege principle.",
      "Url": "https://docs.aws.amazon.com/secretsmanager/latest/userguide/lambda-functions.html"
    }
  },
  "Categories": [],
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": ""
}
