# Example of detecting misconfigured security group for ECS servicesawsec2describe-security-groups--query'SecurityGroups[?IpPermissions[?contains(IpRanges[].CidrIp, `0.0.0.0/0`) || contains(Ipv6Ranges[].CidrIpv6, `::/0`)]]'# Example of detecting a publicly accessible load balancer for ECS servicesawselbv2describe-load-balancers--query'LoadBalancers[?Scheme == `internet-facing`]'