{
  "Provider": "aws",
  "CheckID": "apigateway_endpoint_public",
  "CheckTitle": "Check if API Gateway endpoint is public or private.",
  "CheckType": ["Infrastructure Security"],
  "ServiceName": "apigateway",
  "SubServiceName": "rest_api",
  "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
  "Severity": "medium",
  "ResourceType": "AwsApiGatewayRestApi",
  "Description": "Check if API Gateway endpoint is public or private.",
  "Risk": "If accessible from internet without restrictions opens up attack / abuse surface for any malicious user.",
  "RelatedUrl": "",
  "Remediation": {
    "Code": {
      "CLI": "",
      "NativeIaC": "",
      "Other": "",
      "Terraform": ""
    },
    "Recommendation": {
      "Text": "Verify that any public Api Gateway is protected and audited. Detective controls for common risks should be implemented.",
      "Url": "https://d1.awsstatic.com/whitepapers/api-gateway-security.pdf?svrd_sip6"
    }
  },
  "Categories": [],
  "Tags": {
    "Tag1Key": "value",
    "Tag2Key": "value"
  },
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": "",
  "Compliance": []
}
