{
  "Provider": "aws",
  "CheckID": "awslambda_function_not_publicly_accessible",
  "CheckTitle": "heck if Lambda functions have resource-based policy set as Public.",
  "CheckType": [],
  "ServiceName": "lambda",
  "SubServiceName": "",
  "ResourceIdTemplate": "arn:partition:lambda:region:account-id:function/function-name",
  "Severity": "critical",
  "ResourceType": "AwsLambdaFunction",
  "Description": "Check if Lambda functions have resource-based policy set as Public.",
  "Risk": "Publicly accessible services could expose sensitive data to bad actors.",
  "RelatedUrl": "https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html",
  "Remediation": {
    "Code": {
      "CLI": "https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/Lambda/function-exposed.html",
      "NativeIaC": "https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/Lambda/function-exposed.html",
      "Other": "",
      "Terraform": "https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/Lambda/function-exposed.html"
    },
    "Recommendation": {
      "Text": "Grant usage permission on a per-resource basis and applying least privilege principle.",
      "Url": "https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html"
    }
  },
  "Categories": [],
  "Tags": {
    "Tag1Key": "value",
    "Tag2Key": "value"
  },
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": "",
  "Compliance": []
}