{
  "Provider": "aws",
  "CheckID": "ec2_securitygroup_default_restrict_traffic",
  "CheckTitle": "Ensure the default security group of every VPC restricts all traffic.",
  "CheckType": ["Infrastructure Security"],
  "ServiceName": "ec2",
  "SubServiceName": "securitygroup",
  "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
  "Severity": "high",
  "ResourceType": "AwsEc2SecurityGroup",
  "Description": "Ensure the default security group of every VPC restricts all traffic.",
  "Risk": "Even having a perimeter firewall, having security groups open allows any user or malware with vpc access to scan for well known and sensitive ports and gain access to instance.",
  "RelatedUrl": "",
  "Remediation": {
    "Code": {
      "CLI": "",
      "NativeIaC": "",
      "Other": "https://docs.bridgecrew.io/docs/networking_4#aws-console",
      "Terraform": "https://docs.bridgecrew.io/docs/networking_4#terraform"
    },
    "Recommendation": {
      "Text": "Apply Zero Trust approach. Implement a process to scan and remediate unrestricted or overly permissive security groups. Recommended best practices is to narrow the definition for the minimum ports required.",
      "Url": "https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html"
    }
  },
  "Categories": [],
  "Tags": {
    "Tag1Key": "value",
    "Tag2Key": "value"
  },
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": "",
  "Compliance": []
}
